Skip to content

Commit 45f57ea

Browse files
Implemented Splay Tree Data Structure (#168)
* 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: #160, #162, #163, #166. Implemented Segment Tree Data Structure. * Added some comments to my files in: #160, #162, #163, #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]> --------- Co-authored-by: Brandon Johnson <[email protected]> Co-authored-by: Ramy-Badr-Ahmed <[email protected]>
1 parent 5a8418c commit 45f57ea

File tree

5 files changed

+1264
-0
lines changed

5 files changed

+1264
-0
lines changed

DIRECTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
* [Segmenttree](./DataStructures/SegmentTree/SegmentTree.php)
3232
* [Segmenttreenode](./DataStructures/SegmentTree/SegmentTreeNode.php)
3333
* [Singlylinkedlist](./DataStructures/SinglyLinkedList.php)
34+
* Splaytree
35+
* [Splaytree](./DataStructures/SplayTree/SplayTree.php)
36+
* [Splaytreenode](./DataStructures/SplayTree/SplayTreeNode.php)
37+
* [Splaytreerotations](./DataStructures/SplayTree/SplayTreeRotations.php)
3438
* [Stack](./DataStructures/Stack.php)
3539
* Trie
3640
* [Trie](./DataStructures/Trie/Trie.php)
@@ -132,6 +136,7 @@
132136
* [Queuetest](./tests/DataStructures/QueueTest.php)
133137
* [Segmenttreetest](./tests/DataStructures/SegmentTreeTest.php)
134138
* [Singlylinkedlisttest](./tests/DataStructures/SinglyLinkedListTest.php)
139+
* [Splaytreetest](./tests/DataStructures/SplayTreeTest.php)
135140
* [Stacktest](./tests/DataStructures/StackTest.php)
136141
* [Trietest](./tests/DataStructures/TrieTest.php)
137142
* Graphs

0 commit comments

Comments
 (0)