{"name":"bst-typed","version":"2.2.7","keywords":["bst data structure","binary search tree data structure","bst","BST","binary search tree","binarysearchtree","Binary Search Tree","binary-search-tree","javascript","java script","JavaScript","js","typescript","type script","TypeScript","ts","complete","binary","Binary","search","Search","balanced","sorted","sorting","sort","ordered","tree","Tree","trees","complete binary tree","binary tree","bst tree","balanced binary tree","balanced bst","full binary tree","full binary trees","data","structure","structures","data structure","datastructure","data-structure","data structures","datastructures","data-structures","in data structures","in data structure","DataStructure","DataStructures","traversal","inorder","preorder","postorder","pre","in","post","order","pre-order","pre order","in-order","in order","post-order","post order","dfs","DFS","bfs","BFS","recursive","iterative","leaf","root","parent","child","node","depth","height","Node.js","CommonJS","ES6","UMD","esmodule","java.util","c++ stl","c++ std","Python collections","System.Collections.Generic","STL","stl","util","collection","Collection","collections","Collections","insertion","deletion","successor","predecessor","searching","performance","OOP","documentation","visualization"],"author":{"name":"Pablo Zeng zrwusa@gmail.com"},"license":"MIT","_id":"bst-typed@2.2.7","maintainers":[{"name":"zrwusa.org","email":"zrwusa@gmail.com"}],"homepage":"https://data-structure-typed-docs.vercel.app","bugs":{"url":"https://github.com/zrwusa/data-structure-typed/issues"},"dist":{"shasum":"2ae8af9f17d4458951498aac756f95af5fb81d55","tarball":"http://registry-npm.ywwl.com/bst-typed/download/bst-typed-2.2.7.tgz","fileCount":274,"integrity":"sha512-MW0NtWRdR1LFZW60gQm6ZrbVcr3UTwMAPwzj2EQzXO/JlBcI8IJM+RNEw5gkuGeZ3IrWKoLOBLQjMrvVEwSDyQ==","signatures":[{"sig":"MEUCIQDAQcY9ExNoLc3WKsWlG4WZa9HMukXpST8D8C7+GVVQ5gIgZqp8nwbSrTyloAAL7G+wcJbFbZWzqAqDy0sglBSKEH0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4393889,"size":750177,"noattachment":false,"key":"/bst-typed/-/bst-typed-2.2.7.tgz"},"main":"dist/cjs/index.cjs","types":"dist/types/index.d.ts","module":"dist/esm/index.mjs","browser":"dist/umd/bst-typed.min.js","engines":{"npm":">=6.14.0","node":">=12.20.0"},"exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/esm/index.mjs","require":"./dist/cjs/index.cjs"}},"gitHead":"0ee2ad72fc510f1d81b171e43cf5a9b2f9279563","scripts":{"lint":"eslint --fix \"src/**/*.{js,ts}\"","test":"jest","build":"npm run build:ecu","format":"prettier --write \"src/**/*.{js,ts}\"","build:ecu":"npm run build:node && npm run build:types && npm run build:umd","build:umd":"tsup","build:docs":"typedoc --out docs ./src","build:node":"tsup --config tsup.node.config.js","deps:check":"dependency-cruiser src","build:types":"rm -rf dist/types && tsc -p tsconfig.types.json","build:publish":"npm run build && npm publish"},"_npmUser":{"name":"zrwusa.org","email":"zrwusa@gmail.com"},"umd:main":"dist/umd/bst-typed.min.js","repository":{"url":"git+https://github.com/zrwusa/data-structure-typed.git","type":"git"},"_npmVersion":"10.9.3","description":"Binary Search Tree","directories":{},"_nodeVersion":"22.19.0","dependencies":{"data-structure-typed":"^2.2.7"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.2","tsup":"^8.5.1","eslint":"^7.32.0","ts-jest":"^29.1.1","typedoc":"^0.25.1","prettier":"^3.0.3","typescript":"^4.9.5","@types/jest":"^29.5.3","@types/node":"^20.4.9","eslint-plugin-import":"^2.25.4","eslint-config-prettier":"^8.3.0","@typescript-eslint/parser":"^5.11.0","eslint-import-resolver-alias":"^1.1.2","@typescript-eslint/eslint-plugin":"^5.6.0","eslint-import-resolver-typescript":"^2.5.0"},"_npmOperationalInternal":{"tmp":"tmp/bst-typed_2.2.7_1767915252505_0.20979584749237667","host":"s3://npm-registry-packages-npm-production"},"readme":"![NPM](https://img.shields.io/npm/l/bst-typed)\n![GitHub top language](https://img.shields.io/github/languages/top/zrwusa/data-structure-typed)\n![npm](https://img.shields.io/npm/dw/bst-typed)\n![eslint](https://aleen42.github.io/badges/src/eslint.svg)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/bst-typed)\n![npm bundle size](https://img.shields.io/bundlephobia/min/bst-typed)\n![npm](https://img.shields.io/npm/v/bst-typed)\n\n# What\n\n## Brief\n\nThis is a standalone BST (Binary Search Tree) data structure from the data-structure-typed collection. If you wish to\naccess more data structures or advanced features, you can transition to directly installing the\ncomplete [data-structure-typed](https://www.npmjs.com/package/data-structure-typed) package\n\n# How\n\n## install\n\n### npm\n\n```bash\nnpm i bst-typed --save\n```\n\n### yarn\n\n```bash\nyarn add bst-typed\n```\n\n\n### snippet\n\n#### TS\n\n```typescript\nimport {BST, BSTNode} from 'data-structure-typed';\n// /* or if you prefer */ import {BST, BSTNode} from 'bst-typed';\n\nconst bst = new BST();\nbst instanceof BST;                    // true\nbst.add(11);\nbst.add(3);\nconst idsAndValues = [15, 1, 8, 13, 16, 2, 6, 9, 12, 14, 4, 7, 10, 5];\nbst.addMany(idsAndValues);\nbst.root instanceof BSTNode;           // true\n\nif (bst.root) bst.root.id;             // 11\n\nbst.size;                              // 16\n\nbst.has(6);                            // true\n\nconst node6 = bst.get(6);\nnode6 && bst.getHeight(6);             // 2\nnode6 && bst.getDepth(6);              // 3\n\nconst nodeId10 = bst.get(10);\nnodeId10?.id;                          // 10\n\nconst nodeVal9 = bst.get(9, 'val');\nnodeVal9?.id;                          // 9\n\n\nconst leftMost = bst.getLeftMost();\nleftMost?.id;                          // 1\n\nconst node15 = bst.get(15);\nconst minNodeBySpecificNode = node15 && bst.getLeftMost(node15);\nminNodeBySpecificNode?.id;             // 12\n\nconst subTreeSum = node15 && bst.subTreeSum(15);\nsubTreeSum;                            // 70\n\nconst lesserSum = bst.lesserSum(10);\nlesserSum;                             // 45\n\nnode15 instanceof BSTNode;             // true\n\nconst node11 = bst.get(11);\nnode11 instanceof BSTNode;             // true\n\nconst dfsInorderNodes = bst.DFS('in', 'node');\ndfsInorderNodes[0].id;                 // 1\ndfsInorderNodes[dfsInorderNodes.length - 1].id;            // 16\n\nbst.perfectlyBalance();\nbst.isPerfectlyBalanced();                                  // true\n\nconst bfsNodesAfterBalanced = bst.BFS('node');\nbfsNodesAfterBalanced[0].id;                                // 8);\nbfsNodesAfterBalanced[bfsNodesAfterBalanced.length - 1].id; // 16\n\nconst removed11 = bst.remove(11, true);\nremoved11 instanceof Array;                                 // true\n\n\nif (removed11[0].deleted) removed11[0].deleted.id;          // 11\n\nbst.isAVLBalanced();                                        // true\n\nbst.getHeight(15);                                          // 1\n\nconst removed1 = bst.remove(1, true);\nremoved1 instanceof Array; // true\n\nif (removed1[0].deleted) removed1[0].deleted.id;            // 1\n\nbst.isAVLBalanced();                                        // true\n\nbst.getHeight();                                            // 4\n\nconst removed4 = bst.remove(4, true);\nremoved4 instanceof Array;                                   // true\n\nif (removed4[0].deleted) removed4[0].deleted.id;            // 4\nbst.isAVLBalanced();                                        // true\nbst.getHeight();                                            // 4\n\nconst removed10 = bst.remove(10, true);\n\nif (removed10[0].deleted) removed10[0].deleted.id;           // 10\nbst.isAVLBalanced();                                         // false\nbst.getHeight();                                             // 4\n\nconst removed15 = bst.remove(15, true);\n\nif (removed15[0].deleted) removed15[0].deleted.id;           // 15\n\nbst.isAVLBalanced();                                         // true\nbst.getHeight();                                             // 3\n\nconst removed5 = bst.remove(5, true);\n\nif (removed5[0].deleted) removed5[0].deleted.id;              // 5\n\nbst.isAVLBalanced();                                          // true\nbst.getHeight();                                              // 3\n\nconst removed13 = bst.remove(13, true);\nif (removed13[0].deleted) removed13[0].deleted.id;            // 13\nbst.isAVLBalanced();                                          // true\nbst.getHeight();                                              // 3\n\nconst removed3 = bst.remove(3, true);\nif (removed3[0].deleted) removed3[0].deleted.id;               // 3\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 3\n\nconst removed8 = bst.remove(8, true);\nif (removed8[0].deleted) removed8[0].deleted.id;               // 8\nbst.isAVLBalanced();                                           // true\nbst.getHeight();                                               // 3\n\nconst removed6 = bst.remove(6, true);\nif (removed6[0].deleted) removed6[0].deleted.id;               // 6\nbst.remove(6, true).length;                                    // 0\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 3\n\nconst removed7 = bst.remove(7, true);\nif (removed7[0].deleted) removed7[0].deleted.id;               // 7\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 3\n\nconst removed9 = bst.remove(9, true);\nif (removed9[0].deleted) removed9[0].deleted.id;               // 9\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 3\n\nconst removed14 = bst.remove(14, true);\nif (removed14[0].deleted) removed14[0].deleted.id;             // 14\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 2\n\nbst.isAVLBalanced();                                           // false\n\nconst bfsIDs = bst.BFS();\nbfsIDs[0];                                                     // 2\nbfsIDs[1];                                                     // 12\nbfsIDs[2];                                                     // 16\n\nconst bfsNodes = bst.BFS('node');\nbfsNodes[0].id;                                                // 2\nbfsNodes[1].id;                                                // 12\nbfsNodes[2].id;                                                // 16\n```\n\n#### JS\n\n```javascript\nconst {BST, BSTNode} = require('data-structure-typed');\n// /* or if you prefer */ const {BST, BSTNode} = require('bst-typed');\n\nconst bst = new BST();\nbst instanceof BST;                    // true\nbst.add(11);\nbst.add(3);\nconst idsAndValues = [15, 1, 8, 13, 16, 2, 6, 9, 12, 14, 4, 7, 10, 5];\nbst.addMany(idsAndValues);\nbst.root instanceof BSTNode;           // true\n\nif (bst.root) bst.root.id;             // 11\n\nbst.size;                              // 16\n\nbst.has(6);                            // true\n\nconst node6 = bst.get(6);\nnode6 && bst.getHeight(6);             // 2\nnode6 && bst.getDepth(6);              // 3\n\nconst nodeId10 = bst.get(10);\nnodeId10?.id;                          // 10\n\nconst nodeVal9 = bst.get(9, 'val');\nnodeVal9?.id;                          // 9\n\n\nconst leftMost = bst.getLeftMost();\nleftMost?.id;                          // 1\n\nconst node15 = bst.get(15);\nconst minNodeBySpecificNode = node15 && bst.getLeftMost(node15);\nminNodeBySpecificNode?.id;             // 12\n\nconst subTreeSum = node15 && bst.subTreeSum(15);\nsubTreeSum;                            // 70\n\nconst lesserSum = bst.lesserSum(10);\nlesserSum;                             // 45\n\nnode15 instanceof BSTNode;             // true\n\nconst node11 = bst.get(11);\nnode11 instanceof BSTNode;             // true\n\nconst dfsInorderNodes = bst.DFS('in', 'node');\ndfsInorderNodes[0].id;                 // 1\ndfsInorderNodes[dfsInorderNodes.length - 1].id;            // 16\n\nbst.perfectlyBalance();\nbst.isPerfectlyBalanced();                                  // true\n\nconst bfsNodesAfterBalanced = bst.BFS('node');\nbfsNodesAfterBalanced[0].id;                                // 8);\nbfsNodesAfterBalanced[bfsNodesAfterBalanced.length - 1].id; // 16\n\nconst removed11 = bst.remove(11, true);\nremoved11 instanceof Array;                                 // true\n\n\nif (removed11[0].deleted) removed11[0].deleted.id;          // 11\n\nbst.isAVLBalanced();                                        // true\n\nbst.getHeight(15);                                          // 1\n\nconst removed1 = bst.remove(1, true);\nremoved1 instanceof Array; // true\n\nif (removed1[0].deleted) removed1[0].deleted.id;            // 1\n\nbst.isAVLBalanced();                                        // true\n\nbst.getHeight();                                            // 4\n\nconst removed4 = bst.remove(4, true);\nremoved4 instanceof Array;                                   // true\n\nif (removed4[0].deleted) removed4[0].deleted.id;            // 4\nbst.isAVLBalanced();                                        // true\nbst.getHeight();                                            // 4\n\nconst removed10 = bst.remove(10, true);\n\nif (removed10[0].deleted) removed10[0].deleted.id;           // 10\nbst.isAVLBalanced();                                         // false\nbst.getHeight();                                             // 4\n\nconst removed15 = bst.remove(15, true);\n\nif (removed15[0].deleted) removed15[0].deleted.id;           // 15\n\nbst.isAVLBalanced();                                         // true\nbst.getHeight();                                             // 3\n\nconst removed5 = bst.remove(5, true);\n\nif (removed5[0].deleted) removed5[0].deleted.id;              // 5\n\nbst.isAVLBalanced();                                          // true\nbst.getHeight();                                              // 3\n\nconst removed13 = bst.remove(13, true);\nif (removed13[0].deleted) removed13[0].deleted.id;            // 13\nbst.isAVLBalanced();                                          // true\nbst.getHeight();                                              // 3\n\nconst removed3 = bst.remove(3, true);\nif (removed3[0].deleted) removed3[0].deleted.id;               // 3\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 3\n\nconst removed8 = bst.remove(8, true);\nif (removed8[0].deleted) removed8[0].deleted.id;               // 8\nbst.isAVLBalanced();                                           // true\nbst.getHeight();                                               // 3\n\nconst removed6 = bst.remove(6, true);\nif (removed6[0].deleted) removed6[0].deleted.id;               // 6\nbst.remove(6, true).length;                                    // 0\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 3\n\nconst removed7 = bst.remove(7, true);\nif (removed7[0].deleted) removed7[0].deleted.id;               // 7\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 3\n\nconst removed9 = bst.remove(9, true);\nif (removed9[0].deleted) removed9[0].deleted.id;               // 9\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 3\n\nconst removed14 = bst.remove(14, true);\nif (removed14[0].deleted) removed14[0].deleted.id;             // 14\nbst.isAVLBalanced();                                           // false\nbst.getHeight();                                               // 2\n\nbst.isAVLBalanced();                                           // false\n\nconst bfsIDs = bst.BFS();\nbfsIDs[0];                                                     // 2\nbfsIDs[1];                                                     // 12\nbfsIDs[2];                                                     // 16\n\nconst bfsNodes = bst.BFS('node');\nbfsNodes[0].id;                                                // 2\nbfsNodes[1].id;                                                // 12\nbfsNodes[2].id;                                                // 16\n```\n\n[//]: # (No deletion!!! Start of Example Replace Section)\n\n### BST delete and search after deletion\n```typescript\n const bst = new BST<number>([11, 3, 15, 1, 8, 13, 16, 2, 6, 9, 12, 14, 4, 7, 10, 5]);\n\n    // Delete a leaf node\n    bst.delete(1);\n    console.log(bst.has(1)); // false;\n\n    // Delete a node with one child\n    bst.delete(2);\n    console.log(bst.has(2)); // false;\n\n    // Delete a node with two children\n    bst.delete(3);\n    console.log(bst.has(3)); // false;\n\n    // Size decreases with each deletion\n    console.log(bst.size); // 13;\n\n    // Other nodes remain searchable\n    console.log(bst.has(11)); // true;\n    console.log(bst.has(15)); // true;\n```\n\n### Merge 3 sorted datasets\n```typescript\n const dataset1 = new BST<number, string>([\n      [1, 'A'],\n      [7, 'G']\n    ]);\n    const dataset2 = [\n      [2, 'B'],\n      [6, 'F']\n    ];\n    const dataset3 = new BST<number, string>([\n      [3, 'C'],\n      [5, 'E'],\n      [4, 'D']\n    ]);\n\n    // Merge datasets into a single BinarySearchTree\n    const merged = new BST<number, string>(dataset1);\n    merged.setMany(dataset2);\n    merged.merge(dataset3);\n\n    // Verify merged dataset is in sorted order\n    console.log([...merged.values()]); // ['A', 'B', 'C', 'D', 'E', 'F', 'G'];\n```\n\n### BST with custom objects for expression evaluation\n```typescript\n interface Expression {\n      id: number;\n      operator: string;\n      precedence: number;\n    }\n\n    // BST efficiently stores and retrieves operators by precedence\n    const operatorTree = new BST<number, Expression>(\n      [\n        [1, { id: 1, operator: '+', precedence: 1 }],\n        [2, { id: 2, operator: '*', precedence: 2 }],\n        [3, { id: 3, operator: '/', precedence: 2 }],\n        [4, { id: 4, operator: '-', precedence: 1 }],\n        [5, { id: 5, operator: '^', precedence: 3 }]\n      ],\n      { isMapMode: false }\n    );\n\n    console.log(operatorTree.size); // 5;\n\n    // Quick lookup of operators\n    const mult = operatorTree.get(2);\n    console.log(mult?.operator); // '*';\n    console.log(mult?.precedence); // 2;\n\n    // Check if operator exists\n    console.log(operatorTree.has(5)); // true;\n    console.log(operatorTree.has(99)); // false;\n\n    // Retrieve operator by precedence level\n    const expNode = operatorTree.getNode(3);\n    console.log(expNode?.key); // 3;\n    console.log(expNode?.value?.precedence); // 2;\n\n    // Delete operator and verify\n    operatorTree.delete(1);\n    console.log(operatorTree.has(1)); // false;\n    console.log(operatorTree.size); // 4;\n\n    // Get tree height for optimization analysis\n    const treeHeight = operatorTree.getHeight();\n    console.log(treeHeight); // > 0;\n\n    // Remaining operators are still accessible\n    const remaining = operatorTree.get(2);\n    console.log(remaining); // defined;\n```\n\n### Find lowest common ancestor\n```typescript\n const bst = new BST<number>([20, 10, 30, 5, 15, 25, 35, 3, 7, 12, 18]);\n\n    // LCA helper function\n    const findLCA = (num1: number, num2: number): number | undefined => {\n      const path1 = bst.getPathToRoot(num1);\n      const path2 = bst.getPathToRoot(num2);\n      // Find the first common ancestor\n      return findFirstCommon(path1, path2);\n    };\n\n    function findFirstCommon(arr1: (number | undefined)[], arr2: (number | undefined)[]): number | undefined {\n      for (const num of arr1) {\n        if (arr2.indexOf(num) !== -1) {\n          return num;\n        }\n      }\n      return undefined;\n    }\n\n    // Assertions\n    console.log(findLCA(3, 10)); // 7;\n    console.log(findLCA(5, 35)); // 15;\n    console.log(findLCA(20, 30)); // 25;\n```\n\n[//]: # (No deletion!!! End of Example Replace Section)\n\n## API docs & Examples\n\n[API Docs](https://data-structure-typed-docs.vercel.app)\n\n[Live Examples](https://vivid-algorithm.vercel.app)\n\n<a href=\"https://github.com/zrwusa/vivid-algorithm\" target=\"_blank\">Examples Repository</a>\n\n## Data Structures\n\n<table>\n<thead>\n<tr>\n<th>Data Structure</th>\n<th>Unit Test</th>\n<th>Performance Test</th>\n<th>API Docs</th>\n</tr>\n</thead>\n<tbody>\n\n<tr>\n<td>Binary Search Tree (BST)</td>\n<td><img src=\"https://raw.githubusercontent.com/zrwusa/assets/master/images/data-structure-typed/assets/tick.svg\" alt=\"\"></td>\n<td><img src=\"https://raw.githubusercontent.com/zrwusa/assets/master/images/data-structure-typed/assets/tick.svg\" alt=\"\"></td>\n<td><a href=\"https://data-structure-typed-docs.vercel.app/classes/BST.html\"><span>BST</span></a></td>\n</tr>\n\n\n</tbody>\n</table>\n\n## Standard library data structure comparison\n\n<table>\n  <thead>\n  <tr>\n    <th>Data Structure Typed</th>\n    <th>C++ STL</th>\n    <th>java.util</th>\n    <th>Python collections</th>\n  </tr>\n  </thead>\n  <tbody>\n  <tr>\n    <td>BST&lt;K, V&gt;</td>\n    <td>-</td>\n    <td>-</td>\n    <td>-</td>\n  </tr>\n\n  </tbody>\n</table>\n\n## Benchmark\n\n[//]: # (No deletion!!! Start of Replace Section)\n<div class=\"json-to-html-collapse clearfix 0\">\n      <div class='collapsible level0' ><span class='json-to-html-label'>bst</span></div>\n      <div class=\"content\"><table style=\"display: table; width:100%; table-layout: fixed;\"><tr><th>test name</th><th>time taken (ms)</th><th>executions per sec</th><th>sample deviation</th></tr><tr><td>10,000 add randomly</td><td>31.59</td><td>31.66</td><td>2.74e-4</td></tr><tr><td>10,000 add & delete randomly</td><td>74.56</td><td>13.41</td><td>8.32e-4</td></tr><tr><td>10,000 addMany</td><td>29.16</td><td>34.30</td><td>0.00</td></tr><tr><td>10,000 get</td><td>29.24</td><td>34.21</td><td>0.00</td></tr></table></div>\n    </div>\n\n[//]: # (No deletion!!! End of Replace Section)\n\n## Built-in classic algorithms\n\n<table>\n  <thead>\n  <tr>\n    <th>Algorithm</th>\n    <th>Function Description</th>\n    <th>Iteration Type</th>\n  </tr>\n  </thead>\n  <tbody>\n  <tr>\n    <td>Binary Tree DFS</td>\n    <td>Traverse a binary tree in a depth-first manner, starting from the root node, first visiting the left subtree,\n      and then the right subtree, using recursion.\n    </td>\n    <td>Recursion + Iteration</td>\n  </tr>\n  <tr>\n    <td>Binary Tree BFS</td>\n    <td>Traverse a binary tree in a breadth-first manner, starting from the root node, visiting nodes level by level\n      from left to right.\n    </td>\n    <td>Iteration</td>\n  </tr>\n  <tr>\n    <td>Binary Tree Morris</td>\n    <td>Morris traversal is an in-order traversal algorithm for binary trees with O(1) space complexity. It allows tree\n      traversal without additional stack or recursion.\n    </td>\n    <td>Iteration</td>\n  </tr>\n  </tbody>\n</table>\n\n## Software Engineering Design Standards\n<table>\n    <tr>\n        <th>Principle</th>\n        <th>Description</th>\n    </tr>\n    <tr>\n        <td>Practicality</td>\n        <td>Follows ES6 and ESNext standards, offering unified and considerate optional parameters, and simplifies method names.</td>\n    </tr>\n    <tr>\n        <td>Extensibility</td>\n        <td>Adheres to OOP (Object-Oriented Programming) principles, allowing inheritance for all data structures.</td>\n    </tr>\n    <tr>\n        <td>Modularization</td>\n        <td>Includes data structure modularization and independent NPM packages.</td>\n    </tr>\n    <tr>\n        <td>Efficiency</td>\n        <td>All methods provide time and space complexity, comparable to native JS performance.</td>\n    </tr>\n    <tr>\n        <td>Maintainability</td>\n        <td>Follows open-source community development standards, complete documentation, continuous integration, and adheres to TDD (Test-Driven Development) patterns.</td>\n    </tr>\n    <tr>\n        <td>Testability</td>\n        <td>Automated and customized unit testing, performance testing, and integration testing.</td>\n    </tr>\n    <tr>\n        <td>Portability</td>\n        <td>Plans for porting to Java, Python, and C++, currently achieved to 80%.</td>\n    </tr>\n    <tr>\n        <td>Reusability</td>\n        <td>Fully decoupled, minimized side effects, and adheres to OOP.</td>\n    </tr>\n    <tr>\n        <td>Security</td>\n        <td>Carefully designed security for member variables and methods. Read-write separation. Data structure software does not need to consider other security aspects.</td>\n    </tr>\n    <tr>\n        <td>Scalability</td>\n        <td>Data structure software does not involve load issues.</td>\n    </tr>\n</table>\n\n\n\n","publish_time":1767915252740,"_cnpm_publish_time":1767915252740,"dist-tags":{"latest":"2.6.0"}}