diff --git a/README.md b/README.md
index 9ecfd30..6cc8cea 100644
--- a/README.md
+++ b/README.md
@@ -496,24 +496,12 @@ avl2.print();
View |
-Tree Multiset |
+Tree Multimap |
|
|
View |
-Segment Tree |
- |
- |
-View |
-
-
-Binary Indexed Tree |
- |
- |
-View |
-
-
Heap |
|
|
@@ -603,6 +591,18 @@ avl2.print();
|
View |
+
+Segment Tree |
+ |
+ |
+View |
+
+
+Binary Indexed Tree |
+ |
+ |
+View |
+
@@ -685,7 +685,7 @@ avl2.print();
- |
- - |
+ TreeMultimap<E> |
multiset<T> |
- |
- |
@@ -727,28 +727,10 @@ avl2.print();
- |
- Set<E> |
- - |
- HashSet<E> |
- set |
-
-
- HashMap<K, V> |
- - |
- HashMap<K, V> |
- dict |
-
-
- - |
+ HashMap<E> |
unordered_set<T> |
HashSet<E> |
- - |
-
-
- Map<K, V> |
- - |
- - |
- OrderedDict |
+ set |
- |
@@ -756,17 +738,11 @@ avl2.print();
- |
Counter |
-
- - |
- - |
- LinkedHashSet<E> |
- - |
-
LinkedHashMap<K, V> |
- |
LinkedHashMap<K, V> |
- - |
+ OrderedDict |
- |
@@ -788,52 +764,52 @@ avl2.print();
[//]: # (No deletion!!! Start of Replace Section)
avl-tree
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 add randomly | 28.01 | 35.70 | 3.60e-4 |
10,000 add & delete randomly | 68.19 | 14.66 | 0.00 |
10,000 addMany | 34.37 | 29.10 | 3.01e-4 |
10,000 get | 28.61 | 34.96 | 2.81e-4 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 add randomly | 72.48 | 13.80 | 0.03 |
10,000 add & delete randomly | 144.14 | 6.94 | 0.03 |
10,000 addMany | 69.71 | 14.35 | 0.02 |
10,000 get | 54.21 | 18.45 | 0.01 |
binary-tree
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000 add randomly | 13.78 | 72.57 | 9.19e-5 |
1,000 add & delete randomly | 21.50 | 46.52 | 1.81e-4 |
1,000 addMany | 15.91 | 62.85 | 1.16e-4 |
1,000 get | 18.16 | 55.08 | 1.86e-4 |
1,000 has | 18.16 | 55.06 | 1.82e-4 |
1,000 dfs | 161.46 | 6.19 | 5.35e-4 |
1,000 bfs | 56.32 | 17.76 | 4.17e-4 |
1,000 morris | 257.59 | 3.88 | 6.92e-4 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000 add randomly | 15.84 | 63.14 | 0.00 |
1,000 add & delete randomly | 24.62 | 40.62 | 0.00 |
1,000 addMany | 17.85 | 56.01 | 0.00 |
1,000 get | 20.83 | 48.00 | 0.00 |
1,000 has | 20.78 | 48.13 | 0.00 |
1,000 dfs | 186.06 | 5.37 | 0.02 |
1,000 bfs | 66.58 | 15.02 | 0.02 |
1,000 morris | 298.23 | 3.35 | 0.02 |
bst
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 add randomly | 26.94 | 37.12 | 2.41e-4 |
10,000 add & delete randomly | 69.33 | 14.42 | 5.46e-4 |
10,000 addMany | 28.17 | 35.50 | 3.03e-4 |
10,000 get | 31.40 | 31.85 | 2.49e-4 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 add randomly | 55.04 | 18.17 | 0.01 |
10,000 add & delete randomly | 129.85 | 7.70 | 0.01 |
10,000 addMany | 50.40 | 19.84 | 0.01 |
10,000 get | 63.39 | 15.78 | 0.01 |
rb-tree
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add | 84.95 | 11.77 | 0.00 |
100,000 add & delete randomly | 214.08 | 4.67 | 0.00 |
100,000 getNode | 43.21 | 23.14 | 3.41e-4 |
100,000 add & iterator | 115.98 | 8.62 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add | 113.25 | 8.83 | 0.02 |
100,000 add & delete randomly | 305.28 | 3.28 | 0.03 |
100,000 getNode | 73.20 | 13.66 | 0.03 |
100,000 add & iterator | 159.80 | 6.26 | 0.06 |
comparison
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
SRC PQ 10,000 add | 0.14 | 6958.08 | 1.96e-6 |
CJS PQ 10,000 add | 0.14 | 6945.48 | 1.85e-6 |
MJS PQ 10,000 add | 0.57 | 1758.67 | 6.72e-6 |
SRC PQ 10,000 add & pop | 3.41 | 293.06 | 3.56e-5 |
CJS PQ 10,000 add & pop | 3.40 | 293.88 | 3.65e-5 |
MJS PQ 10,000 add & pop | 3.30 | 302.86 | 3.70e-5 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
SRC PQ 10,000 add | 0.17 | 5872.02 | 4.08e-5 |
CJS PQ 10,000 add | 0.20 | 4961.22 | 1.14e-4 |
MJS PQ 10,000 add | 0.74 | 1351.47 | 2.98e-4 |
SRC PQ 10,000 add & pop | 4.62 | 216.49 | 0.00 |
CJS PQ 10,000 add & pop | 4.36 | 229.40 | 0.00 |
MJS PQ 10,000 add & pop | 3.92 | 255.23 | 0.00 |
directed-graph
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000 addVertex | 0.10 | 9990.48 | 1.15e-6 |
1,000 addEdge | 6.30 | 158.81 | 7.72e-4 |
1,000 getVertex | 0.05 | 2.15e+4 | 3.77e-7 |
1,000 getEdge | 22.56 | 44.33 | 0.00 |
tarjan | 213.11 | 4.69 | 0.01 |
tarjan all | 212.23 | 4.71 | 9.29e-4 |
topologicalSort | 170.96 | 5.85 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000 addVertex | 0.12 | 8557.70 | 2.46e-5 |
1,000 addEdge | 7.37 | 135.70 | 0.00 |
1,000 getVertex | 0.05 | 1.91e+4 | 1.12e-5 |
1,000 getEdge | 22.75 | 43.96 | 0.00 |
tarjan | 196.98 | 5.08 | 0.01 |
tarjan all | 217.25 | 4.60 | 0.03 |
topologicalSort | 177.30 | 5.64 | 0.02 |
hash-map
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 set | 120.97 | 8.27 | 0.05 |
1,000,000 Map set | 217.88 | 4.59 | 0.03 |
1,000,000 Set add | 171.45 | 5.83 | 0.02 |
1,000,000 set & get | 116.49 | 8.58 | 0.02 |
1,000,000 Map set & get | 271.49 | 3.68 | 0.02 |
1,000,000 Set add & has | 173.05 | 5.78 | 0.02 |
1,000,000 ObjKey set & get | 314.33 | 3.18 | 0.04 |
1,000,000 Map ObjKey set & get | 275.93 | 3.62 | 0.06 |
1,000,000 Set ObjKey add & has | 277.40 | 3.60 | 0.08 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 set | 153.74 | 6.50 | 0.07 |
1,000,000 Map set | 330.02 | 3.03 | 0.16 |
1,000,000 Set add | 258.64 | 3.87 | 0.06 |
1,000,000 set & get | 138.80 | 7.20 | 0.06 |
1,000,000 Map set & get | 352.63 | 2.84 | 0.05 |
1,000,000 Set add & has | 217.97 | 4.59 | 0.02 |
1,000,000 ObjKey set & get | 414.87 | 2.41 | 0.06 |
1,000,000 Map ObjKey set & get | 389.17 | 2.57 | 0.07 |
1,000,000 Set ObjKey add & has | 352.67 | 2.84 | 0.03 |
heap
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add & pop | 80.18 | 12.47 | 0.00 |
100,000 add & dfs | 35.40 | 28.25 | 0.00 |
10,000 fib add & pop | 360.71 | 2.77 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add & pop | 90.67 | 11.03 | 0.02 |
100,000 add & dfs | 40.30 | 24.81 | 0.01 |
10,000 fib add & pop | 414.94 | 2.41 | 0.02 |
doubly-linked-list
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 242.04 | 4.13 | 0.04 |
1,000,000 unshift | 204.37 | 4.89 | 0.03 |
1,000,000 unshift & shift | 178.89 | 5.59 | 0.03 |
1,000,000 insertBefore | 325.64 | 3.07 | 0.07 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 290.62 | 3.44 | 0.10 |
1,000,000 unshift | 253.88 | 3.94 | 0.10 |
1,000,000 unshift & shift | 259.65 | 3.85 | 0.14 |
1,000,000 insertBefore | 463.16 | 2.16 | 0.10 |
singly-linked-list
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 push & pop | 216.93 | 4.61 | 0.02 |
10,000 insertBefore | 247.43 | 4.04 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push & shift | 250.27 | 4.00 | 0.08 |
10,000 push & pop | 261.13 | 3.83 | 0.03 |
10,000 insertBefore | 282.46 | 3.54 | 0.02 |
max-priority-queue
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 refill & poll | 8.92 | 112.15 | 1.68e-4 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 refill & poll | 10.49 | 95.29 | 0.00 |
priority-queue
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add & pop | 101.57 | 9.85 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add & pop | 110.63 | 9.04 | 0.01 |
deque
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 13.83 | 72.30 | 1.57e-4 |
1,000,000 push & pop | 22.78 | 43.90 | 4.69e-4 |
1,000,000 push & shift | 23.80 | 42.02 | 1.75e-4 |
1,000,000 unshift & shift | 22.04 | 45.37 | 2.74e-4 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 15.89 | 62.92 | 0.00 |
1,000,000 push & pop | 26.45 | 37.81 | 0.01 |
1,000,000 push & shift | 27.52 | 36.34 | 0.00 |
1,000,000 unshift & shift | 28.82 | 34.70 | 0.01 |
queue
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 39.17 | 25.53 | 0.00 |
1,000,000 push & shift | 82.12 | 12.18 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 51.21 | 19.53 | 0.02 |
1,000,000 push & shift | 105.56 | 9.47 | 0.05 |
stack
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 40.20 | 24.88 | 0.01 |
1,000,000 push & pop | 49.27 | 20.30 | 0.01 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 43.57 | 22.95 | 0.01 |
1,000,000 push & pop | 55.18 | 18.12 | 0.01 |
trie
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 push | 45.29 | 22.08 | 6.76e-4 |
100,000 getWords | 86.68 | 11.54 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 push | 54.08 | 18.49 | 0.01 |
100,000 getWords | 77.77 | 12.86 | 0.02 |
[//]: # (No deletion!!! End of Replace Section)
diff --git a/package.json b/package.json
index 39d62bd..d604014 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "data-structure-typed",
- "version": "1.48.5",
+ "version": "1.48.6",
"description": "Data Structures of Javascript & TypeScript. Heap, Binary Tree, RedBlack Tree, Linked List, Deque, Trie, HashMap, Directed Graph, Undirected Graph, Binary Search Tree(BST), AVL Tree, Priority Queue, Graph, Queue, Tree Multiset, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue, Stack.",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",