Skip to main content

A simple quicksort implementation

Project description

The QuickSortPy library (by RapidDragon2612) is a working python implementation of the quick sort algorithm. Quick sort is widely considered to be the fastest and most efficient sorting algorithm.

To install QuickSortPy, run (in Command Prompt/Terminal):

pip install quicksortpy

To use QuickSortPy, run (in your python file):

import quicksortpy

And then use the quicksortpy.sort() function, with the argument of the array which is to be sorted:

quicksortpy.sort(example_array)

This will sort example_array. If you want to sort it in a new array, type:

quicksort.sort(example_array, True)

This will create a new array called sorted_arr .

You can also, for educational purposes, use the visualize() or visualise() function:

quicksort.visualize(example_array)

This will display all the steps that the quick sort algorithm took to sort the array.

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

quicksortpy-1.0.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

quicksortpy-1.0.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file quicksortpy-1.0.0.tar.gz.

File metadata

  • Download URL: quicksortpy-1.0.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for quicksortpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 27aa4e07aa6935aa89bb25a63c6274e640e7f482ce863884cbba2ba07113ebd0
MD5 a798ab396743e9fbb0adc1a9436484eb
BLAKE2b-256 2e8b64d899170ee50e3351a208855dff5b98e74bdc3ebd21c1012c08589cdc5d

See more details on using hashes here.

File details

Details for the file quicksortpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: quicksortpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for quicksortpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ad7b35aaea1e02dcf97e81b85a567b04ccb258fa0981ff54773a490092a8964
MD5 0e07255620f47c45680e55eb4cddfc38
BLAKE2b-256 28371799ff52663536c45e6520011e92bfafa63c488a22e8671cd68a2eabe54f

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