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.1.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.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quicksortpy-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e20c0330036e8b595465497027fc31959994335d3460636c92a5696b10b9a840
MD5 70fe353633e5a51a0d6ec3913cd5dbed
BLAKE2b-256 f8cf2d3b681c9487b4592b27ba65957f68634841e5b9040b84c85c0aefb5d075

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quicksortpy-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf107f682e92f67469b9483936cb2277123af077c597930b05ec793f71de3374
MD5 2aaae17871a6a32c0e3d9386a897f47f
BLAKE2b-256 930d4d5648fcacadd7346de5a8010b5b88d6074191b33de5cc05b97594c88b5b

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