A strictly typed, 100% test-covered data structures and algorithms library.
Project description
pure-python-ds 🚀
A high-performance, strictly-typed, and memory-optimized Data Structures and Algorithms library built in Pure Python.
🏗️ Architecture Overview
This library was designed with a focus on Systems Architecture. By utilizing Python's __slots__, every node in this library is memory-optimized to reduce overhead, making it suitable for educational deep-dives and performance-sensitive prototyping.
[Image of a software architecture diagram showing layers of data structures and algorithms]
🛠️ Key Features
1. Linear Data Structures
- Linked Lists: Singly and Doubly Linked Lists with $O(1)$ head/tail operations.
- Stacks & Queues: Built on top of optimized linked nodes for strict LIFO/FIFO behavior.
2. Hierarchical & Network Structures
- Binary Search Trees (BST): Standard ordered trees with recursive and iterative implementations.
- AVL Trees: Self-balancing trees using rotation logic to guarantee $O(\log n)$ performance.
- Graphs: Adjacency-list based implementation supporting both Directed and Undirected networks.
3. Advanced Algorithms
- Pathfinding: Dijkstra's Algorithm for finding shortest paths in weighted graphs.
- Sorting: $O(n \log n)$ Merge Sort implementation.
- Searching: $O(\log n)$ Binary Search.
- Dynamic Programming: Memoized Fibonacci and sub-problem optimization.
[Image of a perfectly balanced Binary Search Tree demonstrating O(log n) structure]
🚀 Installation
Since the package is in "Editable" mode, you can install it locally to use across your entire system:
git clone [https://github.com/ParjadM/pure-python-ds.git](https://github.com/ParjadM/pure-python-ds.git)
cd pure-python-ds
pip install -e .
🚀 Technical Milestone: 83% Unit Test Coverage Reached Core Engineering Accomplishments:
Robustness Verification: Engineered a comprehensive regression suite achieving 83% total coverage across 15+ complex data structures.
Algorithm Integration: Successfully implemented and verified Kruskal’s MST (using custom DSU), Bellman-Ford, and Dijkstra’s algorithms.
Recursive Tree Logic: Developed and tested memory-safe recursive deletion with rebalancing for AVL and Binary Search Trees.
Performance Optimization: Leveraged slots and Python Generators to ensure O(1) space complexity for tree traversals and minimal memory footprint.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pure_python_ds-1.0.1.tar.gz.
File metadata
- Download URL: pure_python_ds-1.0.1.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dc961e0d02681c7692a516a3091ab59627e0549d269b7b384f50313b727aa88
|
|
| MD5 |
36734053fbca5cc20774bcc1a236f38d
|
|
| BLAKE2b-256 |
ffa50d53c809fe96ffbc40f2db3f65b13a663392a2af55d7812d9c0e5d0df84c
|
File details
Details for the file pure_python_ds-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pure_python_ds-1.0.1-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43a73b2f78a7149afef363978622f3f89261e2b81e6cb75945ff8d77b95c7361
|
|
| MD5 |
a8cd99bd91d5b72ca9ef9cb060e0bfa5
|
|
| BLAKE2b-256 |
3c69630659510a81b32a8ac5e3d27dfd52dd4ecba0b686bdef95847939260c11
|