Commit cb2bbf9
Added Extra Tests for Splay Tree Operations (TheAlgorithms#171)
* 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 Splay Tree Data Structure. Added counter test for deletion.
* Implemented Splay Tree Data Structure. Added counter test for multiple deletions.
* Implemented Splay Tree Data Structure. Added counter test for multiple deletions.
* Implemented Splay Tree Data Structure. Added abstract setRoot() declaration to the SplayTreeRotations.php
* Implemented Splay Tree Data Structure. Fix for array_rand for non-array result. Rewriting.
* Implemented Splay Tree Data Structure. Fix for multiple deletion test.
* Implemented Splay Tree Data Structure. Added test for large splay tree operations.
---------
Co-authored-by: Brandon Johnson <[email protected]>
Co-authored-by: Ramy-Badr-Ahmed <[email protected]>1 parent 3360474 commit cb2bbf9
File tree
3 files changed
+68
-6
lines changed- DataStructures/SplayTree
- tests/DataStructures
3 files changed
+68
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
322 | | - | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| |||
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
393 | | - | |
| 394 | + | |
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
| |||
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| 405 | + | |
404 | 406 | | |
405 | | - | |
406 | 407 | | |
| 408 | + | |
407 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
408 | 417 | | |
409 | 418 | | |
410 | 419 | | |
| |||
441 | 450 | | |
442 | 451 | | |
443 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
444 | 483 | | |
445 | 484 | | |
446 | 485 | | |
| |||
478 | 517 | | |
479 | 518 | | |
480 | 519 | | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
481 | 542 | | |
482 | 543 | | |
483 | 544 | | |
| |||
0 commit comments