Skip to main content

A Python package for sorting and searching algorithms.

Project description

AlgoToolkit

A Python package for sorting and searching algorithms.

📦 Features

  • Sorting Algorithms:
    • Bubble Sort
    • Merge Sort
    • Selection Sort
    • Quick Sort
    • Insertion Sort
  • Searching Algorithms:
    • Binary Search
    • Linear Search

📚 Installation

You can install the package directly from PyPI:

pip install algotoolkit

🚀 Usage

from AlgoToolkit import algo

# Test the bubble sort function
arr = [5, 2, 9, 1, 5, 6]
sorted_arr = algo.bubble_sort(arr)
print(f"Sorted array using Bubble Sort: {sorted_arr}")

# Test the binary search function
sorted_arr = [1, 2, 5, 5, 6, 9]
target = 5
index = algo.binary_search(sorted_arr, target)
print(f"Index of {target} using Binary Search: {index}")

Expected Output:

  • For Bubble Sort:
Sorted array using Bubble Sort: [1, 2, 5, 5, 6, 9]
  • For Binary Search:
Index of 5 using Binary Search: 2

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

algotoolkit-0.1.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

algotoolkit-0.1.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file algotoolkit-0.1.4.tar.gz.

File metadata

  • Download URL: algotoolkit-0.1.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for algotoolkit-0.1.4.tar.gz
Algorithm Hash digest
SHA256 36b221badd6bfebfc85630790045d260a65b9784e4f67a12355030d941074263
MD5 31dc20dfb44c0bf56dc5ba54a8bfe6e0
BLAKE2b-256 4dc4d505aba5e37419fe03648b9e25593ffc41d46e7006554c770298879a630d

See more details on using hashes here.

File details

Details for the file algotoolkit-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: algotoolkit-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for algotoolkit-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5cc2c18f664e50d23678a7fa222c0ed682fc483eb3bc9ae7331e8ffd9afc8e17
MD5 10a8adec255cc907a9a868032c44e256
BLAKE2b-256 8243283bbbde00623dc2b6b7e20121865a88b86ffb571aaf9c8bf92c0c86659c

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