steap_by_steap
before i create it i was searching if "steap_by_steap" was available, and after publishing it I realized that step_by_step did too.
"steap_by_steap" is a comprehensive Python library designed to facilitate learning and implementation of fundamental algorithms and data structures. From efficient searching and sorting techniques to advanced data structures like trees and graphs, this library aims to empower developers with robust tools for algorithmic problem-solving. Whether you're a student delving into algorithms or a seasoned developer seeking reliable implementations, "steap_by_steap" provides a rich collection of algorithms, backed by clear documentation and easy integration.
steap mean:"A state when a line of code is excuting", it have the a in the middle beacause the word Algorithms start with A
Features
List of key features:
- Binary Search
- Binary Search Tree
- B-tree
- Compression
- Convex Hull
- Directed Graph (Digraph)
- Graph
- Heap
- Interval Search Tree
- Kd-tree
- Line Segment
- Non-finite Automata
- Priority Queue
- Queue
- Regular Expressions (Regex)
- R-way Trie
- Shuffle
- Simplex Method
- Sorting Algorithms
- Stack
- Substring Search
- Suffix Array
- Ternary Search Trie
- Union-Find
- Weighted Graph
Installation
pip install steap_by_steap
Code Documentation
https://jero98772.github.io/steap_by_steap/steap_by_steap/index.html
Purpose
The purpose of "steap_by_steap" is to provide a comprehensive library of algorithms, enabling users to learn and implement various data structures and algorithms.
Contribution
Contributions are welcome. If you wish to contribute, please follow the guidelines outlined in CONTRIBUTING.md.
References
- Courses:
- Algorithms I & II from Princeton University
License
GPLv3 License
Examples of use
-
Binary Search Example:
import steap_by_steap array = [1, 3, 5, 7, 9, 11, 13, 15] target = 7 index = steap_by_steap.Binary_search(array, target) if index is not None: print(f"Target {target} found at index {index}") else: print(f"Target {target} not found in the array")
-
Binary Search Tree Example:
import steap_by_steap bst = steap_by_steap.BinarySearchTree() bst.insert(5) bst.insert(3) bst.insert(7) print(bst.search(3)) # Should print True print(bst.search(6)) # Should print False
-
Sorting Example (Selection Sort):
import steap_by_steap arr = [64, 25, 12, 22, 11] sorted_arr = steap_by_steap.Selection(arr) print(sorted_arr) # Output should be [11, 12, 22, 25, 64]
-
Graph Example (Depth-First Search):
import steap_by_steap graph = steap_by_steap.Graph() graph.add_edge(0, 1) graph.add_edge(0, 2) graph.add_edge(1, 2) graph.add_edge(2, 0) graph.add_edge(2, 3) graph.add_edge(3, 3) print("Following is DFS from vertex 2:") graph.dfs(2)
-
Priority Queue Example:
import steap_by_steap pq = steap_by_steap.PriorityQueue() pq.push(4) pq.push(5) pq.push(3) pq.push(10) print(pq.pop()) # Output: 3 print(pq.pop()) # Output: 4 print(pq.pop()) # Output: 5 print(pq.is_empty()) # Output: False
Metadata
Release files for steap-by-steap 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| steap_by_steap-0.2.1.tar.gz | 4.3 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| steap_by_steap-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 5.9 MB
Release files / steap_by_steap-0.2.1.tar.gz
| Download URL | steap_by_steap-0.2.1.tar.gz |
|---|---|
| Size | 4.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e3d07fcafc45bd8840316a691ca71c818a21dd392976e7ccd963851d230f02b
|
|
BLAKE2b-256 checksum How to use checksums |
79d4f12d2fc8555ba4cdf1998f3a6d09cdf761ef1ca59427a42c205176d99258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.7.4
|
Release files / steap_by_steap-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | steap_by_steap-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
5d6226bac384164b520c0d0ab3005aa06f6806bc6ff00155160c9900b3ee6644
|
|
BLAKE2b-256 checksum How to use checksums |
5ebb4033e547d96a61a1d51beb298ef38ca217164a73f32b78a9eee56b0fe881
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.7.4
|
Security for steap-by-steap 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.