Commit 3360474
Enhanced Trie Data Structure with Case-Insensitive Feature and additional Test Cases (TheAlgorithms#172)
* Added Disjoint Sets Data structure
* Moved DisjointSetTest.php to tests/DataStructures
* Update DataStructures/DisjointSets/DisjointSet.php
Co-authored-by: Brandon Johnson <[email protected]>
* Update DataStructures/DisjointSets/DisjointSetNode.php
Co-authored-by: Brandon Johnson <[email protected]>
* Update DataStructures/DisjointSets/DisjointSetNode.php
Co-authored-by: Brandon Johnson <[email protected]>
* Update tests/DataStructures/DisjointSetTest.php
Co-authored-by: Brandon Johnson <[email protected]>
* Update tests/DataStructures/DisjointSetTest.php
Co-authored-by: Brandon Johnson <[email protected]>
* Update tests/DataStructures/DisjointSetTest.php
Co-authored-by: Brandon Johnson <[email protected]>
* Considered PHPCS remarks. Unit Testing is now working.
* Remove data type mixed. Considered annotations for php7.4.
* Remove data type mixed. Considered annotations for php7.4.
* updating DIRECTORY.md
* Implemented Trie DataStructure
* Added Trie to DIRECTORY.md
* updating DIRECTORY.md
* Implemented AVLTree DataStructure
* updating DIRECTORY.md
* Implemented AVLTree DataStructure
* Implemented SegmentTreeNode.php
* Implementing SegmentTree
* Implementing SegmentTree with updateTree
* Implementing SegmentTree with rangeUpdateTree
* Implementing SegmentTree with query and queryTree
* Added serializing and deserializing of the SegmentTree
* Adding unit tests SegmentTree implementation
* Added unit tests for SegmentTree updates and range updates
* considering PHPCS for Added unit tests for SegmentTree updates and range updates
* Added unit tests for SegmentTree serialization/deserialization and array updates reflections
* Added unit tests for SegmentTree Edge Cases
* Added unit tests for SegmentTree Exceptions (OutOfBoundsException, InvalidArgumentException)
* Added SegmentTree to DIRECTORY.md
* Implemented Segment Tree Data Structure
* updating DIRECTORY.md
* Added some comments to my files in: TheAlgorithms#160, TheAlgorithms#162, TheAlgorithms#163, TheAlgorithms#166. Implemented Segment Tree Data Structure.
* Added some comments to my files in: TheAlgorithms#160, TheAlgorithms#162, TheAlgorithms#163, TheAlgorithms#166. Implemented Segment Tree Data Structure.
* Added comments time complexity for query(), update() and buildTree()
* Implemented Splay Tree Data Structure
* Update tests/DataStructures/SplayTreeTest.php
Co-authored-by: Brandon Johnson <[email protected]>
* Implemented Trie Data Structure. Added case-insensitive feature to the Trie implementation. Added corresponding unit testing.
---------
Co-authored-by: Brandon Johnson <[email protected]>
Co-authored-by: Ramy-Badr-Ahmed <[email protected]>1 parent ea4d3b0 commit 3360474
File tree
3 files changed
+175
-4
lines changed- DataStructures/Trie
- tests/DataStructures
3 files changed
+175
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
51 | 63 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
45 | 92 | | |
46 | 93 | | |
47 | 94 | | |
| |||
58 | 105 | | |
59 | 106 | | |
60 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
61 | 131 | | |
62 | 132 | | |
63 | | - | |
64 | 133 | | |
65 | 134 | | |
66 | 135 | | |
| |||
80 | 149 | | |
81 | 150 | | |
82 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
83 | 188 | | |
84 | 189 | | |
85 | 190 | | |
86 | 191 | | |
87 | 192 | | |
88 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
89 | 197 | | |
90 | 198 | | |
91 | 199 | | |
| |||
99 | 207 | | |
100 | 208 | | |
101 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
102 | 213 | | |
103 | 214 | | |
104 | 215 | | |
105 | 216 | | |
106 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
107 | 221 | | |
108 | 222 | | |
109 | 223 | | |
| |||
117 | 231 | | |
118 | 232 | | |
119 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
120 | 237 | | |
121 | 238 | | |
122 | 239 | | |
123 | 240 | | |
124 | 241 | | |
125 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
126 | 246 | | |
127 | 247 | | |
128 | 248 | | |
129 | 249 | | |
130 | 250 | | |
131 | 251 | | |
132 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
133 | 256 | | |
134 | 257 | | |
135 | 258 | | |
| |||
142 | 265 | | |
143 | 266 | | |
144 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
145 | 302 | | |
0 commit comments