Skip to main content

Sophisticate Searching Algorithms

Project description

dictQ

PyPI version License: MIT

This library was created to simplify searching algorithms by visually displaying them in the form of a horizontal table, using colors to illustrate the searching steps, giving the ability to control the searching speed and manually switching between items, all this is especially for beginners in searching algorithms.

Installation

You can install dictQ via pip:

pip install dictQ

Usage

For linear search algorithm

from dictQ import searchVisualizer


x = [26, 45, 84, 84, 88, 94, 14, 92, 6, 81]
y = searchVisualizer(x, item=92)
y.linear_search()

Output

https://drive.google.com/file/d/1U_1TuI3hqXPwG5kOIXD_TbXuRc3vrPhm/view?usp=sharing

For binary search algorithm

from dictQ import searchVisualizer


x = [6, 14, 26, 45, 81, 84, 84, 88, 92, 94]
y = searchVisualizer(x, item=92)
y.binary_search()

Output

https://drive.google.com/file/d/1GBij5QkGtfHRGDMKpp5vlN9z3l_qrEFz/view?usp=sharing

You can reduce the searching speed

from dictQ import searchVisualizer


x = [6, 14, 26, 45, 81, 84, 84, 88, 92, 94]
y = searchVisualizer(x, item=92, speed=7)

You can control the searching steps by pressing Enter

from dictQ import searchVisualizer


x = [6, 14, 26, 45, 81, 84, 84, 88, 92, 94]
y = searchVisualizer(x, item=92, control=True)

License

This project is licensed under the MIT LICENSE - see the LICENSE for more details.

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

dictQ-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

dictQ-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file dictQ-1.0.0.tar.gz.

File metadata

  • Download URL: dictQ-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for dictQ-1.0.0.tar.gz
Algorithm Hash digest
SHA256 68f7db9d98f878e7931681022bf351c078f469c4ebf6268e40460acb5052da4a
MD5 f62595e75294056f4d928b8d7f336b07
BLAKE2b-256 34374084750c8f5d396b8ee7d13a02d57088216efee5c545a6683ddd7b4dffd3

See more details on using hashes here.

File details

Details for the file dictQ-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dictQ-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for dictQ-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 343ab76b66aa40ad7c8867f850e409592e352174c15ec091cc5e57005efac52e
MD5 9684911ab4eed7830cbdc09a5e2863ee
BLAKE2b-256 4504483c94d2e57ea7cc5eb9500a695aa5754d274d9e3095bf194c4a298b95c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page