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.13.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

DeletionSort-0.0.13-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

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