This repository contains examples of various data structures and algorithms implemented in Python. The code is organized into different modules based on the data structures and algorithms covered.
The myLib.build.lib.graphalgo package contains implementations of graph algorithms.
BFS.py: Contains theBFSclass that performs breadth-first search traversal on a graph.DFS.py: Contains theDFSclass that performs depth-first search traversal on a graph.Graph.py: Contains theGraphclass that represents a graph data structure.
The myLib.build.lib.Datastructures.heap package contains implementations of the heap data structure.
Heap.py: Contains theHeapclass, which serves as the base class for both theMinH(minimum heap) andMaxH(maximum heap) classes.MinH.py: Contains theMinHclass, which represents a minimum heap.MaxH.py: Contains theMaxHclass, which represents a maximum heap.
The myLib.build.lib.Datastructures.linear package contains implementations of linked list data structures.
SLL.py: Contains theSLLclass, which represents a singly linked list.CSLL.py: Contains theCSLLclass, which represents a circular singly linked list.DLL.py: Contains theDLLclass, which represents a doubly linked list.CDLL.py: Contains theCDLLclass, which represents a circular doubly linked list.QueueLL.py: Contains theQueueLLclass, which represents a queue implemented using a singly linked list.StackLL.py: Contains theStackLLclass, which represents a stack implemented using a singly linked list.
The myLib.build.lib.Datastructures.trees package contains implementations of tree data structures.
BST.py: Contains theBSTclass, which represents a binary search tree.AVL.py: Contains theAVLclass, which represents an AVL (Adelson-Velskii and Landis) tree.
The myLib.build.lib.Datastructures.nodes package contains classes representing nodes used in various data structures.
SNode.py: Contains theSNodeclass, which represents a node in a singly linked list or circular singly linked list.DNode.py: Contains theDNodeclass, which represents a node in a doubly linked list or circular doubly linked list.TNode.py: Contains theTNodeclass, which represents a node in a binary search tree or AVL tree.
The myLib.build.lib.Datastructures.test package contains various test for the implementations of all the various classes.
-Each test file is labeled with the corresponding name of each class.
- Oluwafisayo Adabs
- Okibe Abang
- April 2023