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.3.tar.gz (3.9 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.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: algotoolkit-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 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.3.tar.gz
Algorithm Hash digest
SHA256 095cde4f75c0789909b2729bb85021841f0c1b2515334b94950d4fdd56a33f4e
MD5 85fe82a0f617eda093f9ce3668216abb
BLAKE2b-256 af5311dca75e48b199b90ec6d8c63effb63c8f81bfada27efc333f99f7a7ad66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: algotoolkit-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45ea7ea4750a5ca5a5c781d615ae102a86845ef84596dabf96dc392f3b4f9cf1
MD5 4538aefdbd845223b19722e7edd68900
BLAKE2b-256 aa06a79b3f19dbbcba38aae22cbd3dfc113574fdf8ee7d427dacd0039274487e

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