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.4.tar.gz (3.5 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.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: search-algos-0.0.4.tar.gz
  • Upload date:
  • Size: 3.5 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.4.tar.gz
Algorithm Hash digest
SHA256 918cebe142b64542673c65230513636e73a3f8e61688815db991023b43829217
MD5 8212ab81906f51466ce140f0b6a50b95
BLAKE2b-256 4f3554a5a736f79da659612afb48ec0cdc8e5bb00d5a8a3337070c595469b7f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: search_algos-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07421440f5d2fd892cc1053bc2bd304a69095d728d298c7f67f7f4dc972c0ef4
MD5 b78f0bc57a8da5c9cdf2b1142505cf2c
BLAKE2b-256 43d9bda44e549e98146fbcaaf9407ba7e27f0364a218c1f8012b05727ef5fded

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