Skip to main content

A collection of searching algorithms for lists and dictionaries

Project description

search-algos

search-algos is a Python package that includes various searching algorithms for lists and python dictionaries. The package is designed to be easy to use and can be integrated into any Python project that requires optimized searching functionality.

Searching Algos:

  • Linear Search
  • Binary Search
  • Exponential Search
  • Fibonacci Search
  • Interpolation Search
  • Jump Search
  • Ternary Search

Installation

You can install search-algos using pip:

pip install search-algos

Usage

To use the searching algorithms in search-algos, you first need to import the package:

from search_algos import linear_search, binary_search

lst = [1, 2, 3, 4, 5]
item = 3

print(linear_search(lst, item))  # Output: 2
print(binary_search(lst, item))  # Output: 2

Contributing

If you would like to contribute to search-algos, you can fork the repository and submit a pull request. We welcome contributions of all kinds, including bug reports, feature requests, and code contributions.

License

search-algos is licensed under the MIT License. See the LICENSE file for more information.

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

search-algos-0.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

search_algos-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file search-algos-0.0.2.tar.gz.

File metadata

  • Download URL: search-algos-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for search-algos-0.0.2.tar.gz
Algorithm Hash digest
SHA256 878c90b5ef04530bc2420bc98bafc43898b62f6a2fcb89ad0283143902c244b1
MD5 9b9c624fde7cfe85ff29045de631a6f6
BLAKE2b-256 22871680a81b8e36f7edcedd1fe9cae5b32f4c15147d9b03244fa02f9ade2bad

See more details on using hashes here.

File details

Details for the file search_algos-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: search_algos-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for search_algos-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d464e93ef01ca0ea385af021b604bc1d6680f7257768322449dcf72a98dc724
MD5 afc52fce5bb89c5a996d6fe925f5c2a3
BLAKE2b-256 d1b520164b106b826c22c187bdbb635c18dfc5c3c21025c7bd46b45e4f205e2f

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