Skip to main content

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.3.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

algokit_py-0.3.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file algokit_py-0.3.0.tar.gz.

File metadata

  • Download URL: algokit_py-0.3.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for algokit_py-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c219dd786826de960b7165005b1621284800ba1ff93ce06afc6a3b3d97d4bbe4
MD5 47df60b8aec6d7beb843dc26549b7604
BLAKE2b-256 8183fb9747c8195df78164bbe40c44161b096184ce1f63f0be66ef45befba749

See more details on using hashes here.

File details

Details for the file algokit_py-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: algokit_py-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for algokit_py-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 452a22ee2f0ca2f2fdf8512bee16b171ebeb2c9fc2e5fe70c393d47f65da937f
MD5 77cef2c21287b4ebdcdc50dff7fb6c88
BLAKE2b-256 bfff85ab29f67ba143fcaf644225743b47748de84ae8a4c3e07890987ba387e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page