Sorting (iterative+recursive), graph algorithms (BFS/DFS/Dijkstra/Bellman-Ford/Floyd-Warshall), Queue & LinkedList with interactive CLI
Project description
blackjack
A comprehensive Python library for sorting and graph algorithms.
Features
- Sorting Algorithms: Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, Quick Sort, Heap Sort.
- Graph Algorithms: Breadth-First Search (BFS), Depth-First Search (DFS).
Installation
pip install blackjack
Usage
As a Library
from blackjack import quick_sort, bfs
# Sort a list
arr = [64, 34, 25, 12, 22, 11, 90]
sorted_arr = quick_sort(arr)
print(sorted_arr)
# BFS on a graph
graph = {
'A': ['B', 'C'],
'B': ['D'],
'C': ['E'],
'D': [],
'E': []
}
print(bfs(graph, 'A'))
As a CLI tool
blackjack quick_sort
blackjack bfs
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blackjack_algos-1.1.0.tar.gz
(10.2 kB
view details)
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 blackjack_algos-1.1.0.tar.gz.
File metadata
- Download URL: blackjack_algos-1.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e99b3b869f4513d38bd98afcf5ec55efc8af7f25c5e3cfd1e0d266dabaf242e
|
|
| MD5 |
041fd3dfebd4e98788596897a11c5bb8
|
|
| BLAKE2b-256 |
fd4067f1368753e6f6025a78e2020b309d006c92f26b42a120a36141cad629b9
|
File details
Details for the file blackjack_algos-1.1.0-py3-none-any.whl.
File metadata
- Download URL: blackjack_algos-1.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
932ed2a637d8c2b0601370ce3957d4e5774b7d7c5282c48b8592db271cbcea4d
|
|
| MD5 |
ca9abfa2093c9bafd68981bd2290d05b
|
|
| BLAKE2b-256 |
7c7334d93085fed1d45cbe0098762e5e8a3e5ba24f32e086acafc2ebbc3f31ac
|