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.3.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.3.0.tar.gz.
File metadata
- Download URL: blackjack_algos-0.3.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 |
f2f5e74bf69acdcce4bc0217e2d0eb3e770dafec385dac4892c661fadd00ab80
|
|
| MD5 |
535593344b290733d801d4cc1e494afc
|
|
| BLAKE2b-256 |
9c96a36c1ec23add118ae5e55536188f590f4eef86c38deb28fd8289af6a91f6
|
File details
Details for the file blackjack_algos-0.3.0-py3-none-any.whl.
File metadata
- Download URL: blackjack_algos-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.8 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 |
8554aa6e8dd906486d24aba7d21ab5ccc04ef95aff34ad4c017064bc57f040f8
|
|
| MD5 |
b29e31043c8d877a2fefc8665c8f915d
|
|
| BLAKE2b-256 |
a6563cefc92241826a6a9b596fcc63ce759501627d772a9ea13b6bd60827d059
|