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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3e1eb72ead8fb4bd216e701bb6119bccb01cb5b4e043557adf924fc9b07d565
|
|
| MD5 |
4c016093e2e566bf076f6bb0235046bc
|
|
| BLAKE2b-256 |
aea87bc85b1346bce9e59263fa6293363812799f8eb672e2d477470e02be2aed
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f663f6862115996dd38cf084a90119750165415351ca850871baf4bb02c3ceab
|
|
| MD5 |
fce4e8648c4f9f74ea3d0d59c1ec2d2b
|
|
| BLAKE2b-256 |
ec15cf6dc65bebaa771d536a6a60a8bc5e1a0684ca4c9120d2391820ae9984e2
|