nickalgo
Install with python -m pip install nickalgo.
import nickalgo as np
dp = np.quicksort
print(dp) # formatted source code string
sort = np.get_function("quicksort")
print(sort([5, 2, 8, 1]))
print(np.list_algorithms())
Algorithm source strings include sorting, matrix multiplication, selection/randomized algorithms, binary trees and BSTs, graph traversal/MSTs, pattern matching, dynamic programming, Huffman coding, activity selection, set cover, subset sum, and vertex cover.
Notes: radixsort accepts non-negative integers. Strassen multiplication expects equal
square matrices whose dimension is a power of two. set_cover and vertex_cover are
greedy approximations, not guaranteed optimal. montecarloproblem estimates pi from
sample counts. Some names are normalized to Python identifiers such as kth_largest.
Metadata
Release files for nickalgo 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nickalgo-0.2.0.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nickalgo-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.1 kB
Release files / nickalgo-0.2.0.tar.gz
| Download URL | nickalgo-0.2.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78e7aeedb2d3b3ca8d5d29715b9700251fad045e0e5871e5f2e7fb2193dbdf58
|
|
BLAKE2b-256 checksum How to use checksums |
cb78a0a77fccd7c41071029e3f8a123dfb08d5da0f76bfcc961a205b858fee3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Release files / nickalgo-0.2.0-py3-none-any.whl
| Download URL | nickalgo-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
081977f0affb745478882f279993665b79100654823fb9602fdbf52978b5e52c
|
|
BLAKE2b-256 checksum How to use checksums |
3b5eb47b3adb3f6177cdb707f7e6a98b4e7a90df3fe4df30801983f9202d86d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|