A collection of algorithms and data structures in Python.
Project description
AlgoInfinite
A comprehensive collection of algorithms and data structures implemented in Python. AlgoInfinite provides efficient implementations of common algorithms and data structures for educational purposes and practical applications.
Features
- Data Structures: LinkedList, Stack, Queue, Binary Trees, and more
- Sorting Algorithms: QuickSort, MergeSort, BubbleSort, etc.
- Search Algorithms: Binary Search, Linear Search, etc.
- Graph Algorithms: Shortest Path, Minimum Spanning Tree, etc.
- Mathematical Algorithms: Prime Number generation, GCD calculation, etc.
Installation
Install the latest version of AlgoInfinite from PyPI:
pip install algoinfinite
Usage
Basic Import
# Import specific components
from algoinfinite.data_structures import LinkedList, Stack
from algoinfinite.algorithms.sorting import quicksort, mergesort
# Or import everything (not recommended for production code)
from algoinfinite import *
Data Structure Exaxmple
from algoinfinite.data_structures import LinkedList
# Create a linked list
my_list = LinkedList()
my_list.append(1)
my_list.append(2)
my_list.append(3)
# Display the list
print(my_list.display()) # Output: [1, 2, 3]
Algorithms Example
from algoinfinite.algorithms.sorting import quicksort
# Sort an array
unsorted_array = [3, 1, 4, 1, 5, 9, 2, 6, 5]
sorted_array = quicksort(unsorted_array)
print(sorted_array) # Output: [1, 1, 2, 3, 4, 5, 5, 6, 9]
Command Line Interface (CLI)
AlgoInfinite also provides a command line interface for quick access to algorithms and data structures. You can run the following command to see the available options:
# Display a greeting message
madan-hello
# More tools will be added soon
Documentation
Comprehensive documentation will be available soon at https://algoinfinite.readthedocs.io
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Madan Mohan Behera - GitHub - Email
Made with ❤️ by Madan Mohan Behera
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 algoinfinite-0.2.1.tar.gz.
File metadata
- Download URL: algoinfinite-0.2.1.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c421d4a17a7eee283377ad828d1a6dc78f677f7ed614377239e301b1118314f7
|
|
| MD5 |
13868f299da31303129cba2ed28b11f5
|
|
| BLAKE2b-256 |
54c42597132a6e49b3877a3585b7de92081a70f5444ab8ee7b84f71de9325dbc
|
File details
Details for the file algoinfinite-0.2.1-py3-none-any.whl.
File metadata
- Download URL: algoinfinite-0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f0c4a461ea4a10a6fabdc8116cd7d5596eebadd3a96257d657f7fa06e8a96b4
|
|
| MD5 |
6cf6965c2df74c7e19b26264e4b6eff9
|
|
| BLAKE2b-256 |
1f2ea929cbe480fce92e5b1a09b8ff9a20c0296ba421b8511376cb1f0b671d02
|