A comprehensive library for sorting algorithms, BFS, and DFS
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-0.1.0.tar.gz
(4.3 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-0.1.0.tar.gz.
File metadata
- Download URL: blackjack_algos-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34aeadfceab57d39308117a4a8bf3f0f319e60efb31e82e08219de39fc2d08c9
|
|
| MD5 |
b74b206656f755138b79acb9d66712a8
|
|
| BLAKE2b-256 |
5e997a5d6c87a53a3b9a762cd2619fb045531d8ad6d65c0b5b8e4280a7865355
|
File details
Details for the file blackjack_algos-0.1.0-py3-none-any.whl.
File metadata
- Download URL: blackjack_algos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 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 |
ce2907c4bde03dd1c3b93f1577bdd59490c0ec03435611d10437b9b91a93f48a
|
|
| MD5 |
88504e6851a1c58e4e233305bf5541b9
|
|
| BLAKE2b-256 |
b4612d5350ef3f7c509d9b755f91e366b33298cd6cdab296d6d42418ed4b9b6a
|