Skip to main content

Deletion Sort Algorithm package

Project description

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:

pip install deletionSort

Then you can run it in your python script like this:

array = [1,3,5,6,77,55,32,6,4,7,89,45,24,34,6]
khalas(array)

Usage

# 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
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)!

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

DeletionSort-0.0.18.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DeletionSort-0.0.18-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file DeletionSort-0.0.18.tar.gz.

File metadata

  • Download URL: DeletionSort-0.0.18.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for DeletionSort-0.0.18.tar.gz
Algorithm Hash digest
SHA256 31dac696af591c5ca9704b708b06295841c49d4e45b342ea9217a31cae9d0ddb
MD5 e0b261e27250421532d7e69d89c0c363
BLAKE2b-256 bc74470cedae259324093834a893fdd76ab6f8528d1fa10227925c5174efe785

See more details on using hashes here.

File details

Details for the file DeletionSort-0.0.18-py3-none-any.whl.

File metadata

  • Download URL: DeletionSort-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for DeletionSort-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 2a1f7aa7daa79c027e31f4a914916fd3c745817a8c6196f28a384419d709ec7c
MD5 9693d4d5ba1a7004fe52f36e9b19d691
BLAKE2b-256 a5bf80ebc03709063ed677b48c4379999067dc0d3207c169b22bae030b2b7350

See more details on using hashes here.

Supported by

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