DeletionSort


NameDeletionSort JSON
Version 0.0.18 PyPI version JSON
download
home_pageNone
SummaryDeletion Sort Algorithm package
upload_time2024-03-22 08:57:53
maintainerNone
docs_urlNone
authorHashScripts (Hashim Almuqbel)
requires_pythonNone
licenseNone
keywords python sorting algorithm deletion sort sorting algorithms o(1)
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# deletionSort

> "Why sort when you can just delete?" - A wise person, probably

Deletion sort is a revolutionary algorithm that solves the age-old problem of sorting with a simple, yet brutal approach: just delete everything and call it a day! It's the programming equivalent of "if it doesn't work, just turn it off and back on again."

## Features

- Runs in a blistering O(1) time complexity! (Because it doesn't actually sort anything)
- Guaranteed to produce an empty (and therefore sorted) array or table every time!
- Saves you the hassle of writing complex sorting logic.
- Frees up disk space by deleting your precious data.
- Provides a great excuse for losing all your work: "Oops, I ran the deletionsort algorithm!"

## Installation

You can run this in python by running the following script in the terminal:
```shell
pip install deletionSort
```
Then you can run it in your python script like this:
```python
array = [1,3,5,6,77,55,32,6,4,7,89,45,24,34,6]
khalas(array)
```

## Usage

```python
# Python
original_data = [3, 1, 4, 1, 5, 9]
print("Original data:", original_data)

deletion_sort(original_data)
print("Sorted data:", original_data)  # Output: Sorted data: []
```
```sql
-- SQL
DROP TABLE employees;  -- Goodbye, employee records!
```
## Warning

Use at your own risk! While the deletionsort algorithm is incredibly efficient, it may lead to undesirable side effects, such as:

    > Loss of important data
    > Getting fired from your job
    > Angry customers or coworkers
    > Existential dread



We recommend using this algorithm only for educational purposes or when you really, really don't like your data.
Contributing

If you have any ideas for improving the deletionsort algorithm, such as adding more delete options or implementing a "shred" feature, feel free to open a pull request! We're always looking for ways to make data deletion even more efficient and destructive.

Happy sorting (or should we say, deleting)!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "DeletionSort",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, sorting, algorithm, deletion sort, sorting algorithms, O(1)",
    "author": "HashScripts (Hashim Almuqbel)",
    "author_email": "<hashimownemail@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/bc/74/470cedae259324093834a893fdd76ab6f8528d1fa10227925c5174efe785/DeletionSort-0.0.18.tar.gz",
    "platform": null,
    "description": "\r\n# deletionSort\r\n\r\n> \"Why sort when you can just delete?\" - A wise person, probably\r\n\r\nDeletion sort is a revolutionary algorithm that solves the age-old problem of sorting with a simple, yet brutal approach: just delete everything and call it a day! It's the programming equivalent of \"if it doesn't work, just turn it off and back on again.\"\r\n\r\n## Features\r\n\r\n- Runs in a blistering O(1) time complexity! (Because it doesn't actually sort anything)\r\n- Guaranteed to produce an empty (and therefore sorted) array or table every time!\r\n- Saves you the hassle of writing complex sorting logic.\r\n- Frees up disk space by deleting your precious data.\r\n- Provides a great excuse for losing all your work: \"Oops, I ran the deletionsort algorithm!\"\r\n\r\n## Installation\r\n\r\nYou can run this in python by running the following script in the terminal:\r\n```shell\r\npip install deletionSort\r\n```\r\nThen you can run it in your python script like this:\r\n```python\r\narray = [1,3,5,6,77,55,32,6,4,7,89,45,24,34,6]\r\nkhalas(array)\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\n# Python\r\noriginal_data = [3, 1, 4, 1, 5, 9]\r\nprint(\"Original data:\", original_data)\r\n\r\ndeletion_sort(original_data)\r\nprint(\"Sorted data:\", original_data)  # Output: Sorted data: []\r\n```\r\n```sql\r\n-- SQL\r\nDROP TABLE employees;  -- Goodbye, employee records!\r\n```\r\n## Warning\r\n\r\nUse at your own risk! While the deletionsort algorithm is incredibly efficient, it may lead to undesirable side effects, such as:\r\n\r\n    > Loss of important data\r\n    > Getting fired from your job\r\n    > Angry customers or coworkers\r\n    > Existential dread\r\n\r\n\r\n\r\nWe recommend using this algorithm only for educational purposes or when you really, really don't like your data.\r\nContributing\r\n\r\nIf you have any ideas for improving the deletionsort algorithm, such as adding more delete options or implementing a \"shred\" feature, feel free to open a pull request! We're always looking for ways to make data deletion even more efficient and destructive.\r\n\r\nHappy sorting (or should we say, deleting)!\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Deletion Sort Algorithm package",
    "version": "0.0.18",
    "project_urls": null,
    "split_keywords": [
        "python",
        " sorting",
        " algorithm",
        " deletion sort",
        " sorting algorithms",
        " o(1)"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a5bf80ebc03709063ed677b48c4379999067dc0d3207c169b22bae030b2b7350",
                "md5": "9693d4d5ba1a7004fe52f36e9b19d691",
                "sha256": "2a1f7aa7daa79c027e31f4a914916fd3c745817a8c6196f28a384419d709ec7c"
            },
            "downloads": -1,
            "filename": "DeletionSort-0.0.18-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9693d4d5ba1a7004fe52f36e9b19d691",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2736,
            "upload_time": "2024-03-22T08:57:51",
            "upload_time_iso_8601": "2024-03-22T08:57:51.393840Z",
            "url": "https://files.pythonhosted.org/packages/a5/bf/80ebc03709063ed677b48c4379999067dc0d3207c169b22bae030b2b7350/DeletionSort-0.0.18-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bc74470cedae259324093834a893fdd76ab6f8528d1fa10227925c5174efe785",
                "md5": "e0b261e27250421532d7e69d89c0c363",
                "sha256": "31dac696af591c5ca9704b708b06295841c49d4e45b342ea9217a31cae9d0ddb"
            },
            "downloads": -1,
            "filename": "DeletionSort-0.0.18.tar.gz",
            "has_sig": false,
            "md5_digest": "e0b261e27250421532d7e69d89c0c363",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2789,
            "upload_time": "2024-03-22T08:57:53",
            "upload_time_iso_8601": "2024-03-22T08:57:53.163877Z",
            "url": "https://files.pythonhosted.org/packages/bc/74/470cedae259324093834a893fdd76ab6f8528d1fa10227925c5174efe785/DeletionSort-0.0.18.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-22 08:57:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "deletionsort"
}
        
Elapsed time: 4.01193s