QuickSortPy
QuickSortPy (by RapidDragon2612) is a Python implementation of the Quick Sort algorithm.
Quick Sort is widely regarded as one of the fastest and most efficient general-purpose sorting algorithms.
Installation
Install QuickSortPy using pip:
pip install quicksortpy
Usage
Import the library in your Python file:
import quicksortpy
Sort an array (in-place)
quicksortpy.sort(example_array)
This will sort example_array in place.
Sort into a new array
sorted_arr = quicksortpy.sort(example_array, True)
This returns a new sorted array without modifying the original.
Visualization
For educational purposes, you can visualize how the Quick Sort algorithm works step by step:
quicksortpy.visualize(example_array)
This will display each step the algorithm takes while sorting the array.
Notes
- The
sort()function accepts:array: The list to sortnew_arr(optional): Set toTrueto return a new sorted list instead of modifying the original
Release files for quicksortpy 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quicksortpy-1.1.1.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quicksortpy-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.4 kB
Release files / quicksortpy-1.1.1.tar.gz
| Download URL | quicksortpy-1.1.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5052cd5caa17754004d5b0db2292ca9e345306eb500a5cec9a9160439080a4df
|
|
BLAKE2b-256 checksum How to use checksums |
d7d3764b671bb2394625b16885d348dcfea37bafd303a71fe9d361245944b500
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / quicksortpy-1.1.1-py3-none-any.whl
| Download URL | quicksortpy-1.1.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a388710aed5919974fc6b2cbeb686fd32f30941f942529e9ca60a49454f424d
|
|
BLAKE2b-256 checksum How to use checksums |
ac186d4a32b6fcf64dbcd10cd36ce706bc4ddfd3154dcba97731d30ea0c36bf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|