Skip to main content

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.

Metadata

Release files for dictQ 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dictQ 1.0.0
File Size Uploaded Provenance Actions
dictQ-1.0.0.tar.gz 5.6 kB Without provenance Details for dictQ-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dictQ 1.0.0
File Interpreter ABI Platform Actions
dictQ-1.0.0-py3-none-any.whl Python 3 none any Details for dictQ-1.0.0-py3-none-any.whl

Total release size: 12.0 kB

Release files / dictQ-1.0.0.tar.gz

Download URL dictQ-1.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
68f7db9d98f878e7931681022bf351c078f469c4ebf6268e40460acb5052da4a
BLAKE2b-256 checksum
How to use checksums
34374084750c8f5d396b8ee7d13a02d57088216efee5c545a6683ddd7b4dffd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Release files / dictQ-1.0.0-py3-none-any.whl

Download URL dictQ-1.0.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
343ab76b66aa40ad7c8867f850e409592e352174c15ec091cc5e57005efac52e
BLAKE2b-256 checksum
How to use checksums
4504483c94d2e57ea7cc5eb9500a695aa5754d274d9e3095bf194c4a298b95c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.2

Security for dictQ 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page