Skip to main content

A collection of algorithms and data structures in Python.

Project description

AlgoInfinite

PyPI version Python Versions License: MIT

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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

algoinfinite-0.2.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

algoinfinite-0.2.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file algoinfinite-0.2.0.tar.gz.

File metadata

  • Download URL: algoinfinite-0.2.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for algoinfinite-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d0ee2f735bd315a910a67514236fce188d992bf52ac0d217fc7cef0f6c365fbd
MD5 d992f933eca8e60cec10ecf8dffbb3e6
BLAKE2b-256 db8af3e9809e3ba823f4eed96c29657b652d027cb89ce9fc69a1d2fd10904776

See more details on using hashes here.

File details

Details for the file algoinfinite-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: algoinfinite-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for algoinfinite-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74f946f59870468422e136ed52147103e3959a39a599f8806099c857af6b99a2
MD5 a6abb09c2f3b5c1940460491abe28376
BLAKE2b-256 2dd9f63f423bfe8c44b095954bf9617b0c8d288841abff7157db901359f69b61

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