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

Uploaded Python 3

File details

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

File metadata

  • Download URL: search-algos-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 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.3.tar.gz
Algorithm Hash digest
SHA256 a3e1eb72ead8fb4bd216e701bb6119bccb01cb5b4e043557adf924fc9b07d565
MD5 4c016093e2e566bf076f6bb0235046bc
BLAKE2b-256 aea87bc85b1346bce9e59263fa6293363812799f8eb672e2d477470e02be2aed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: search_algos-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f663f6862115996dd38cf084a90119750165415351ca850871baf4bb02c3ceab
MD5 fce4e8648c4f9f74ea3d0d59c1ec2d2b
BLAKE2b-256 ec15cf6dc65bebaa771d536a6a60a8bc5e1a0684ca4c9120d2391820ae9984e2

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