A minimal Python algorithms library with clean implementations of search algorithms and sort algorithms
Project description
algokit-py
A lightweight Python algorithms library with clean, well-documented, and tested implementations. Designed for learning, interviews, and real-world algorithm reasoning.
Features
Search Algorithms
- Linear Search
- Binary Search (iterative, invariant-based)
Sorting Algorithms
- Insertion Sort (in-place, stable)
- Merge Sort (divide-and-conquer, O(n log n))
Usage
Install
pip install algokit-py
Search
from algokit_py.search import linear_search, binary_search
print(linear_search([1, 2, 3], 2))
print(binary_search([1, 2, 3], 2))
Sorting
from algokit_py.sort import insertion_sort, merge_sort
data = [3, 1, 2]
insertion_sort(data)
print(data) # [1, 2, 3]
print(merge_sort([3, 1, 2])) # [1, 2, 3]
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
algokit_py-0.4.0.tar.gz
(5.1 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 algokit_py-0.4.0.tar.gz.
File metadata
- Download URL: algokit_py-0.4.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18e49969ede7e25e93825b406ce30cee74f536ea5a6935a4084085a14fb890b9
|
|
| MD5 |
d899706db76935d6f49157b734622ead
|
|
| BLAKE2b-256 |
f34215004ede78664871835bc95e79583a9ee980a7e4f247dabd4ab9ac0e944e
|
File details
Details for the file algokit_py-0.4.0-py3-none-any.whl.
File metadata
- Download URL: algokit_py-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94a13a6933437cf390ca8849813314abb97ac8d20e54cf260ea66fb18d0af368
|
|
| MD5 |
703e2a3894fad92621dc45639022edeb
|
|
| BLAKE2b-256 |
a70b8c0195b7a513673638cdbd10a421de4f4e4ea385875ef94c14c58f7dcee2
|