dictQ


NamedictQ JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://pypi.org/project/dictQ/
SummarySophisticate Searching Algorithms
upload_time2024-11-19 21:38:47
maintainerNone
docs_urlNone
authorkhiat Mohammed Abderrezzak
requires_python>=3.6
licenseMIT
keywords sorting algorithms
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dictQ


[![PyPI version](https://badge.fury.io/py/dictQ.svg)](https://badge.fury.io/py/dictQ)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/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:


```bash
pip install dictQ
```


## Usage 


### For linear search algorithm 


```python
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 


```python
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


```python
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


```python
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](https://opensource.org/licenses/MIT) for more details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://pypi.org/project/dictQ/",
    "name": "dictQ",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "sorting algorithms",
    "author": "khiat Mohammed Abderrezzak",
    "author_email": "khiat.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/34/37/4084750c8f5d396b8ee7d13a02d57088216efee5c545a6683ddd7b4dffd3/dictQ-1.0.0.tar.gz",
    "platform": null,
    "description": "# dictQ\n\n\n[![PyPI version](https://badge.fury.io/py/dictQ.svg)](https://badge.fury.io/py/dictQ)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\nThis 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.\n\n\n## Installation\n\n\nYou can install `dictQ` via pip:\n\n\n```bash\npip install dictQ\n```\n\n\n## Usage \n\n\n### For linear search algorithm \n\n\n```python\nfrom dictQ import searchVisualizer\n\n\nx = [26, 45, 84, 84, 88, 94, 14, 92, 6, 81]\ny = searchVisualizer(x, item=92)\ny.linear_search()\n```\n\n\n#### Output\n\n\nhttps://drive.google.com/file/d/1U_1TuI3hqXPwG5kOIXD_TbXuRc3vrPhm/view?usp=sharing\n\n\n### For binary search algorithm \n\n\n```python\nfrom dictQ import searchVisualizer\n\n\nx = [6, 14, 26, 45, 81, 84, 84, 88, 92, 94]\ny = searchVisualizer(x, item=92)\ny.binary_search()\n```\n\n\n#### Output\n\n\nhttps://drive.google.com/file/d/1GBij5QkGtfHRGDMKpp5vlN9z3l_qrEFz/view?usp=sharing\n\n\n#### You can reduce the searching speed\n\n\n```python\nfrom dictQ import searchVisualizer\n\n\nx = [6, 14, 26, 45, 81, 84, 84, 88, 92, 94]\ny = searchVisualizer(x, item=92, speed=7)\n```\n\n\n#### You can control the searching steps by pressing Enter\n\n\n```python\nfrom dictQ import searchVisualizer\n\n\nx = [6, 14, 26, 45, 81, 84, 84, 88, 92, 94]\ny = searchVisualizer(x, item=92, control=True)\n```\n\n\n## License\n\n\nThis project is licensed under the MIT LICENSE - see the [LICENSE](https://opensource.org/licenses/MIT) for more details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Sophisticate Searching Algorithms",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://pypi.org/project/dictQ/"
    },
    "split_keywords": [
        "sorting",
        "algorithms"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4504483c94d2e57ea7cc5eb9500a695aa5754d274d9e3095bf194c4a298b95c3",
                "md5": "9684911ab4eed7830cbdc09a5e2863ee",
                "sha256": "343ab76b66aa40ad7c8867f850e409592e352174c15ec091cc5e57005efac52e"
            },
            "downloads": -1,
            "filename": "dictQ-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9684911ab4eed7830cbdc09a5e2863ee",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6398,
            "upload_time": "2024-11-19T21:38:46",
            "upload_time_iso_8601": "2024-11-19T21:38:46.020430Z",
            "url": "https://files.pythonhosted.org/packages/45/04/483c94d2e57ea7cc5eb9500a695aa5754d274d9e3095bf194c4a298b95c3/dictQ-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "34374084750c8f5d396b8ee7d13a02d57088216efee5c545a6683ddd7b4dffd3",
                "md5": "f62595e75294056f4d928b8d7f336b07",
                "sha256": "68f7db9d98f878e7931681022bf351c078f469c4ebf6268e40460acb5052da4a"
            },
            "downloads": -1,
            "filename": "dictQ-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f62595e75294056f4d928b8d7f336b07",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5633,
            "upload_time": "2024-11-19T21:38:47",
            "upload_time_iso_8601": "2024-11-19T21:38:47.331153Z",
            "url": "https://files.pythonhosted.org/packages/34/37/4084750c8f5d396b8ee7d13a02d57088216efee5c545a6683ddd7b4dffd3/dictQ-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-19 21:38:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "dictq"
}
        
Elapsed time: 0.39608s