data-structure-typed 1.43.1 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (786) hide show
  1. package/.eslintrc.js +3 -1
  2. package/CHANGELOG.md +1 -1
  3. package/README.md +7 -0
  4. package/benchmark/report.html +30 -30
  5. package/benchmark/report.json +201 -147
  6. package/dist/cjs/data-structures/binary-tree/avl-tree.js.map +1 -0
  7. package/dist/cjs/data-structures/binary-tree/binary-indexed-tree.js.map +1 -0
  8. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/binary-tree.d.ts +8 -8
  9. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/binary-tree.js +62 -62
  10. package/dist/cjs/data-structures/binary-tree/binary-tree.js.map +1 -0
  11. package/dist/cjs/data-structures/binary-tree/bst.js.map +1 -0
  12. package/dist/cjs/data-structures/binary-tree/index.js.map +1 -0
  13. package/dist/{mjs/src → cjs}/data-structures/binary-tree/rb-tree.d.ts +4 -4
  14. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/rb-tree.js +1 -1
  15. package/dist/cjs/data-structures/binary-tree/rb-tree.js.map +1 -0
  16. package/dist/cjs/data-structures/binary-tree/segment-tree.js.map +1 -0
  17. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/tree-multimap.js +50 -50
  18. package/dist/cjs/data-structures/binary-tree/tree-multimap.js.map +1 -0
  19. package/dist/{mjs/src → cjs}/data-structures/graph/abstract-graph.d.ts +37 -37
  20. package/dist/cjs/{src/data-structures → data-structures}/graph/abstract-graph.js +37 -37
  21. package/dist/cjs/data-structures/graph/abstract-graph.js.map +1 -0
  22. package/dist/cjs/data-structures/graph/directed-graph.js.map +1 -0
  23. package/dist/cjs/data-structures/graph/index.js.map +1 -0
  24. package/dist/cjs/data-structures/graph/map-graph.js.map +1 -0
  25. package/dist/cjs/data-structures/graph/undirected-graph.js.map +1 -0
  26. package/dist/cjs/data-structures/hash/coordinate-map.js.map +1 -0
  27. package/dist/cjs/data-structures/hash/coordinate-set.js.map +1 -0
  28. package/dist/cjs/data-structures/hash/hash-map.js.map +1 -0
  29. package/dist/cjs/data-structures/hash/hash-table.js.map +1 -0
  30. package/dist/cjs/data-structures/hash/index.js.map +1 -0
  31. package/dist/cjs/data-structures/hash/tree-map.js.map +1 -0
  32. package/dist/cjs/data-structures/hash/tree-set.js.map +1 -0
  33. package/dist/cjs/data-structures/heap/heap.js.map +1 -0
  34. package/dist/cjs/data-structures/heap/index.js.map +1 -0
  35. package/dist/cjs/data-structures/heap/max-heap.js.map +1 -0
  36. package/dist/cjs/data-structures/heap/min-heap.js.map +1 -0
  37. package/dist/cjs/data-structures/index.js.map +1 -0
  38. package/dist/cjs/data-structures/linked-list/doubly-linked-list.js.map +1 -0
  39. package/dist/cjs/data-structures/linked-list/index.js.map +1 -0
  40. package/dist/cjs/data-structures/linked-list/singly-linked-list.js.map +1 -0
  41. package/dist/cjs/data-structures/linked-list/skip-linked-list.js.map +1 -0
  42. package/dist/cjs/data-structures/matrix/index.js.map +1 -0
  43. package/dist/cjs/data-structures/matrix/matrix.js.map +1 -0
  44. package/dist/cjs/data-structures/matrix/matrix2d.js.map +1 -0
  45. package/dist/cjs/data-structures/matrix/navigator.js.map +1 -0
  46. package/dist/cjs/data-structures/matrix/vector2d.js.map +1 -0
  47. package/dist/cjs/data-structures/priority-queue/index.js.map +1 -0
  48. package/dist/cjs/data-structures/priority-queue/max-priority-queue.js.map +1 -0
  49. package/dist/cjs/data-structures/priority-queue/min-priority-queue.js.map +1 -0
  50. package/dist/cjs/data-structures/priority-queue/priority-queue.js.map +1 -0
  51. package/dist/cjs/data-structures/queue/deque.js.map +1 -0
  52. package/dist/cjs/data-structures/queue/index.js.map +1 -0
  53. package/dist/cjs/data-structures/queue/queue.js.map +1 -0
  54. package/dist/cjs/data-structures/stack/index.js.map +1 -0
  55. package/dist/cjs/data-structures/stack/stack.js.map +1 -0
  56. package/dist/cjs/data-structures/tree/index.js.map +1 -0
  57. package/dist/cjs/data-structures/tree/tree.js.map +1 -0
  58. package/dist/cjs/data-structures/trie/index.js.map +1 -0
  59. package/dist/cjs/data-structures/trie/trie.js.map +1 -0
  60. package/dist/cjs/index.js.map +1 -0
  61. package/dist/cjs/{src/interfaces → interfaces}/binary-tree.d.ts +1 -1
  62. package/dist/cjs/interfaces/binary-tree.js.map +1 -0
  63. package/dist/cjs/interfaces/doubly-linked-list.js.map +1 -0
  64. package/dist/cjs/{src/interfaces → interfaces}/graph.js.map +1 -1
  65. package/dist/cjs/{src/interfaces → interfaces}/heap.js.map +1 -1
  66. package/dist/cjs/interfaces/index.js.map +1 -0
  67. package/dist/cjs/interfaces/navigator.js.map +1 -0
  68. package/dist/cjs/interfaces/priority-queue.js.map +1 -0
  69. package/dist/cjs/interfaces/segment-tree.js.map +1 -0
  70. package/dist/cjs/interfaces/singly-linked-list.js.map +1 -0
  71. package/dist/cjs/types/data-structures/binary-tree/avl-tree.js.map +1 -0
  72. package/dist/cjs/types/data-structures/binary-tree/binary-indexed-tree.js.map +1 -0
  73. package/dist/cjs/types/data-structures/binary-tree/binary-tree.js.map +1 -0
  74. package/dist/cjs/types/data-structures/binary-tree/bst.js.map +1 -0
  75. package/dist/cjs/types/data-structures/binary-tree/index.js.map +1 -0
  76. package/dist/cjs/types/data-structures/binary-tree/rb-tree.js.map +1 -0
  77. package/dist/cjs/types/data-structures/binary-tree/segment-tree.js.map +1 -0
  78. package/dist/cjs/types/data-structures/binary-tree/tree-multimap.js.map +1 -0
  79. package/dist/cjs/types/data-structures/graph/abstract-graph.js.map +1 -0
  80. package/dist/cjs/types/data-structures/graph/directed-graph.js.map +1 -0
  81. package/dist/cjs/types/data-structures/graph/index.js.map +1 -0
  82. package/dist/cjs/types/data-structures/graph/map-graph.js.map +1 -0
  83. package/dist/cjs/types/data-structures/graph/undirected-graph.js.map +1 -0
  84. package/dist/cjs/types/data-structures/hash/coordinate-map.js.map +1 -0
  85. package/dist/cjs/types/data-structures/hash/coordinate-set.js.map +1 -0
  86. package/dist/cjs/types/data-structures/hash/hash-map.js.map +1 -0
  87. package/dist/cjs/types/data-structures/hash/hash-table.js.map +1 -0
  88. package/dist/cjs/types/data-structures/hash/index.js.map +1 -0
  89. package/dist/cjs/types/data-structures/hash/tree-map.js.map +1 -0
  90. package/dist/cjs/types/data-structures/hash/tree-set.js.map +1 -0
  91. package/dist/cjs/types/data-structures/heap/heap.js.map +1 -0
  92. package/dist/cjs/types/data-structures/heap/index.js.map +1 -0
  93. package/dist/cjs/types/data-structures/heap/max-heap.js.map +1 -0
  94. package/dist/cjs/types/data-structures/heap/min-heap.js.map +1 -0
  95. package/dist/cjs/types/data-structures/index.js.map +1 -0
  96. package/dist/cjs/types/data-structures/linked-list/doubly-linked-list.js.map +1 -0
  97. package/dist/cjs/types/data-structures/linked-list/index.js.map +1 -0
  98. package/dist/cjs/types/data-structures/linked-list/singly-linked-list.js.map +1 -0
  99. package/dist/cjs/types/data-structures/linked-list/skip-linked-list.js.map +1 -0
  100. package/dist/cjs/types/data-structures/matrix/index.js.map +1 -0
  101. package/dist/cjs/types/data-structures/matrix/matrix.js.map +1 -0
  102. package/dist/cjs/types/data-structures/matrix/matrix2d.js.map +1 -0
  103. package/dist/cjs/types/data-structures/matrix/navigator.js.map +1 -0
  104. package/dist/cjs/types/data-structures/matrix/vector2d.js.map +1 -0
  105. package/dist/cjs/types/data-structures/priority-queue/index.js.map +1 -0
  106. package/dist/cjs/types/data-structures/priority-queue/max-priority-queue.js.map +1 -0
  107. package/dist/cjs/types/data-structures/priority-queue/min-priority-queue.js.map +1 -0
  108. package/dist/cjs/types/data-structures/priority-queue/priority-queue.js.map +1 -0
  109. package/dist/cjs/types/data-structures/queue/deque.js.map +1 -0
  110. package/dist/cjs/types/data-structures/queue/index.js.map +1 -0
  111. package/dist/cjs/types/data-structures/queue/queue.js.map +1 -0
  112. package/dist/cjs/types/data-structures/stack/index.js.map +1 -0
  113. package/dist/cjs/types/data-structures/stack/stack.js.map +1 -0
  114. package/dist/cjs/types/data-structures/tree/index.js.map +1 -0
  115. package/dist/cjs/types/data-structures/tree/tree.js.map +1 -0
  116. package/dist/cjs/types/data-structures/trie/index.js.map +1 -0
  117. package/dist/cjs/types/data-structures/trie/trie.js.map +1 -0
  118. package/dist/cjs/types/helpers.js.map +1 -0
  119. package/dist/cjs/types/index.js.map +1 -0
  120. package/dist/cjs/types/utils/index.js.map +1 -0
  121. package/dist/cjs/{src/types → types}/utils/utils.js.map +1 -1
  122. package/dist/cjs/types/utils/validate-type.js.map +1 -0
  123. package/dist/cjs/utils/index.js.map +1 -0
  124. package/dist/cjs/utils/utils.js.map +1 -0
  125. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/avl-tree.js +3 -8
  126. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/binary-indexed-tree.js +3 -7
  127. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/binary-tree.d.ts +8 -8
  128. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/binary-tree.js +97 -102
  129. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/bst.js +34 -39
  130. package/dist/mjs/data-structures/binary-tree/index.js +7 -0
  131. package/dist/{cjs/src → mjs}/data-structures/binary-tree/rb-tree.d.ts +4 -4
  132. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/rb-tree.js +43 -48
  133. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/segment-tree.js +2 -7
  134. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/tree-multimap.js +60 -65
  135. package/dist/{cjs/src → mjs}/data-structures/graph/abstract-graph.d.ts +37 -37
  136. package/dist/mjs/{src/data-structures → data-structures}/graph/abstract-graph.js +46 -52
  137. package/dist/mjs/{src/data-structures → data-structures}/graph/directed-graph.js +9 -15
  138. package/dist/mjs/data-structures/graph/index.js +4 -0
  139. package/dist/mjs/{src/data-structures → data-structures}/graph/map-graph.js +4 -10
  140. package/dist/mjs/{src/data-structures → data-structures}/graph/undirected-graph.js +7 -13
  141. package/dist/mjs/{src/data-structures → data-structures}/hash/coordinate-map.js +1 -5
  142. package/dist/mjs/{src/data-structures → data-structures}/hash/coordinate-set.js +1 -5
  143. package/dist/mjs/{src/data-structures → data-structures}/hash/hash-map.js +1 -5
  144. package/dist/mjs/{src/data-structures → data-structures}/hash/hash-table.js +2 -7
  145. package/dist/mjs/data-structures/hash/index.js +6 -0
  146. package/dist/mjs/data-structures/hash/tree-map.js +2 -0
  147. package/dist/mjs/data-structures/hash/tree-set.js +2 -0
  148. package/dist/mjs/{src/data-structures → data-structures}/heap/heap.js +3 -9
  149. package/dist/mjs/data-structures/heap/index.js +3 -0
  150. package/dist/mjs/{src/data-structures → data-structures}/heap/max-heap.js +2 -6
  151. package/dist/mjs/{src/data-structures → data-structures}/heap/min-heap.js +2 -6
  152. package/dist/mjs/data-structures/index.js +11 -0
  153. package/dist/mjs/{src/data-structures → data-structures}/linked-list/doubly-linked-list.js +2 -7
  154. package/dist/mjs/data-structures/linked-list/index.js +3 -0
  155. package/dist/mjs/{src/data-structures → data-structures}/linked-list/singly-linked-list.js +2 -7
  156. package/dist/mjs/{src/data-structures → data-structures}/linked-list/skip-linked-list.js +2 -7
  157. package/dist/mjs/data-structures/matrix/index.js +4 -0
  158. package/dist/mjs/{src/data-structures → data-structures}/matrix/matrix.js +1 -5
  159. package/dist/mjs/{src/data-structures → data-structures}/matrix/matrix2d.js +4 -8
  160. package/dist/mjs/{src/data-structures → data-structures}/matrix/navigator.js +2 -7
  161. package/dist/mjs/{src/data-structures → data-structures}/matrix/vector2d.js +1 -5
  162. package/dist/mjs/{src/data-structures → data-structures}/priority-queue/max-priority-queue.js +2 -6
  163. package/dist/mjs/{src/data-structures → data-structures}/priority-queue/min-priority-queue.js +2 -6
  164. package/dist/mjs/data-structures/priority-queue/priority-queue.js +13 -0
  165. package/dist/mjs/{src/data-structures → data-structures}/queue/deque.js +4 -10
  166. package/dist/mjs/{src/data-structures → data-structures}/queue/queue.js +3 -8
  167. package/dist/mjs/{src/data-structures → data-structures}/stack/stack.js +1 -5
  168. package/dist/mjs/{src/data-structures → data-structures}/tree/tree.js +1 -5
  169. package/dist/mjs/{src/data-structures → data-structures}/trie/trie.js +2 -7
  170. package/dist/mjs/index.js +4 -0
  171. package/dist/mjs/{src/interfaces → interfaces}/binary-tree.d.ts +1 -1
  172. package/dist/mjs/interfaces/index.js +8 -0
  173. package/dist/mjs/{src/types → types}/data-structures/binary-tree/binary-tree.js +4 -7
  174. package/dist/mjs/types/data-structures/binary-tree/index.js +6 -0
  175. package/dist/mjs/types/data-structures/binary-tree/rb-tree.js +5 -0
  176. package/dist/mjs/types/data-structures/graph/directed-graph.js +6 -0
  177. package/dist/mjs/types/data-structures/graph/index.js +3 -0
  178. package/dist/mjs/types/data-structures/hash/hash-table.js +1 -0
  179. package/dist/mjs/types/data-structures/hash/index.js +1 -0
  180. package/dist/mjs/types/data-structures/hash/tree-map.d.ts +1 -0
  181. package/dist/mjs/types/data-structures/hash/tree-map.js +1 -0
  182. package/dist/mjs/types/data-structures/hash/tree-set.d.ts +1 -0
  183. package/dist/mjs/types/data-structures/hash/tree-set.js +1 -0
  184. package/dist/mjs/types/data-structures/heap/heap.d.ts +1 -0
  185. package/dist/mjs/types/data-structures/heap/heap.js +1 -0
  186. package/dist/mjs/types/data-structures/heap/index.js +1 -0
  187. package/dist/mjs/types/data-structures/heap/max-heap.d.ts +1 -0
  188. package/dist/mjs/types/data-structures/heap/max-heap.js +1 -0
  189. package/dist/mjs/types/data-structures/heap/min-heap.d.ts +1 -0
  190. package/dist/mjs/types/data-structures/heap/min-heap.js +1 -0
  191. package/dist/mjs/types/data-structures/index.js +11 -0
  192. package/dist/mjs/types/data-structures/linked-list/doubly-linked-list.d.ts +1 -0
  193. package/dist/mjs/types/data-structures/linked-list/doubly-linked-list.js +1 -0
  194. package/dist/mjs/types/data-structures/linked-list/index.js +2 -0
  195. package/dist/mjs/types/data-structures/linked-list/singly-linked-list.d.ts +1 -0
  196. package/dist/mjs/types/data-structures/linked-list/singly-linked-list.js +1 -0
  197. package/dist/mjs/types/data-structures/linked-list/skip-linked-list.d.ts +1 -0
  198. package/dist/mjs/types/data-structures/linked-list/skip-linked-list.js +1 -0
  199. package/dist/mjs/types/data-structures/matrix/index.js +1 -0
  200. package/dist/mjs/types/data-structures/matrix/matrix.d.ts +1 -0
  201. package/dist/mjs/types/data-structures/matrix/matrix.js +1 -0
  202. package/dist/mjs/types/data-structures/matrix/matrix2d.d.ts +1 -0
  203. package/dist/mjs/types/data-structures/matrix/matrix2d.js +1 -0
  204. package/dist/mjs/types/data-structures/matrix/navigator.js +1 -0
  205. package/dist/mjs/types/data-structures/matrix/vector2d.d.ts +1 -0
  206. package/dist/mjs/types/data-structures/matrix/vector2d.js +1 -0
  207. package/dist/mjs/types/data-structures/priority-queue/index.d.ts +3 -0
  208. package/dist/mjs/types/data-structures/priority-queue/index.js +3 -0
  209. package/dist/mjs/types/data-structures/priority-queue/max-priority-queue.d.ts +1 -0
  210. package/dist/mjs/types/data-structures/priority-queue/max-priority-queue.js +1 -0
  211. package/dist/mjs/types/data-structures/priority-queue/min-priority-queue.d.ts +1 -0
  212. package/dist/mjs/types/data-structures/priority-queue/min-priority-queue.js +1 -0
  213. package/dist/mjs/types/data-structures/priority-queue/priority-queue.d.ts +1 -0
  214. package/dist/mjs/types/data-structures/priority-queue/priority-queue.js +1 -0
  215. package/dist/mjs/types/data-structures/queue/deque.d.ts +1 -0
  216. package/dist/mjs/types/data-structures/queue/deque.js +1 -0
  217. package/dist/mjs/types/data-structures/queue/index.d.ts +2 -0
  218. package/dist/mjs/types/data-structures/queue/index.js +2 -0
  219. package/dist/mjs/types/data-structures/queue/queue.d.ts +1 -0
  220. package/dist/mjs/types/data-structures/queue/queue.js +1 -0
  221. package/dist/mjs/types/data-structures/stack/index.d.ts +1 -0
  222. package/dist/mjs/types/data-structures/stack/index.js +1 -0
  223. package/dist/mjs/types/data-structures/stack/stack.d.ts +1 -0
  224. package/dist/mjs/types/data-structures/stack/stack.js +1 -0
  225. package/dist/mjs/types/data-structures/tree/index.d.ts +1 -0
  226. package/dist/mjs/types/data-structures/tree/index.js +1 -0
  227. package/dist/mjs/types/data-structures/tree/tree.d.ts +1 -0
  228. package/dist/mjs/types/data-structures/tree/tree.js +1 -0
  229. package/dist/mjs/types/data-structures/trie/index.d.ts +1 -0
  230. package/dist/mjs/types/data-structures/trie/index.js +1 -0
  231. package/dist/mjs/types/data-structures/trie/trie.d.ts +1 -0
  232. package/dist/mjs/types/data-structures/trie/trie.js +1 -0
  233. package/dist/mjs/types/helpers.js +6 -0
  234. package/dist/mjs/types/index.js +3 -0
  235. package/dist/mjs/types/utils/index.js +2 -0
  236. package/dist/mjs/types/utils/utils.js +1 -0
  237. package/dist/mjs/types/utils/validate-type.js +1 -0
  238. package/dist/mjs/utils/index.js +1 -0
  239. package/dist/mjs/utils/utils.js +54 -0
  240. package/dist/umd/data-structure-typed.js +10593 -0
  241. package/dist/umd/data-structure-typed.min.js +5 -10
  242. package/dist/umd/data-structure-typed.min.js.map +1 -1
  243. package/package.json +14 -15
  244. package/src/data-structures/binary-tree/avl-tree.ts +2 -3
  245. package/src/data-structures/binary-tree/binary-tree.ts +85 -92
  246. package/src/data-structures/binary-tree/bst.ts +14 -22
  247. package/src/data-structures/binary-tree/rb-tree.ts +11 -20
  248. package/src/data-structures/binary-tree/tree-multimap.ts +56 -58
  249. package/src/data-structures/graph/abstract-graph.ts +6 -22
  250. package/src/data-structures/graph/directed-graph.ts +3 -9
  251. package/src/data-structures/graph/map-graph.ts +6 -6
  252. package/src/data-structures/graph/undirected-graph.ts +1 -2
  253. package/src/data-structures/heap/heap.ts +1 -6
  254. package/src/data-structures/trie/trie.ts +1 -1
  255. package/src/interfaces/binary-tree.ts +1 -1
  256. package/src/types/utils/validate-type.ts +2 -16
  257. package/test/integration/index.html +50 -4
  258. package/test/performance/data-structures/binary-tree/rb-tree.test.ts +18 -19
  259. package/test/performance/data-structures/hash/hash-map.test.ts +10 -13
  260. package/test/performance/data-structures/linked-list/doubly-linked-list.test.ts +16 -16
  261. package/test/performance/data-structures/priority-queue/max-priority-queue.test.ts +1 -3
  262. package/test/performance/data-structures/priority-queue/priority-queue.test.ts +10 -12
  263. package/test/performance/data-structures/queue/deque.test.ts +18 -19
  264. package/test/performance/data-structures/queue/queue.test.ts +18 -19
  265. package/test/performance/data-structures/stack/stack.test.ts +10 -11
  266. package/test/performance/reportor.ts +4 -5
  267. package/test/unit/data-structures/binary-tree/avl-tree.test.ts +0 -1
  268. package/test/unit/data-structures/binary-tree/binary-tree.test.ts +83 -61
  269. package/test/unit/data-structures/binary-tree/bst.test.ts +2 -6
  270. package/test/unit/data-structures/binary-tree/rb-tree.test.ts +34 -25
  271. package/test/unit/data-structures/graph/abstract-graph.test.ts +6 -6
  272. package/test/unit/data-structures/graph/directed-graph.test.ts +8 -28
  273. package/test/unit/data-structures/heap/heap.test.ts +1 -8
  274. package/test/unit/data-structures/priority-queue/priority-queue.test.ts +34 -12
  275. package/test/utils/json2html.ts +2 -6
  276. package/tsconfig-base.json +0 -1
  277. package/tsconfig-cjs.json +4 -3
  278. package/tsconfig-mjs.json +5 -3
  279. package/tsup.config.js +39 -17
  280. package/dist/cjs/src/data-structures/binary-tree/avl-tree.js.map +0 -1
  281. package/dist/cjs/src/data-structures/binary-tree/binary-indexed-tree.js.map +0 -1
  282. package/dist/cjs/src/data-structures/binary-tree/binary-tree.js.map +0 -1
  283. package/dist/cjs/src/data-structures/binary-tree/bst.js.map +0 -1
  284. package/dist/cjs/src/data-structures/binary-tree/index.js.map +0 -1
  285. package/dist/cjs/src/data-structures/binary-tree/rb-tree.js.map +0 -1
  286. package/dist/cjs/src/data-structures/binary-tree/segment-tree.js.map +0 -1
  287. package/dist/cjs/src/data-structures/binary-tree/tree-multimap.js.map +0 -1
  288. package/dist/cjs/src/data-structures/graph/abstract-graph.js.map +0 -1
  289. package/dist/cjs/src/data-structures/graph/directed-graph.js.map +0 -1
  290. package/dist/cjs/src/data-structures/graph/index.js.map +0 -1
  291. package/dist/cjs/src/data-structures/graph/map-graph.js.map +0 -1
  292. package/dist/cjs/src/data-structures/graph/undirected-graph.js.map +0 -1
  293. package/dist/cjs/src/data-structures/hash/coordinate-map.js.map +0 -1
  294. package/dist/cjs/src/data-structures/hash/coordinate-set.js.map +0 -1
  295. package/dist/cjs/src/data-structures/hash/hash-map.js.map +0 -1
  296. package/dist/cjs/src/data-structures/hash/hash-table.js.map +0 -1
  297. package/dist/cjs/src/data-structures/hash/index.js.map +0 -1
  298. package/dist/cjs/src/data-structures/hash/tree-map.js.map +0 -1
  299. package/dist/cjs/src/data-structures/hash/tree-set.js.map +0 -1
  300. package/dist/cjs/src/data-structures/heap/heap.js.map +0 -1
  301. package/dist/cjs/src/data-structures/heap/index.js.map +0 -1
  302. package/dist/cjs/src/data-structures/heap/max-heap.js.map +0 -1
  303. package/dist/cjs/src/data-structures/heap/min-heap.js.map +0 -1
  304. package/dist/cjs/src/data-structures/index.js.map +0 -1
  305. package/dist/cjs/src/data-structures/linked-list/doubly-linked-list.js.map +0 -1
  306. package/dist/cjs/src/data-structures/linked-list/index.js.map +0 -1
  307. package/dist/cjs/src/data-structures/linked-list/singly-linked-list.js.map +0 -1
  308. package/dist/cjs/src/data-structures/linked-list/skip-linked-list.js.map +0 -1
  309. package/dist/cjs/src/data-structures/matrix/index.js.map +0 -1
  310. package/dist/cjs/src/data-structures/matrix/matrix.js.map +0 -1
  311. package/dist/cjs/src/data-structures/matrix/matrix2d.js.map +0 -1
  312. package/dist/cjs/src/data-structures/matrix/navigator.js.map +0 -1
  313. package/dist/cjs/src/data-structures/matrix/vector2d.js.map +0 -1
  314. package/dist/cjs/src/data-structures/priority-queue/index.js.map +0 -1
  315. package/dist/cjs/src/data-structures/priority-queue/max-priority-queue.js.map +0 -1
  316. package/dist/cjs/src/data-structures/priority-queue/min-priority-queue.js.map +0 -1
  317. package/dist/cjs/src/data-structures/priority-queue/priority-queue.js.map +0 -1
  318. package/dist/cjs/src/data-structures/queue/deque.js.map +0 -1
  319. package/dist/cjs/src/data-structures/queue/index.js.map +0 -1
  320. package/dist/cjs/src/data-structures/queue/queue.js.map +0 -1
  321. package/dist/cjs/src/data-structures/stack/index.js.map +0 -1
  322. package/dist/cjs/src/data-structures/stack/stack.js.map +0 -1
  323. package/dist/cjs/src/data-structures/tree/index.js.map +0 -1
  324. package/dist/cjs/src/data-structures/tree/tree.js.map +0 -1
  325. package/dist/cjs/src/data-structures/trie/index.js.map +0 -1
  326. package/dist/cjs/src/data-structures/trie/trie.js.map +0 -1
  327. package/dist/cjs/src/index.js.map +0 -1
  328. package/dist/cjs/src/interfaces/binary-tree.js.map +0 -1
  329. package/dist/cjs/src/interfaces/doubly-linked-list.js.map +0 -1
  330. package/dist/cjs/src/interfaces/index.js.map +0 -1
  331. package/dist/cjs/src/interfaces/navigator.js.map +0 -1
  332. package/dist/cjs/src/interfaces/priority-queue.js.map +0 -1
  333. package/dist/cjs/src/interfaces/segment-tree.js.map +0 -1
  334. package/dist/cjs/src/interfaces/singly-linked-list.js.map +0 -1
  335. package/dist/cjs/src/types/data-structures/binary-tree/avl-tree.js.map +0 -1
  336. package/dist/cjs/src/types/data-structures/binary-tree/binary-indexed-tree.js.map +0 -1
  337. package/dist/cjs/src/types/data-structures/binary-tree/binary-tree.js.map +0 -1
  338. package/dist/cjs/src/types/data-structures/binary-tree/bst.js.map +0 -1
  339. package/dist/cjs/src/types/data-structures/binary-tree/index.js.map +0 -1
  340. package/dist/cjs/src/types/data-structures/binary-tree/rb-tree.js.map +0 -1
  341. package/dist/cjs/src/types/data-structures/binary-tree/segment-tree.js.map +0 -1
  342. package/dist/cjs/src/types/data-structures/binary-tree/tree-multimap.js.map +0 -1
  343. package/dist/cjs/src/types/data-structures/graph/abstract-graph.js.map +0 -1
  344. package/dist/cjs/src/types/data-structures/graph/directed-graph.js.map +0 -1
  345. package/dist/cjs/src/types/data-structures/graph/index.js.map +0 -1
  346. package/dist/cjs/src/types/data-structures/graph/map-graph.js.map +0 -1
  347. package/dist/cjs/src/types/data-structures/graph/undirected-graph.js.map +0 -1
  348. package/dist/cjs/src/types/data-structures/hash/coordinate-map.js.map +0 -1
  349. package/dist/cjs/src/types/data-structures/hash/coordinate-set.js.map +0 -1
  350. package/dist/cjs/src/types/data-structures/hash/hash-map.js.map +0 -1
  351. package/dist/cjs/src/types/data-structures/hash/hash-table.js.map +0 -1
  352. package/dist/cjs/src/types/data-structures/hash/index.js.map +0 -1
  353. package/dist/cjs/src/types/data-structures/hash/tree-map.js.map +0 -1
  354. package/dist/cjs/src/types/data-structures/hash/tree-set.js.map +0 -1
  355. package/dist/cjs/src/types/data-structures/heap/heap.js.map +0 -1
  356. package/dist/cjs/src/types/data-structures/heap/index.js.map +0 -1
  357. package/dist/cjs/src/types/data-structures/heap/max-heap.js.map +0 -1
  358. package/dist/cjs/src/types/data-structures/heap/min-heap.js.map +0 -1
  359. package/dist/cjs/src/types/data-structures/index.js.map +0 -1
  360. package/dist/cjs/src/types/data-structures/linked-list/doubly-linked-list.js.map +0 -1
  361. package/dist/cjs/src/types/data-structures/linked-list/index.js.map +0 -1
  362. package/dist/cjs/src/types/data-structures/linked-list/singly-linked-list.js.map +0 -1
  363. package/dist/cjs/src/types/data-structures/linked-list/skip-linked-list.js.map +0 -1
  364. package/dist/cjs/src/types/data-structures/matrix/index.js.map +0 -1
  365. package/dist/cjs/src/types/data-structures/matrix/matrix.js.map +0 -1
  366. package/dist/cjs/src/types/data-structures/matrix/matrix2d.js.map +0 -1
  367. package/dist/cjs/src/types/data-structures/matrix/navigator.js.map +0 -1
  368. package/dist/cjs/src/types/data-structures/matrix/vector2d.js.map +0 -1
  369. package/dist/cjs/src/types/data-structures/priority-queue/index.js.map +0 -1
  370. package/dist/cjs/src/types/data-structures/priority-queue/max-priority-queue.js.map +0 -1
  371. package/dist/cjs/src/types/data-structures/priority-queue/min-priority-queue.js.map +0 -1
  372. package/dist/cjs/src/types/data-structures/priority-queue/priority-queue.js.map +0 -1
  373. package/dist/cjs/src/types/data-structures/queue/deque.js.map +0 -1
  374. package/dist/cjs/src/types/data-structures/queue/index.js.map +0 -1
  375. package/dist/cjs/src/types/data-structures/queue/queue.js.map +0 -1
  376. package/dist/cjs/src/types/data-structures/stack/index.js.map +0 -1
  377. package/dist/cjs/src/types/data-structures/stack/stack.js.map +0 -1
  378. package/dist/cjs/src/types/data-structures/tree/index.js.map +0 -1
  379. package/dist/cjs/src/types/data-structures/tree/tree.js.map +0 -1
  380. package/dist/cjs/src/types/data-structures/trie/index.js.map +0 -1
  381. package/dist/cjs/src/types/data-structures/trie/trie.js.map +0 -1
  382. package/dist/cjs/src/types/helpers.js.map +0 -1
  383. package/dist/cjs/src/types/index.js.map +0 -1
  384. package/dist/cjs/src/types/utils/index.js.map +0 -1
  385. package/dist/cjs/src/types/utils/validate-type.js.map +0 -1
  386. package/dist/cjs/src/utils/index.js.map +0 -1
  387. package/dist/cjs/src/utils/utils.js.map +0 -1
  388. package/dist/mjs/src/data-structures/binary-tree/index.js +0 -23
  389. package/dist/mjs/src/data-structures/graph/index.js +0 -20
  390. package/dist/mjs/src/data-structures/hash/index.js +0 -22
  391. package/dist/mjs/src/data-structures/hash/tree-map.js +0 -6
  392. package/dist/mjs/src/data-structures/hash/tree-set.js +0 -6
  393. package/dist/mjs/src/data-structures/heap/index.js +0 -19
  394. package/dist/mjs/src/data-structures/index.js +0 -27
  395. package/dist/mjs/src/data-structures/linked-list/index.js +0 -19
  396. package/dist/mjs/src/data-structures/matrix/index.js +0 -20
  397. package/dist/mjs/src/data-structures/priority-queue/index.js +0 -19
  398. package/dist/mjs/src/data-structures/priority-queue/priority-queue.js +0 -17
  399. package/dist/mjs/src/data-structures/queue/index.js +0 -18
  400. package/dist/mjs/src/data-structures/stack/index.js +0 -17
  401. package/dist/mjs/src/data-structures/tree/index.js +0 -17
  402. package/dist/mjs/src/data-structures/trie/index.js +0 -17
  403. package/dist/mjs/src/index.js +0 -20
  404. package/dist/mjs/src/interfaces/binary-tree.js +0 -2
  405. package/dist/mjs/src/interfaces/doubly-linked-list.js +0 -2
  406. package/dist/mjs/src/interfaces/graph.js +0 -2
  407. package/dist/mjs/src/interfaces/heap.js +0 -2
  408. package/dist/mjs/src/interfaces/index.js +0 -24
  409. package/dist/mjs/src/interfaces/navigator.js +0 -2
  410. package/dist/mjs/src/interfaces/priority-queue.js +0 -2
  411. package/dist/mjs/src/interfaces/segment-tree.js +0 -2
  412. package/dist/mjs/src/interfaces/singly-linked-list.js +0 -2
  413. package/dist/mjs/src/types/data-structures/binary-tree/avl-tree.js +0 -2
  414. package/dist/mjs/src/types/data-structures/binary-tree/binary-indexed-tree.js +0 -2
  415. package/dist/mjs/src/types/data-structures/binary-tree/bst.js +0 -2
  416. package/dist/mjs/src/types/data-structures/binary-tree/index.js +0 -22
  417. package/dist/mjs/src/types/data-structures/binary-tree/rb-tree.js +0 -8
  418. package/dist/mjs/src/types/data-structures/binary-tree/segment-tree.js +0 -2
  419. package/dist/mjs/src/types/data-structures/binary-tree/tree-multimap.js +0 -2
  420. package/dist/mjs/src/types/data-structures/graph/abstract-graph.js +0 -2
  421. package/dist/mjs/src/types/data-structures/graph/directed-graph.js +0 -9
  422. package/dist/mjs/src/types/data-structures/graph/index.js +0 -19
  423. package/dist/mjs/src/types/data-structures/graph/map-graph.js +0 -2
  424. package/dist/mjs/src/types/data-structures/graph/undirected-graph.js +0 -2
  425. package/dist/mjs/src/types/data-structures/hash/coordinate-map.js +0 -2
  426. package/dist/mjs/src/types/data-structures/hash/coordinate-set.js +0 -2
  427. package/dist/mjs/src/types/data-structures/hash/hash-map.js +0 -2
  428. package/dist/mjs/src/types/data-structures/hash/hash-table.js +0 -2
  429. package/dist/mjs/src/types/data-structures/hash/index.js +0 -2
  430. package/dist/mjs/src/types/data-structures/hash/tree-map.js +0 -2
  431. package/dist/mjs/src/types/data-structures/hash/tree-set.js +0 -2
  432. package/dist/mjs/src/types/data-structures/heap/heap.js +0 -2
  433. package/dist/mjs/src/types/data-structures/heap/index.js +0 -17
  434. package/dist/mjs/src/types/data-structures/heap/max-heap.js +0 -2
  435. package/dist/mjs/src/types/data-structures/heap/min-heap.js +0 -2
  436. package/dist/mjs/src/types/data-structures/index.js +0 -27
  437. package/dist/mjs/src/types/data-structures/linked-list/doubly-linked-list.js +0 -2
  438. package/dist/mjs/src/types/data-structures/linked-list/index.js +0 -18
  439. package/dist/mjs/src/types/data-structures/linked-list/singly-linked-list.js +0 -2
  440. package/dist/mjs/src/types/data-structures/linked-list/skip-linked-list.js +0 -2
  441. package/dist/mjs/src/types/data-structures/matrix/index.js +0 -17
  442. package/dist/mjs/src/types/data-structures/matrix/matrix.js +0 -2
  443. package/dist/mjs/src/types/data-structures/matrix/matrix2d.js +0 -2
  444. package/dist/mjs/src/types/data-structures/matrix/navigator.js +0 -2
  445. package/dist/mjs/src/types/data-structures/matrix/vector2d.js +0 -2
  446. package/dist/mjs/src/types/data-structures/priority-queue/index.js +0 -19
  447. package/dist/mjs/src/types/data-structures/priority-queue/max-priority-queue.js +0 -2
  448. package/dist/mjs/src/types/data-structures/priority-queue/min-priority-queue.js +0 -2
  449. package/dist/mjs/src/types/data-structures/priority-queue/priority-queue.js +0 -2
  450. package/dist/mjs/src/types/data-structures/queue/deque.js +0 -2
  451. package/dist/mjs/src/types/data-structures/queue/index.js +0 -18
  452. package/dist/mjs/src/types/data-structures/queue/queue.js +0 -2
  453. package/dist/mjs/src/types/data-structures/stack/index.js +0 -17
  454. package/dist/mjs/src/types/data-structures/stack/stack.js +0 -2
  455. package/dist/mjs/src/types/data-structures/tree/index.js +0 -17
  456. package/dist/mjs/src/types/data-structures/tree/tree.js +0 -2
  457. package/dist/mjs/src/types/data-structures/trie/index.js +0 -17
  458. package/dist/mjs/src/types/data-structures/trie/trie.js +0 -2
  459. package/dist/mjs/src/types/helpers.js +0 -9
  460. package/dist/mjs/src/types/index.js +0 -19
  461. package/dist/mjs/src/types/utils/index.js +0 -18
  462. package/dist/mjs/src/types/utils/utils.js +0 -2
  463. package/dist/mjs/src/types/utils/validate-type.js +0 -2
  464. package/dist/mjs/src/utils/index.js +0 -17
  465. package/dist/mjs/src/utils/utils.js +0 -64
  466. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/avl-tree.d.ts +0 -0
  467. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/avl-tree.js +0 -0
  468. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/binary-indexed-tree.d.ts +0 -0
  469. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/binary-indexed-tree.js +0 -0
  470. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/bst.d.ts +0 -0
  471. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/bst.js +0 -0
  472. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/index.d.ts +0 -0
  473. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/index.js +0 -0
  474. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/segment-tree.d.ts +0 -0
  475. package/dist/cjs/{src/data-structures → data-structures}/binary-tree/segment-tree.js +0 -0
  476. package/dist/{mjs/src → cjs}/data-structures/binary-tree/tree-multimap.d.ts +24 -24
  477. package/dist/cjs/{src/data-structures → data-structures}/graph/directed-graph.d.ts +0 -0
  478. package/dist/cjs/{src/data-structures → data-structures}/graph/directed-graph.js +0 -0
  479. package/dist/cjs/{src/data-structures → data-structures}/graph/index.d.ts +0 -0
  480. package/dist/cjs/{src/data-structures → data-structures}/graph/index.js +0 -0
  481. package/dist/cjs/{src/data-structures → data-structures}/graph/map-graph.d.ts +0 -0
  482. package/dist/cjs/{src/data-structures → data-structures}/graph/map-graph.js +0 -0
  483. package/dist/cjs/{src/data-structures → data-structures}/graph/undirected-graph.d.ts +0 -0
  484. package/dist/cjs/{src/data-structures → data-structures}/graph/undirected-graph.js +0 -0
  485. package/dist/cjs/{src/data-structures → data-structures}/hash/coordinate-map.d.ts +0 -0
  486. package/dist/cjs/{src/data-structures → data-structures}/hash/coordinate-map.js +0 -0
  487. package/dist/cjs/{src/data-structures → data-structures}/hash/coordinate-set.d.ts +0 -0
  488. package/dist/cjs/{src/data-structures → data-structures}/hash/coordinate-set.js +0 -0
  489. package/dist/cjs/{src/data-structures → data-structures}/hash/hash-map.d.ts +0 -0
  490. package/dist/cjs/{src/data-structures → data-structures}/hash/hash-map.js +0 -0
  491. package/dist/cjs/{src/data-structures → data-structures}/hash/hash-table.d.ts +0 -0
  492. package/dist/cjs/{src/data-structures → data-structures}/hash/hash-table.js +0 -0
  493. package/dist/cjs/{src/data-structures → data-structures}/hash/index.d.ts +0 -0
  494. package/dist/cjs/{src/data-structures → data-structures}/hash/index.js +0 -0
  495. package/dist/cjs/{src/data-structures → data-structures}/hash/tree-map.d.ts +0 -0
  496. package/dist/cjs/{src/data-structures → data-structures}/hash/tree-map.js +0 -0
  497. package/dist/cjs/{src/data-structures → data-structures}/hash/tree-set.d.ts +0 -0
  498. package/dist/cjs/{src/data-structures → data-structures}/hash/tree-set.js +0 -0
  499. package/dist/cjs/{src/data-structures → data-structures}/heap/heap.d.ts +0 -0
  500. package/dist/cjs/{src/data-structures → data-structures}/heap/heap.js +0 -0
  501. package/dist/cjs/{src/data-structures → data-structures}/heap/index.d.ts +0 -0
  502. package/dist/cjs/{src/data-structures → data-structures}/heap/index.js +0 -0
  503. package/dist/cjs/{src/data-structures → data-structures}/heap/max-heap.d.ts +0 -0
  504. package/dist/cjs/{src/data-structures → data-structures}/heap/max-heap.js +0 -0
  505. package/dist/cjs/{src/data-structures → data-structures}/heap/min-heap.d.ts +0 -0
  506. package/dist/cjs/{src/data-structures → data-structures}/heap/min-heap.js +0 -0
  507. package/dist/cjs/{src/data-structures → data-structures}/index.d.ts +0 -0
  508. package/dist/cjs/{src/data-structures → data-structures}/index.js +0 -0
  509. package/dist/cjs/{src/data-structures → data-structures}/linked-list/doubly-linked-list.d.ts +0 -0
  510. package/dist/cjs/{src/data-structures → data-structures}/linked-list/doubly-linked-list.js +0 -0
  511. package/dist/cjs/{src/data-structures → data-structures}/linked-list/index.d.ts +0 -0
  512. package/dist/cjs/{src/data-structures → data-structures}/linked-list/index.js +0 -0
  513. package/dist/cjs/{src/data-structures → data-structures}/linked-list/singly-linked-list.d.ts +0 -0
  514. package/dist/cjs/{src/data-structures → data-structures}/linked-list/singly-linked-list.js +0 -0
  515. package/dist/cjs/{src/data-structures → data-structures}/linked-list/skip-linked-list.d.ts +0 -0
  516. package/dist/cjs/{src/data-structures → data-structures}/linked-list/skip-linked-list.js +0 -0
  517. package/dist/cjs/{src/data-structures → data-structures}/matrix/index.d.ts +0 -0
  518. package/dist/cjs/{src/data-structures → data-structures}/matrix/index.js +0 -0
  519. package/dist/cjs/{src/data-structures → data-structures}/matrix/matrix.d.ts +0 -0
  520. package/dist/cjs/{src/data-structures → data-structures}/matrix/matrix.js +0 -0
  521. package/dist/cjs/{src/data-structures → data-structures}/matrix/matrix2d.d.ts +0 -0
  522. package/dist/cjs/{src/data-structures → data-structures}/matrix/matrix2d.js +0 -0
  523. package/dist/cjs/{src/data-structures → data-structures}/matrix/navigator.d.ts +0 -0
  524. package/dist/cjs/{src/data-structures → data-structures}/matrix/navigator.js +0 -0
  525. package/dist/cjs/{src/data-structures → data-structures}/matrix/vector2d.d.ts +0 -0
  526. package/dist/cjs/{src/data-structures → data-structures}/matrix/vector2d.js +0 -0
  527. package/dist/cjs/{src/data-structures → data-structures}/priority-queue/index.d.ts +0 -0
  528. package/dist/cjs/{src/data-structures → data-structures}/priority-queue/index.js +0 -0
  529. package/dist/cjs/{src/data-structures → data-structures}/priority-queue/max-priority-queue.d.ts +0 -0
  530. package/dist/cjs/{src/data-structures → data-structures}/priority-queue/max-priority-queue.js +0 -0
  531. package/dist/cjs/{src/data-structures → data-structures}/priority-queue/min-priority-queue.d.ts +0 -0
  532. package/dist/cjs/{src/data-structures → data-structures}/priority-queue/min-priority-queue.js +0 -0
  533. package/dist/cjs/{src/data-structures → data-structures}/priority-queue/priority-queue.d.ts +0 -0
  534. package/dist/cjs/{src/data-structures → data-structures}/priority-queue/priority-queue.js +0 -0
  535. package/dist/cjs/{src/data-structures → data-structures}/queue/deque.d.ts +0 -0
  536. package/dist/cjs/{src/data-structures → data-structures}/queue/deque.js +0 -0
  537. package/dist/cjs/{src/data-structures → data-structures}/queue/index.d.ts +0 -0
  538. package/dist/cjs/{src/data-structures → data-structures}/queue/index.js +0 -0
  539. package/dist/cjs/{src/data-structures → data-structures}/queue/queue.d.ts +0 -0
  540. package/dist/cjs/{src/data-structures → data-structures}/queue/queue.js +0 -0
  541. package/dist/cjs/{src/data-structures → data-structures}/stack/index.d.ts +0 -0
  542. package/dist/cjs/{src/data-structures → data-structures}/stack/index.js +0 -0
  543. package/dist/cjs/{src/data-structures → data-structures}/stack/stack.d.ts +0 -0
  544. package/dist/cjs/{src/data-structures → data-structures}/stack/stack.js +0 -0
  545. package/dist/cjs/{src/data-structures → data-structures}/tree/index.d.ts +0 -0
  546. package/dist/cjs/{src/data-structures → data-structures}/tree/index.js +0 -0
  547. package/dist/cjs/{src/data-structures → data-structures}/tree/tree.d.ts +0 -0
  548. package/dist/cjs/{src/data-structures → data-structures}/tree/tree.js +0 -0
  549. package/dist/cjs/{src/data-structures → data-structures}/trie/index.d.ts +0 -0
  550. package/dist/cjs/{src/data-structures → data-structures}/trie/index.js +0 -0
  551. package/dist/cjs/{src/data-structures → data-structures}/trie/trie.d.ts +0 -0
  552. package/dist/cjs/{src/data-structures → data-structures}/trie/trie.js +0 -0
  553. package/dist/cjs/{src/index.d.ts → index.d.ts} +0 -0
  554. package/dist/cjs/{src/index.js → index.js} +0 -0
  555. package/dist/cjs/{src/interfaces → interfaces}/binary-tree.js +0 -0
  556. package/dist/cjs/{src/interfaces → interfaces}/doubly-linked-list.d.ts +0 -0
  557. package/dist/cjs/{src/interfaces → interfaces}/doubly-linked-list.js +0 -0
  558. package/dist/cjs/{src/interfaces → interfaces}/graph.d.ts +0 -0
  559. package/dist/cjs/{src/interfaces → interfaces}/graph.js +0 -0
  560. package/dist/cjs/{src/interfaces → interfaces}/heap.d.ts +0 -0
  561. package/dist/cjs/{src/interfaces → interfaces}/heap.js +0 -0
  562. package/dist/cjs/{src/interfaces → interfaces}/index.d.ts +0 -0
  563. package/dist/cjs/{src/interfaces → interfaces}/index.js +0 -0
  564. package/dist/cjs/{src/interfaces → interfaces}/navigator.d.ts +0 -0
  565. package/dist/cjs/{src/interfaces → interfaces}/navigator.js +0 -0
  566. package/dist/cjs/{src/interfaces → interfaces}/priority-queue.d.ts +0 -0
  567. package/dist/cjs/{src/interfaces → interfaces}/priority-queue.js +0 -0
  568. package/dist/cjs/{src/interfaces → interfaces}/segment-tree.d.ts +0 -0
  569. package/dist/cjs/{src/interfaces → interfaces}/segment-tree.js +0 -0
  570. package/dist/cjs/{src/interfaces → interfaces}/singly-linked-list.d.ts +0 -0
  571. package/dist/cjs/{src/interfaces → interfaces}/singly-linked-list.js +0 -0
  572. package/dist/cjs/{src/types → types}/data-structures/binary-tree/avl-tree.d.ts +0 -0
  573. package/dist/cjs/{src/types → types}/data-structures/binary-tree/avl-tree.js +0 -0
  574. package/dist/cjs/{src/types → types}/data-structures/binary-tree/binary-indexed-tree.d.ts +0 -0
  575. package/dist/cjs/{src/types → types}/data-structures/binary-tree/binary-indexed-tree.js +0 -0
  576. package/dist/cjs/{src/types → types}/data-structures/binary-tree/binary-tree.d.ts +0 -0
  577. package/dist/cjs/{src/types → types}/data-structures/binary-tree/binary-tree.js +0 -0
  578. package/dist/cjs/{src/types → types}/data-structures/binary-tree/bst.d.ts +0 -0
  579. package/dist/cjs/{src/types → types}/data-structures/binary-tree/bst.js +0 -0
  580. package/dist/cjs/{src/types → types}/data-structures/binary-tree/index.d.ts +0 -0
  581. package/dist/cjs/{src/types → types}/data-structures/binary-tree/index.js +0 -0
  582. package/dist/cjs/{src/types → types}/data-structures/binary-tree/rb-tree.d.ts +0 -0
  583. package/dist/cjs/{src/types → types}/data-structures/binary-tree/rb-tree.js +0 -0
  584. package/dist/cjs/{src/types → types}/data-structures/binary-tree/segment-tree.d.ts +0 -0
  585. package/dist/cjs/{src/types → types}/data-structures/binary-tree/segment-tree.js +0 -0
  586. package/dist/cjs/{src/types → types}/data-structures/binary-tree/tree-multimap.d.ts +0 -0
  587. package/dist/cjs/{src/types → types}/data-structures/binary-tree/tree-multimap.js +0 -0
  588. package/dist/cjs/{src/types → types}/data-structures/graph/abstract-graph.d.ts +0 -0
  589. package/dist/cjs/{src/types → types}/data-structures/graph/abstract-graph.js +0 -0
  590. package/dist/cjs/{src/types → types}/data-structures/graph/directed-graph.d.ts +0 -0
  591. package/dist/cjs/{src/types → types}/data-structures/graph/directed-graph.js +0 -0
  592. package/dist/cjs/{src/types → types}/data-structures/graph/index.d.ts +0 -0
  593. package/dist/cjs/{src/types → types}/data-structures/graph/index.js +0 -0
  594. package/dist/cjs/{src/types → types}/data-structures/graph/map-graph.d.ts +0 -0
  595. package/dist/cjs/{src/types → types}/data-structures/graph/map-graph.js +0 -0
  596. package/dist/cjs/{src/types → types}/data-structures/graph/undirected-graph.d.ts +0 -0
  597. package/dist/cjs/{src/types → types}/data-structures/graph/undirected-graph.js +0 -0
  598. package/dist/cjs/{src/types → types}/data-structures/hash/coordinate-map.d.ts +0 -0
  599. package/dist/cjs/{src/types → types}/data-structures/hash/coordinate-map.js +0 -0
  600. package/dist/cjs/{src/types → types}/data-structures/hash/coordinate-set.d.ts +0 -0
  601. package/dist/cjs/{src/types → types}/data-structures/hash/coordinate-set.js +0 -0
  602. package/dist/cjs/{src/types → types}/data-structures/hash/hash-map.d.ts +0 -0
  603. package/dist/cjs/{src/types → types}/data-structures/hash/hash-map.js +0 -0
  604. package/dist/cjs/{src/types → types}/data-structures/hash/hash-table.d.ts +0 -0
  605. package/dist/cjs/{src/types → types}/data-structures/hash/hash-table.js +0 -0
  606. package/dist/cjs/{src/types → types}/data-structures/hash/index.d.ts +0 -0
  607. package/dist/cjs/{src/types → types}/data-structures/hash/index.js +0 -0
  608. package/dist/cjs/{src/types → types}/data-structures/hash/tree-map.d.ts +0 -0
  609. package/dist/cjs/{src/types → types}/data-structures/hash/tree-map.js +0 -0
  610. package/dist/cjs/{src/types → types}/data-structures/hash/tree-set.d.ts +0 -0
  611. package/dist/cjs/{src/types → types}/data-structures/hash/tree-set.js +0 -0
  612. package/dist/cjs/{src/types → types}/data-structures/heap/heap.d.ts +0 -0
  613. package/dist/cjs/{src/types → types}/data-structures/heap/heap.js +0 -0
  614. package/dist/cjs/{src/types → types}/data-structures/heap/index.d.ts +0 -0
  615. package/dist/cjs/{src/types → types}/data-structures/heap/index.js +0 -0
  616. package/dist/cjs/{src/types → types}/data-structures/heap/max-heap.d.ts +0 -0
  617. package/dist/cjs/{src/types → types}/data-structures/heap/max-heap.js +0 -0
  618. package/dist/cjs/{src/types → types}/data-structures/heap/min-heap.d.ts +0 -0
  619. package/dist/cjs/{src/types → types}/data-structures/heap/min-heap.js +0 -0
  620. package/dist/cjs/{src/types → types}/data-structures/index.d.ts +0 -0
  621. package/dist/cjs/{src/types → types}/data-structures/index.js +0 -0
  622. package/dist/cjs/{src/types → types}/data-structures/linked-list/doubly-linked-list.d.ts +0 -0
  623. package/dist/cjs/{src/types → types}/data-structures/linked-list/doubly-linked-list.js +0 -0
  624. package/dist/cjs/{src/types → types}/data-structures/linked-list/index.d.ts +0 -0
  625. package/dist/cjs/{src/types → types}/data-structures/linked-list/index.js +0 -0
  626. package/dist/cjs/{src/types → types}/data-structures/linked-list/singly-linked-list.d.ts +0 -0
  627. package/dist/cjs/{src/types → types}/data-structures/linked-list/singly-linked-list.js +0 -0
  628. package/dist/cjs/{src/types → types}/data-structures/linked-list/skip-linked-list.d.ts +0 -0
  629. package/dist/cjs/{src/types → types}/data-structures/linked-list/skip-linked-list.js +0 -0
  630. package/dist/cjs/{src/types → types}/data-structures/matrix/index.d.ts +0 -0
  631. package/dist/cjs/{src/types → types}/data-structures/matrix/index.js +0 -0
  632. package/dist/cjs/{src/types → types}/data-structures/matrix/matrix.d.ts +0 -0
  633. package/dist/cjs/{src/types → types}/data-structures/matrix/matrix.js +0 -0
  634. package/dist/cjs/{src/types → types}/data-structures/matrix/matrix2d.d.ts +0 -0
  635. package/dist/cjs/{src/types → types}/data-structures/matrix/matrix2d.js +0 -0
  636. package/dist/cjs/{src/types → types}/data-structures/matrix/navigator.d.ts +0 -0
  637. package/dist/cjs/{src/types → types}/data-structures/matrix/navigator.js +0 -0
  638. package/dist/cjs/{src/types → types}/data-structures/matrix/vector2d.d.ts +0 -0
  639. package/dist/cjs/{src/types → types}/data-structures/matrix/vector2d.js +0 -0
  640. package/dist/cjs/{src/types → types}/data-structures/priority-queue/index.d.ts +0 -0
  641. package/dist/cjs/{src/types → types}/data-structures/priority-queue/index.js +0 -0
  642. package/dist/cjs/{src/types → types}/data-structures/priority-queue/max-priority-queue.d.ts +0 -0
  643. package/dist/cjs/{src/types → types}/data-structures/priority-queue/max-priority-queue.js +0 -0
  644. package/dist/cjs/{src/types → types}/data-structures/priority-queue/min-priority-queue.d.ts +0 -0
  645. package/dist/cjs/{src/types → types}/data-structures/priority-queue/min-priority-queue.js +0 -0
  646. package/dist/cjs/{src/types → types}/data-structures/priority-queue/priority-queue.d.ts +0 -0
  647. package/dist/cjs/{src/types → types}/data-structures/priority-queue/priority-queue.js +0 -0
  648. package/dist/cjs/{src/types → types}/data-structures/queue/deque.d.ts +0 -0
  649. package/dist/cjs/{src/types → types}/data-structures/queue/deque.js +0 -0
  650. package/dist/cjs/{src/types → types}/data-structures/queue/index.d.ts +0 -0
  651. package/dist/cjs/{src/types → types}/data-structures/queue/index.js +0 -0
  652. package/dist/cjs/{src/types → types}/data-structures/queue/queue.d.ts +0 -0
  653. package/dist/cjs/{src/types → types}/data-structures/queue/queue.js +0 -0
  654. package/dist/cjs/{src/types → types}/data-structures/stack/index.d.ts +0 -0
  655. package/dist/cjs/{src/types → types}/data-structures/stack/index.js +0 -0
  656. package/dist/cjs/{src/types → types}/data-structures/stack/stack.d.ts +0 -0
  657. package/dist/cjs/{src/types → types}/data-structures/stack/stack.js +0 -0
  658. package/dist/cjs/{src/types → types}/data-structures/tree/index.d.ts +0 -0
  659. package/dist/cjs/{src/types → types}/data-structures/tree/index.js +0 -0
  660. package/dist/cjs/{src/types → types}/data-structures/tree/tree.d.ts +0 -0
  661. package/dist/cjs/{src/types → types}/data-structures/tree/tree.js +0 -0
  662. package/dist/cjs/{src/types → types}/data-structures/trie/index.d.ts +0 -0
  663. package/dist/cjs/{src/types → types}/data-structures/trie/index.js +0 -0
  664. package/dist/cjs/{src/types → types}/data-structures/trie/trie.d.ts +0 -0
  665. package/dist/cjs/{src/types → types}/data-structures/trie/trie.js +0 -0
  666. package/dist/cjs/{src/types → types}/helpers.d.ts +0 -0
  667. package/dist/cjs/{src/types → types}/helpers.js +0 -0
  668. package/dist/cjs/{src/types → types}/index.d.ts +0 -0
  669. package/dist/cjs/{src/types → types}/index.js +0 -0
  670. package/dist/cjs/{src/types → types}/utils/index.d.ts +0 -0
  671. package/dist/cjs/{src/types → types}/utils/index.js +0 -0
  672. package/dist/cjs/{src/types → types}/utils/utils.d.ts +0 -0
  673. package/dist/cjs/{src/types → types}/utils/utils.js +0 -0
  674. package/dist/cjs/{src/types → types}/utils/validate-type.d.ts +0 -0
  675. package/dist/cjs/{src/types → types}/utils/validate-type.js +0 -0
  676. package/dist/cjs/{src/utils → utils}/index.d.ts +0 -0
  677. package/dist/cjs/{src/utils → utils}/index.js +0 -0
  678. package/dist/cjs/{src/utils → utils}/utils.d.ts +0 -0
  679. package/dist/cjs/{src/utils → utils}/utils.js +0 -0
  680. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/avl-tree.d.ts +0 -0
  681. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/binary-indexed-tree.d.ts +0 -0
  682. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/bst.d.ts +0 -0
  683. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/index.d.ts +0 -0
  684. package/dist/mjs/{src/data-structures → data-structures}/binary-tree/segment-tree.d.ts +0 -0
  685. package/dist/{cjs/src → mjs}/data-structures/binary-tree/tree-multimap.d.ts +24 -24
  686. /package/dist/mjs/{src/data-structures → data-structures}/graph/directed-graph.d.ts +0 -0
  687. /package/dist/mjs/{src/data-structures → data-structures}/graph/index.d.ts +0 -0
  688. /package/dist/mjs/{src/data-structures → data-structures}/graph/map-graph.d.ts +0 -0
  689. /package/dist/mjs/{src/data-structures → data-structures}/graph/undirected-graph.d.ts +0 -0
  690. /package/dist/mjs/{src/data-structures → data-structures}/hash/coordinate-map.d.ts +0 -0
  691. /package/dist/mjs/{src/data-structures → data-structures}/hash/coordinate-set.d.ts +0 -0
  692. /package/dist/mjs/{src/data-structures → data-structures}/hash/hash-map.d.ts +0 -0
  693. /package/dist/mjs/{src/data-structures → data-structures}/hash/hash-table.d.ts +0 -0
  694. /package/dist/mjs/{src/data-structures → data-structures}/hash/index.d.ts +0 -0
  695. /package/dist/mjs/{src/data-structures → data-structures}/hash/tree-map.d.ts +0 -0
  696. /package/dist/mjs/{src/data-structures → data-structures}/hash/tree-set.d.ts +0 -0
  697. /package/dist/mjs/{src/data-structures → data-structures}/heap/heap.d.ts +0 -0
  698. /package/dist/mjs/{src/data-structures → data-structures}/heap/index.d.ts +0 -0
  699. /package/dist/mjs/{src/data-structures → data-structures}/heap/max-heap.d.ts +0 -0
  700. /package/dist/mjs/{src/data-structures → data-structures}/heap/min-heap.d.ts +0 -0
  701. /package/dist/mjs/{src/data-structures → data-structures}/index.d.ts +0 -0
  702. /package/dist/mjs/{src/data-structures → data-structures}/linked-list/doubly-linked-list.d.ts +0 -0
  703. /package/dist/mjs/{src/data-structures → data-structures}/linked-list/index.d.ts +0 -0
  704. /package/dist/mjs/{src/data-structures → data-structures}/linked-list/singly-linked-list.d.ts +0 -0
  705. /package/dist/mjs/{src/data-structures → data-structures}/linked-list/skip-linked-list.d.ts +0 -0
  706. /package/dist/mjs/{src/data-structures → data-structures}/matrix/index.d.ts +0 -0
  707. /package/dist/mjs/{src/data-structures → data-structures}/matrix/matrix.d.ts +0 -0
  708. /package/dist/mjs/{src/data-structures → data-structures}/matrix/matrix2d.d.ts +0 -0
  709. /package/dist/mjs/{src/data-structures → data-structures}/matrix/navigator.d.ts +0 -0
  710. /package/dist/mjs/{src/data-structures → data-structures}/matrix/vector2d.d.ts +0 -0
  711. /package/dist/mjs/{src/data-structures → data-structures}/priority-queue/index.d.ts +0 -0
  712. /package/dist/mjs/{src/types/data-structures/priority-queue/index.d.ts → data-structures/priority-queue/index.js} +0 -0
  713. /package/dist/mjs/{src/data-structures → data-structures}/priority-queue/max-priority-queue.d.ts +0 -0
  714. /package/dist/mjs/{src/data-structures → data-structures}/priority-queue/min-priority-queue.d.ts +0 -0
  715. /package/dist/mjs/{src/data-structures → data-structures}/priority-queue/priority-queue.d.ts +0 -0
  716. /package/dist/mjs/{src/data-structures → data-structures}/queue/deque.d.ts +0 -0
  717. /package/dist/mjs/{src/data-structures → data-structures}/queue/index.d.ts +0 -0
  718. /package/dist/mjs/{src/types/data-structures/queue/index.d.ts → data-structures/queue/index.js} +0 -0
  719. /package/dist/mjs/{src/data-structures → data-structures}/queue/queue.d.ts +0 -0
  720. /package/dist/mjs/{src/data-structures → data-structures}/stack/index.d.ts +0 -0
  721. /package/dist/mjs/{src/types/data-structures/stack/index.d.ts → data-structures/stack/index.js} +0 -0
  722. /package/dist/mjs/{src/data-structures → data-structures}/stack/stack.d.ts +0 -0
  723. /package/dist/mjs/{src/data-structures → data-structures}/tree/index.d.ts +0 -0
  724. /package/dist/mjs/{src/types/data-structures/tree/index.d.ts → data-structures/tree/index.js} +0 -0
  725. /package/dist/mjs/{src/data-structures → data-structures}/tree/tree.d.ts +0 -0
  726. /package/dist/mjs/{src/data-structures → data-structures}/trie/index.d.ts +0 -0
  727. /package/dist/mjs/{src/types/data-structures/trie/index.d.ts → data-structures/trie/index.js} +0 -0
  728. /package/dist/mjs/{src/data-structures → data-structures}/trie/trie.d.ts +0 -0
  729. /package/dist/mjs/{src/index.d.ts → index.d.ts} +0 -0
  730. /package/dist/mjs/{src/interfaces/doubly-linked-list.d.ts → interfaces/binary-tree.js} +0 -0
  731. /package/dist/mjs/{src/types/data-structures/linked-list → interfaces}/doubly-linked-list.d.ts +0 -0
  732. /package/dist/mjs/{src/interfaces/heap.d.ts → interfaces/doubly-linked-list.js} +0 -0
  733. /package/dist/mjs/{src/interfaces → interfaces}/graph.d.ts +0 -0
  734. /package/dist/mjs/{src/interfaces/navigator.d.ts → interfaces/graph.js} +0 -0
  735. /package/dist/mjs/{src/types/data-structures/heap → interfaces}/heap.d.ts +0 -0
  736. /package/dist/mjs/{src/interfaces/priority-queue.d.ts → interfaces/heap.js} +0 -0
  737. /package/dist/mjs/{src/interfaces → interfaces}/index.d.ts +0 -0
  738. /package/dist/mjs/{src/interfaces/segment-tree.d.ts → interfaces/navigator.d.ts} +0 -0
  739. /package/dist/mjs/{src/interfaces/singly-linked-list.d.ts → interfaces/navigator.js} +0 -0
  740. /package/dist/mjs/{src/types/data-structures/priority-queue → interfaces}/priority-queue.d.ts +0 -0
  741. /package/dist/mjs/{src/types/data-structures/binary-tree/binary-indexed-tree.d.ts → interfaces/priority-queue.js} +0 -0
  742. /package/dist/mjs/{src/types/data-structures/graph/undirected-graph.d.ts → interfaces/segment-tree.d.ts} +0 -0
  743. /package/dist/mjs/{src/types/data-structures/hash/coordinate-map.d.ts → interfaces/segment-tree.js} +0 -0
  744. /package/dist/mjs/{src/types/data-structures/linked-list → interfaces}/singly-linked-list.d.ts +0 -0
  745. /package/dist/mjs/{src/types/data-structures/hash/coordinate-set.d.ts → interfaces/singly-linked-list.js} +0 -0
  746. /package/dist/mjs/{src/types → types}/data-structures/binary-tree/avl-tree.d.ts +0 -0
  747. /package/dist/mjs/{src/types/data-structures/hash/hash-map.d.ts → types/data-structures/binary-tree/avl-tree.js} +0 -0
  748. /package/dist/mjs/{src/types/data-structures/hash/hash-table.d.ts → types/data-structures/binary-tree/binary-indexed-tree.d.ts} +0 -0
  749. /package/dist/mjs/{src/types/data-structures/hash/tree-map.d.ts → types/data-structures/binary-tree/binary-indexed-tree.js} +0 -0
  750. /package/dist/mjs/{src/types → types}/data-structures/binary-tree/binary-tree.d.ts +0 -0
  751. /package/dist/mjs/{src/types → types}/data-structures/binary-tree/bst.d.ts +0 -0
  752. /package/dist/mjs/{src/types/data-structures/hash/tree-set.d.ts → types/data-structures/binary-tree/bst.js} +0 -0
  753. /package/dist/mjs/{src/types → types}/data-structures/binary-tree/index.d.ts +0 -0
  754. /package/dist/mjs/{src/types → types}/data-structures/binary-tree/rb-tree.d.ts +0 -0
  755. /package/dist/mjs/{src/types → types}/data-structures/binary-tree/segment-tree.d.ts +0 -0
  756. /package/dist/mjs/{src/types/data-structures/heap/max-heap.d.ts → types/data-structures/binary-tree/segment-tree.js} +0 -0
  757. /package/dist/mjs/{src/types → types}/data-structures/binary-tree/tree-multimap.d.ts +0 -0
  758. /package/dist/mjs/{src/types/data-structures/heap/min-heap.d.ts → types/data-structures/binary-tree/tree-multimap.js} +0 -0
  759. /package/dist/mjs/{src/types → types}/data-structures/graph/abstract-graph.d.ts +0 -0
  760. /package/dist/mjs/{src/types/data-structures/linked-list/skip-linked-list.d.ts → types/data-structures/graph/abstract-graph.js} +0 -0
  761. /package/dist/mjs/{src/types → types}/data-structures/graph/directed-graph.d.ts +0 -0
  762. /package/dist/mjs/{src/types → types}/data-structures/graph/index.d.ts +0 -0
  763. /package/dist/mjs/{src/types → types}/data-structures/graph/map-graph.d.ts +0 -0
  764. /package/dist/mjs/{src/types/data-structures/matrix/matrix.d.ts → types/data-structures/graph/map-graph.js} +0 -0
  765. /package/dist/mjs/{src/types/data-structures/matrix/matrix2d.d.ts → types/data-structures/graph/undirected-graph.d.ts} +0 -0
  766. /package/dist/mjs/{src/types/data-structures/matrix/vector2d.d.ts → types/data-structures/graph/undirected-graph.js} +0 -0
  767. /package/dist/mjs/{src/types/data-structures/priority-queue/max-priority-queue.d.ts → types/data-structures/hash/coordinate-map.d.ts} +0 -0
  768. /package/dist/mjs/{src/types/data-structures/priority-queue/min-priority-queue.d.ts → types/data-structures/hash/coordinate-map.js} +0 -0
  769. /package/dist/mjs/{src/types/data-structures/queue/deque.d.ts → types/data-structures/hash/coordinate-set.d.ts} +0 -0
  770. /package/dist/mjs/{src/types/data-structures/queue/queue.d.ts → types/data-structures/hash/coordinate-set.js} +0 -0
  771. /package/dist/mjs/{src/types/data-structures/stack/stack.d.ts → types/data-structures/hash/hash-map.d.ts} +0 -0
  772. /package/dist/mjs/{src/types/data-structures/tree/tree.d.ts → types/data-structures/hash/hash-map.js} +0 -0
  773. /package/dist/mjs/{src/types/data-structures/trie/trie.d.ts → types/data-structures/hash/hash-table.d.ts} +0 -0
  774. /package/dist/mjs/{src/types → types}/data-structures/hash/index.d.ts +0 -0
  775. /package/dist/mjs/{src/types → types}/data-structures/heap/index.d.ts +0 -0
  776. /package/dist/mjs/{src/types → types}/data-structures/index.d.ts +0 -0
  777. /package/dist/mjs/{src/types → types}/data-structures/linked-list/index.d.ts +0 -0
  778. /package/dist/mjs/{src/types → types}/data-structures/matrix/index.d.ts +0 -0
  779. /package/dist/mjs/{src/types → types}/data-structures/matrix/navigator.d.ts +0 -0
  780. /package/dist/mjs/{src/types → types}/helpers.d.ts +0 -0
  781. /package/dist/mjs/{src/types → types}/index.d.ts +0 -0
  782. /package/dist/mjs/{src/types → types}/utils/index.d.ts +0 -0
  783. /package/dist/mjs/{src/types → types}/utils/utils.d.ts +0 -0
  784. /package/dist/mjs/{src/types → types}/utils/validate-type.d.ts +0 -0
  785. /package/dist/mjs/{src/utils → utils}/index.d.ts +0 -0
  786. /package/dist/mjs/{src/utils → utils}/utils.d.ts +0 -0
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /**
3
2
  * data-structure-typed
4
3
  *
@@ -6,19 +5,16 @@
6
5
  * @copyright Copyright (c) 2022 Tyler Zeng <zrwusa@gmail.com>
7
6
  * @license MIT License
8
7
  */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.RedBlackTree = exports.RedBlackTreeNode = void 0;
11
- const types_1 = require("../../types");
12
- const bst_1 = require("./bst");
13
- const binary_tree_1 = require("./binary-tree");
14
- class RedBlackTreeNode extends bst_1.BSTNode {
8
+ import { RBTNColor } from '../../types';
9
+ import { BST, BSTNode } from './bst';
10
+ import { BinaryTreeNode } from './binary-tree';
11
+ export class RedBlackTreeNode extends BSTNode {
15
12
  color;
16
- constructor(key, value, color = types_1.RBTNColor.BLACK) {
13
+ constructor(key, value, color = RBTNColor.BLACK) {
17
14
  super(key, value);
18
15
  this.color = color;
19
16
  }
20
17
  }
21
- exports.RedBlackTreeNode = RedBlackTreeNode;
22
18
  /**
23
19
  * 1. Each node is either red or black.
24
20
  * 2. The root node is always black.
@@ -26,7 +22,8 @@ exports.RedBlackTreeNode = RedBlackTreeNode;
26
22
  * 4. Red nodes must have black children.
27
23
  * 5. Black balance: Every path from any node to each of its leaf nodes contains the same number of black nodes.
28
24
  */
29
- class RedBlackTree extends bst_1.BST {
25
+ export class RedBlackTree extends BST {
26
+ NIL = new RedBlackTreeNode(NaN);
30
27
  /**
31
28
  * The constructor function initializes a Red-Black Tree with an optional set of options.
32
29
  * @param {RBTreeOptions} [options] - The `options` parameter is an optional object that can be
@@ -44,7 +41,6 @@ class RedBlackTree extends bst_1.BST {
44
41
  get size() {
45
42
  return this._size;
46
43
  }
47
- NIL = new RedBlackTreeNode(NaN);
48
44
  /**
49
45
  * Time Complexity: O(log n) on average (where n is the number of nodes in the tree)
50
46
  * Space Complexity: O(1)
@@ -63,7 +59,7 @@ class RedBlackTree extends bst_1.BST {
63
59
  add(keyOrNode, value) {
64
60
  let node;
65
61
  if (this.isNodeKey(keyOrNode)) {
66
- node = this.createNode(keyOrNode, value, types_1.RBTNColor.RED);
62
+ node = this.createNode(keyOrNode, value, RBTNColor.RED);
67
63
  }
68
64
  else if (keyOrNode instanceof RedBlackTreeNode) {
69
65
  node = keyOrNode;
@@ -101,7 +97,7 @@ class RedBlackTree extends bst_1.BST {
101
97
  y.right = node;
102
98
  }
103
99
  if (node.parent === undefined) {
104
- node.color = types_1.RBTNColor.BLACK;
100
+ node.color = RBTNColor.BLACK;
105
101
  this._size++;
106
102
  return;
107
103
  }
@@ -112,7 +108,7 @@ class RedBlackTree extends bst_1.BST {
112
108
  this._fixInsert(node);
113
109
  this._size++;
114
110
  }
115
- createNode(key, value, color = types_1.RBTNColor.BLACK) {
111
+ createNode(key, value, color = RBTNColor.BLACK) {
116
112
  return new RedBlackTreeNode(key, value, color);
117
113
  }
118
114
  /**
@@ -183,7 +179,7 @@ class RedBlackTree extends bst_1.BST {
183
179
  y.left.parent = y;
184
180
  y.color = z.color;
185
181
  }
186
- if (yOriginalColor === types_1.RBTNColor.BLACK) {
182
+ if (yOriginalColor === RBTNColor.BLACK) {
187
183
  this._fixDelete(x);
188
184
  }
189
185
  this._size--;
@@ -221,7 +217,7 @@ class RedBlackTree extends bst_1.BST {
221
217
  * @returns a value of type `N`, `null`, or `undefined`.
222
218
  */
223
219
  getNode(identifier, callback = this._defaultOneParamCallback, beginRoot = this.root, iterationType = this.iterationType) {
224
- if (identifier instanceof binary_tree_1.BinaryTreeNode)
220
+ if (identifier instanceof BinaryTreeNode)
225
221
  callback = (node => node);
226
222
  beginRoot = this.ensureNotKey(beginRoot);
227
223
  return this.getNodes(identifier, callback, true, beginRoot, iterationType)[0] ?? undefined;
@@ -363,32 +359,32 @@ class RedBlackTree extends bst_1.BST {
363
359
  */
364
360
  _fixDelete(x) {
365
361
  let s;
366
- while (x !== this.root && x.color === types_1.RBTNColor.BLACK) {
362
+ while (x !== this.root && x.color === RBTNColor.BLACK) {
367
363
  if (x.parent && x === x.parent.left) {
368
364
  s = x.parent.right;
369
365
  if (s.color === 1) {
370
- s.color = types_1.RBTNColor.BLACK;
371
- x.parent.color = types_1.RBTNColor.RED;
366
+ s.color = RBTNColor.BLACK;
367
+ x.parent.color = RBTNColor.RED;
372
368
  this._leftRotate(x.parent);
373
369
  s = x.parent.right;
374
370
  }
375
- if (s.left !== undefined && s.left.color === types_1.RBTNColor.BLACK && s.right && s.right.color === types_1.RBTNColor.BLACK) {
376
- s.color = types_1.RBTNColor.RED;
371
+ if (s.left !== undefined && s.left.color === RBTNColor.BLACK && s.right && s.right.color === RBTNColor.BLACK) {
372
+ s.color = RBTNColor.RED;
377
373
  x = x.parent;
378
374
  }
379
375
  else {
380
- if (s.right && s.right.color === types_1.RBTNColor.BLACK) {
376
+ if (s.right && s.right.color === RBTNColor.BLACK) {
381
377
  if (s.left)
382
- s.left.color = types_1.RBTNColor.BLACK;
383
- s.color = types_1.RBTNColor.RED;
378
+ s.left.color = RBTNColor.BLACK;
379
+ s.color = RBTNColor.RED;
384
380
  this._rightRotate(s);
385
381
  s = x.parent.right;
386
382
  }
387
383
  if (s)
388
384
  s.color = x.parent.color;
389
- x.parent.color = types_1.RBTNColor.BLACK;
385
+ x.parent.color = RBTNColor.BLACK;
390
386
  if (s && s.right)
391
- s.right.color = types_1.RBTNColor.BLACK;
387
+ s.right.color = RBTNColor.BLACK;
392
388
  this._leftRotate(x.parent);
393
389
  x = this.root;
394
390
  }
@@ -396,34 +392,34 @@ class RedBlackTree extends bst_1.BST {
396
392
  else {
397
393
  s = x.parent.left;
398
394
  if (s.color === 1) {
399
- s.color = types_1.RBTNColor.BLACK;
400
- x.parent.color = types_1.RBTNColor.RED;
395
+ s.color = RBTNColor.BLACK;
396
+ x.parent.color = RBTNColor.RED;
401
397
  this._rightRotate(x.parent);
402
398
  s = x.parent.left;
403
399
  }
404
- if (s && s.right && s.right.color === types_1.RBTNColor.BLACK && s.right.color === types_1.RBTNColor.BLACK) {
405
- s.color = types_1.RBTNColor.RED;
400
+ if (s && s.right && s.right.color === RBTNColor.BLACK && s.right.color === RBTNColor.BLACK) {
401
+ s.color = RBTNColor.RED;
406
402
  x = x.parent;
407
403
  }
408
404
  else {
409
- if (s && s.left && s.left.color === types_1.RBTNColor.BLACK) {
405
+ if (s && s.left && s.left.color === RBTNColor.BLACK) {
410
406
  if (s.right)
411
- s.right.color = types_1.RBTNColor.BLACK;
412
- s.color = types_1.RBTNColor.RED;
407
+ s.right.color = RBTNColor.BLACK;
408
+ s.color = RBTNColor.RED;
413
409
  this._leftRotate(s);
414
410
  s = x.parent.left;
415
411
  }
416
412
  if (s)
417
413
  s.color = x.parent.color;
418
- x.parent.color = types_1.RBTNColor.BLACK;
414
+ x.parent.color = RBTNColor.BLACK;
419
415
  if (s && s.left)
420
- s.left.color = types_1.RBTNColor.BLACK;
416
+ s.left.color = RBTNColor.BLACK;
421
417
  this._rightRotate(x.parent);
422
418
  x = this.root;
423
419
  }
424
420
  }
425
421
  }
426
- x.color = types_1.RBTNColor.BLACK;
422
+ x.color = RBTNColor.BLACK;
427
423
  }
428
424
  /**
429
425
  * Time Complexity: O(1)
@@ -467,9 +463,9 @@ class RedBlackTree extends bst_1.BST {
467
463
  if (k.parent.parent && k.parent === k.parent.parent.right) {
468
464
  u = k.parent.parent.left;
469
465
  if (u && u.color === 1) {
470
- u.color = types_1.RBTNColor.BLACK;
471
- k.parent.color = types_1.RBTNColor.BLACK;
472
- k.parent.parent.color = types_1.RBTNColor.RED;
466
+ u.color = RBTNColor.BLACK;
467
+ k.parent.color = RBTNColor.BLACK;
468
+ k.parent.parent.color = RBTNColor.RED;
473
469
  k = k.parent.parent;
474
470
  }
475
471
  else {
@@ -477,17 +473,17 @@ class RedBlackTree extends bst_1.BST {
477
473
  k = k.parent;
478
474
  this._rightRotate(k);
479
475
  }
480
- k.parent.color = types_1.RBTNColor.BLACK;
481
- k.parent.parent.color = types_1.RBTNColor.RED;
476
+ k.parent.color = RBTNColor.BLACK;
477
+ k.parent.parent.color = RBTNColor.RED;
482
478
  this._leftRotate(k.parent.parent);
483
479
  }
484
480
  }
485
481
  else {
486
482
  u = k.parent.parent.right;
487
483
  if (u && u.color === 1) {
488
- u.color = types_1.RBTNColor.BLACK;
489
- k.parent.color = types_1.RBTNColor.BLACK;
490
- k.parent.parent.color = types_1.RBTNColor.RED;
484
+ u.color = RBTNColor.BLACK;
485
+ k.parent.color = RBTNColor.BLACK;
486
+ k.parent.parent.color = RBTNColor.RED;
491
487
  k = k.parent.parent;
492
488
  }
493
489
  else {
@@ -495,8 +491,8 @@ class RedBlackTree extends bst_1.BST {
495
491
  k = k.parent;
496
492
  this._leftRotate(k);
497
493
  }
498
- k.parent.color = types_1.RBTNColor.BLACK;
499
- k.parent.parent.color = types_1.RBTNColor.RED;
494
+ k.parent.color = RBTNColor.BLACK;
495
+ k.parent.parent.color = RBTNColor.RED;
500
496
  this._rightRotate(k.parent.parent);
501
497
  }
502
498
  }
@@ -504,7 +500,6 @@ class RedBlackTree extends bst_1.BST {
504
500
  break;
505
501
  }
506
502
  }
507
- this.root.color = types_1.RBTNColor.BLACK;
503
+ this.root.color = RBTNColor.BLACK;
508
504
  }
509
505
  }
510
- exports.RedBlackTree = RedBlackTree;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /**
3
2
  * data-structure-typed
4
3
  *
@@ -6,9 +5,7 @@
6
5
  * @copyright Copyright (c) 2022 Tyler Zeng <zrwusa@gmail.com>
7
6
  * @license MIT License
8
7
  */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.SegmentTree = exports.SegmentTreeNode = void 0;
11
- class SegmentTreeNode {
8
+ export class SegmentTreeNode {
12
9
  start = 0;
13
10
  end = 0;
14
11
  value = null;
@@ -22,8 +19,7 @@ class SegmentTreeNode {
22
19
  this.value = value || null;
23
20
  }
24
21
  }
25
- exports.SegmentTreeNode = SegmentTreeNode;
26
- class SegmentTree {
22
+ export class SegmentTree {
27
23
  /**
28
24
  * The constructor initializes the values, start, end, and root properties of an object.
29
25
  * @param {number[]} values - An array of numbers that will be used to build a binary search tree.
@@ -179,4 +175,3 @@ class SegmentTree {
179
175
  return dfs(root, indexA, indexB);
180
176
  }
181
177
  }
182
- exports.SegmentTree = SegmentTree;
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TreeMultimap = exports.TreeMultimapNode = void 0;
4
- const types_1 = require("../../types");
5
- const avl_tree_1 = require("./avl-tree");
6
- class TreeMultimapNode extends avl_tree_1.AVLTreeNode {
1
+ import { CP, FamilyPosition, IterationType } from '../../types';
2
+ import { AVLTree, AVLTreeNode } from './avl-tree';
3
+ export class TreeMultimapNode extends AVLTreeNode {
7
4
  count;
8
5
  /**
9
6
  * The constructor function initializes a BinaryTreeNode object with a key, value, and count.
@@ -20,11 +17,10 @@ class TreeMultimapNode extends avl_tree_1.AVLTreeNode {
20
17
  this.count = count;
21
18
  }
22
19
  }
23
- exports.TreeMultimapNode = TreeMultimapNode;
24
20
  /**
25
21
  * The only distinction between a TreeMultimap and a AVLTree lies in the ability of the former to store duplicate nodes through the utilization of counters.
26
22
  */
27
- class TreeMultimap extends avl_tree_1.AVLTree {
23
+ export class TreeMultimap extends AVLTree {
28
24
  /**
29
25
  * The constructor function for a TreeMultimap class in TypeScript, which extends another class and sets an option to
30
26
  * merge duplicated values.
@@ -94,14 +90,14 @@ class TreeMultimap extends avl_tree_1.AVLTree {
94
90
  while (traversing) {
95
91
  if (cur) {
96
92
  if (newNode) {
97
- if (this._compare(cur.key, newNode.key) === types_1.CP.eq) {
93
+ if (this._compare(cur.key, newNode.key) === CP.eq) {
98
94
  cur.value = newNode.value;
99
95
  cur.count += newNode.count;
100
96
  this._count += newNode.count;
101
97
  traversing = false;
102
98
  inserted = cur;
103
99
  }
104
- else if (this._compare(cur.key, newNode.key) === types_1.CP.gt) {
100
+ else if (this._compare(cur.key, newNode.key) === CP.gt) {
105
101
  // Traverse left of the node
106
102
  if (cur.left === undefined) {
107
103
  //Add to the left of the current node
@@ -117,7 +113,7 @@ class TreeMultimap extends avl_tree_1.AVLTree {
117
113
  cur = cur.left;
118
114
  }
119
115
  }
120
- else if (this._compare(cur.key, newNode.key) === types_1.CP.lt) {
116
+ else if (this._compare(cur.key, newNode.key) === CP.lt) {
121
117
  // Traverse right of the node
122
118
  if (cur.right === undefined) {
123
119
  //Add to the right of the current node
@@ -151,52 +147,6 @@ class TreeMultimap extends avl_tree_1.AVLTree {
151
147
  * Time Complexity: O(1) - constant time, as it performs basic pointer assignments.
152
148
  * Space Complexity: O(1) - constant space, as it only uses a constant amount of memory.
153
149
  */
154
- /**
155
- * Time Complexity: O(1) - constant time, as it performs basic pointer assignments.
156
- * Space Complexity: O(1) - constant space, as it only uses a constant amount of memory.
157
- *
158
- * The function adds a new node to a binary tree, either as the left child or the right child of a
159
- * given parent node.
160
- * @param {N | undefined} newNode - The `newNode` parameter represents the node that needs to be
161
- * added to the binary tree. It can be of type `N` (which represents a node in the binary tree) or
162
- * `undefined` if there is no node to add.
163
- * @param {BTNKey | N | undefined} parent - The `parent` parameter represents the parent node to
164
- * which the new node will be added as a child. It can be either a node object (`N`) or a key value
165
- * (`BTNKey`).
166
- * @returns The method `_addTo` returns either the `parent.left` or `parent.right` node that was
167
- * added, or `undefined` if no node was added.
168
- */
169
- _addTo(newNode, parent) {
170
- parent = this.ensureNotKey(parent);
171
- if (parent) {
172
- if (parent.left === undefined) {
173
- parent.left = newNode;
174
- if (newNode !== undefined) {
175
- this._size = this.size + 1;
176
- this._count += newNode.count;
177
- }
178
- return parent.left;
179
- }
180
- else if (parent.right === undefined) {
181
- parent.right = newNode;
182
- if (newNode !== undefined) {
183
- this._size = this.size + 1;
184
- this._count += newNode.count;
185
- }
186
- return parent.right;
187
- }
188
- else {
189
- return;
190
- }
191
- }
192
- else {
193
- return;
194
- }
195
- }
196
- /**
197
- * Time Complexity: O(k log n) - logarithmic time for each insertion, where "n" is the number of nodes in the tree, and "k" is the number of keys to be inserted. This is because the method iterates through the keys and calls the add method for each.
198
- * Space Complexity: O(1) - constant space, as it doesn't use additional data structures that scale with input size.
199
- */
200
150
  /**
201
151
  * Time Complexity: O(k log n) - logarithmic time for each insertion, where "n" is the number of nodes in the tree, and "k" is the number of keys to be inserted. This is because the method iterates through the keys and calls the add method for each.
202
152
  * Space Complexity: O(1) - constant space, as it doesn't use additional data structures that scale with input size.
@@ -227,8 +177,8 @@ class TreeMultimap extends avl_tree_1.AVLTree {
227
177
  return inserted;
228
178
  }
229
179
  /**
230
- * Time Complexity: O(n log n) - logarithmic time for each insertion, where "n" is the number of nodes in the tree. This is because the method calls the add method for each node.
231
- * Space Complexity: O(n) - linear space, as it creates an array to store the sorted nodes.
180
+ * Time Complexity: O(k log n) - logarithmic time for each insertion, where "n" is the number of nodes in the tree, and "k" is the number of keys to be inserted. This is because the method iterates through the keys and calls the add method for each.
181
+ * Space Complexity: O(1) - constant space, as it doesn't use additional data structures that scale with input size.
232
182
  */
233
183
  /**
234
184
  * Time Complexity: O(n log n) - logarithmic time for each insertion, where "n" is the number of nodes in the tree. This is because the method calls the add method for each node.
@@ -246,7 +196,7 @@ class TreeMultimap extends avl_tree_1.AVLTree {
246
196
  if (sorted.length < 1)
247
197
  return false;
248
198
  this.clear();
249
- if (iterationType === types_1.IterationType.RECURSIVE) {
199
+ if (iterationType === IterationType.RECURSIVE) {
250
200
  const buildBalanceBST = (l, r) => {
251
201
  if (l > r)
252
202
  return;
@@ -278,8 +228,8 @@ class TreeMultimap extends avl_tree_1.AVLTree {
278
228
  }
279
229
  }
280
230
  /**
281
- * Time Complexity: O(log n) - logarithmic time, where "n" is the number of nodes in the tree. The delete method of the superclass (AVLTree) has logarithmic time complexity.
282
- * Space Complexity: O(1) - constant space, as it doesn't use additional data structures that scale with input size.
231
+ * Time Complexity: O(n log n) - logarithmic time for each insertion, where "n" is the number of nodes in the tree. This is because the method calls the add method for each node.
232
+ * Space Complexity: O(n) - linear space, as it creates an array to store the sorted nodes.
283
233
  */
284
234
  /**
285
235
  * Time Complexity: O(log n) - logarithmic time, where "n" is the number of nodes in the tree. The delete method of the superclass (AVLTree) has logarithmic time complexity.
@@ -321,10 +271,10 @@ class TreeMultimap extends avl_tree_1.AVLTree {
321
271
  }
322
272
  else {
323
273
  const { familyPosition: fp } = curr;
324
- if (fp === types_1.FamilyPosition.LEFT || fp === types_1.FamilyPosition.ROOT_LEFT) {
274
+ if (fp === FamilyPosition.LEFT || fp === FamilyPosition.ROOT_LEFT) {
325
275
  parent.left = curr.right;
326
276
  }
327
- else if (fp === types_1.FamilyPosition.RIGHT || fp === types_1.FamilyPosition.ROOT_RIGHT) {
277
+ else if (fp === FamilyPosition.RIGHT || fp === FamilyPosition.ROOT_RIGHT) {
328
278
  parent.right = curr.right;
329
279
  }
330
280
  needBalanced = parent;
@@ -357,6 +307,10 @@ class TreeMultimap extends avl_tree_1.AVLTree {
357
307
  }
358
308
  return deletedResult;
359
309
  }
310
+ /**
311
+ * Time Complexity: O(log n) - logarithmic time, where "n" is the number of nodes in the tree. The delete method of the superclass (AVLTree) has logarithmic time complexity.
312
+ * Space Complexity: O(1) - constant space, as it doesn't use additional data structures that scale with input size.
313
+ */
360
314
  /**
361
315
  * The clear() function clears the contents of a data structure and sets the count to zero.
362
316
  */
@@ -364,6 +318,48 @@ class TreeMultimap extends avl_tree_1.AVLTree {
364
318
  super.clear();
365
319
  this._count = 0;
366
320
  }
321
+ /**
322
+ * Time Complexity: O(1) - constant time, as it performs basic pointer assignments.
323
+ * Space Complexity: O(1) - constant space, as it only uses a constant amount of memory.
324
+ *
325
+ * The function adds a new node to a binary tree, either as the left child or the right child of a
326
+ * given parent node.
327
+ * @param {N | undefined} newNode - The `newNode` parameter represents the node that needs to be
328
+ * added to the binary tree. It can be of type `N` (which represents a node in the binary tree) or
329
+ * `undefined` if there is no node to add.
330
+ * @param {BTNKey | N | undefined} parent - The `parent` parameter represents the parent node to
331
+ * which the new node will be added as a child. It can be either a node object (`N`) or a key value
332
+ * (`BTNKey`).
333
+ * @returns The method `_addTo` returns either the `parent.left` or `parent.right` node that was
334
+ * added, or `undefined` if no node was added.
335
+ */
336
+ _addTo(newNode, parent) {
337
+ parent = this.ensureNotKey(parent);
338
+ if (parent) {
339
+ if (parent.left === undefined) {
340
+ parent.left = newNode;
341
+ if (newNode !== undefined) {
342
+ this._size = this.size + 1;
343
+ this._count += newNode.count;
344
+ }
345
+ return parent.left;
346
+ }
347
+ else if (parent.right === undefined) {
348
+ parent.right = newNode;
349
+ if (newNode !== undefined) {
350
+ this._size = this.size + 1;
351
+ this._count += newNode.count;
352
+ }
353
+ return parent.right;
354
+ }
355
+ else {
356
+ return;
357
+ }
358
+ }
359
+ else {
360
+ return;
361
+ }
362
+ }
367
363
  /**
368
364
  * The `_swap` function swaps the key, value, count, and height properties between two nodes.
369
365
  * @param {BTNKey | N | undefined} srcNode - The `srcNode` parameter represents the source node from
@@ -395,4 +391,3 @@ class TreeMultimap extends avl_tree_1.AVLTree {
395
391
  return undefined;
396
392
  }
397
393
  }
398
- exports.TreeMultimap = TreeMultimap;
@@ -235,24 +235,24 @@ export declare abstract class AbstractGraph<V = any, E = any, VO extends Abstrac
235
235
  * Space Complexity: O(V + E) - Depends on the implementation (Dijkstra's algorithm).
236
236
  */
237
237
  /**
238
- * Time Complexity: O(V^2 + E) - Quadratic time in the worst case (no heap optimization).
239
- * Space Complexity: O(V + E) - Depends on the implementation (Dijkstra's algorithm).
240
- *
241
- * The function `dijkstraWithoutHeap` implements Dijkstra's algorithm to find the shortest path between two vertices in
242
- * a graph without using a heap data structure.
243
- * @param {VO | VertexKey} src - The source vertex from which to start the Dijkstra's algorithm. It can be either a
244
- * vertex object or a vertex ID.
245
- * @param {VO | VertexKey | null} [dest] - The `dest` parameter in the `dijkstraWithoutHeap` function is an optional
246
- * parameter that specifies the destination vertex for the Dijkstra algorithm. It can be either a vertex object or its
247
- * identifier. If no destination is provided, the value is set to `null`.
248
- * @param {boolean} [getMinDist] - The `getMinDist` parameter is a boolean flag that determines whether the minimum
249
- * distance from the source vertex to the destination vertex should be calculated and returned in the result. If
250
- * `getMinDist` is set to `true`, the `minDist` property in the result will contain the minimum distance
251
- * @param {boolean} [genPaths] - The `genPaths` parameter is a boolean flag that determines whether or not to generate
252
- * paths in the Dijkstra algorithm. If `genPaths` is set to `true`, the algorithm will calculate and return the
253
- * shortest paths from the source vertex to all other vertices in the graph. If `genPaths
254
- * @returns The function `dijkstraWithoutHeap` returns an object of type `DijkstraResult<VO>`.
255
- */
238
+ * Time Complexity: O(V^2 + E) - Quadratic time in the worst case (no heap optimization).
239
+ * Space Complexity: O(V + E) - Depends on the implementation (Dijkstra's algorithm).
240
+ *
241
+ * The function `dijkstraWithoutHeap` implements Dijkstra's algorithm to find the shortest path between two vertices in
242
+ * a graph without using a heap data structure.
243
+ * @param {VO | VertexKey} src - The source vertex from which to start the Dijkstra's algorithm. It can be either a
244
+ * vertex object or a vertex ID.
245
+ * @param {VO | VertexKey | null} [dest] - The `dest` parameter in the `dijkstraWithoutHeap` function is an optional
246
+ * parameter that specifies the destination vertex for the Dijkstra algorithm. It can be either a vertex object or its
247
+ * identifier. If no destination is provided, the value is set to `null`.
248
+ * @param {boolean} [getMinDist] - The `getMinDist` parameter is a boolean flag that determines whether the minimum
249
+ * distance from the source vertex to the destination vertex should be calculated and returned in the result. If
250
+ * `getMinDist` is set to `true`, the `minDist` property in the result will contain the minimum distance
251
+ * @param {boolean} [genPaths] - The `genPaths` parameter is a boolean flag that determines whether or not to generate
252
+ * paths in the Dijkstra algorithm. If `genPaths` is set to `true`, the algorithm will calculate and return the
253
+ * shortest paths from the source vertex to all other vertices in the graph. If `genPaths
254
+ * @returns The function `dijkstraWithoutHeap` returns an object of type `DijkstraResult<VO>`.
255
+ */
256
256
  dijkstraWithoutHeap(src: VO | VertexKey, dest?: VO | VertexKey | null, getMinDist?: boolean, genPaths?: boolean): DijkstraResult<VO>;
257
257
  /**
258
258
  * Dijkstra algorithm time: O(logVE) space: O(VO + EO)
@@ -268,25 +268,25 @@ export declare abstract class AbstractGraph<V = any, E = any, VO extends Abstrac
268
268
  * Space Complexity: O(V + E) - Depends on the implementation (using a binary heap).
269
269
  */
270
270
  /**
271
- * Time Complexity: O((V + E) * log(V)) - Depends on the implementation (using a binary heap).
272
- * Space Complexity: O(V + E) - Depends on the implementation (using a binary heap).
273
- *
274
- * Dijkstra's algorithm is used to find the shortest paths from a source node to all other nodes in a graph. Its basic idea is to repeatedly choose the node closest to the source node and update the distances of other nodes using this node as an intermediary. Dijkstra's algorithm requires that the edge weights in the graph are non-negative.
275
- * The `dijkstra` function implements Dijkstra's algorithm to find the shortest path between a source vertex and an
276
- * optional destination vertex, and optionally returns the minimum distance, the paths, and other information.
277
- * @param {VO | VertexKey} src - The `src` parameter represents the source vertex from which the Dijkstra algorithm will
278
- * start. It can be either a vertex object or a vertex ID.
279
- * @param {VO | VertexKey | null} [dest] - The `dest` parameter is the destination vertex or vertex ID. It specifies the
280
- * vertex to which the shortest path is calculated from the source vertex. If no destination is provided, the algorithm
281
- * will calculate the shortest paths to all other vertices from the source vertex.
282
- * @param {boolean} [getMinDist] - The `getMinDist` parameter is a boolean flag that determines whether the minimum
283
- * distance from the source vertex to the destination vertex should be calculated and returned in the result. If
284
- * `getMinDist` is set to `true`, the `minDist` property in the result will contain the minimum distance
285
- * @param {boolean} [genPaths] - The `genPaths` parameter is a boolean flag that determines whether or not to generate
286
- * paths in the Dijkstra algorithm. If `genPaths` is set to `true`, the algorithm will calculate and return the
287
- * shortest paths from the source vertex to all other vertices in the graph. If `genPaths
288
- * @returns The function `dijkstra` returns an object of type `DijkstraResult<VO>`.
289
- */
271
+ * Time Complexity: O((V + E) * log(V)) - Depends on the implementation (using a binary heap).
272
+ * Space Complexity: O(V + E) - Depends on the implementation (using a binary heap).
273
+ *
274
+ * Dijkstra's algorithm is used to find the shortest paths from a source node to all other nodes in a graph. Its basic idea is to repeatedly choose the node closest to the source node and update the distances of other nodes using this node as an intermediary. Dijkstra's algorithm requires that the edge weights in the graph are non-negative.
275
+ * The `dijkstra` function implements Dijkstra's algorithm to find the shortest path between a source vertex and an
276
+ * optional destination vertex, and optionally returns the minimum distance, the paths, and other information.
277
+ * @param {VO | VertexKey} src - The `src` parameter represents the source vertex from which the Dijkstra algorithm will
278
+ * start. It can be either a vertex object or a vertex ID.
279
+ * @param {VO | VertexKey | null} [dest] - The `dest` parameter is the destination vertex or vertex ID. It specifies the
280
+ * vertex to which the shortest path is calculated from the source vertex. If no destination is provided, the algorithm
281
+ * will calculate the shortest paths to all other vertices from the source vertex.
282
+ * @param {boolean} [getMinDist] - The `getMinDist` parameter is a boolean flag that determines whether the minimum
283
+ * distance from the source vertex to the destination vertex should be calculated and returned in the result. If
284
+ * `getMinDist` is set to `true`, the `minDist` property in the result will contain the minimum distance
285
+ * @param {boolean} [genPaths] - The `genPaths` parameter is a boolean flag that determines whether or not to generate
286
+ * paths in the Dijkstra algorithm. If `genPaths` is set to `true`, the algorithm will calculate and return the
287
+ * shortest paths from the source vertex to all other vertices in the graph. If `genPaths
288
+ * @returns The function `dijkstra` returns an object of type `DijkstraResult<VO>`.
289
+ */
290
290
  dijkstra(src: VO | VertexKey, dest?: VO | VertexKey | null, getMinDist?: boolean, genPaths?: boolean): DijkstraResult<VO>;
291
291
  /**
292
292
  * Time Complexity: O(V * E) - Quadratic time in the worst case (Bellman-Ford algorithm).