PHP Classes

Enhanced QuickSort: Sort array of comparable values with quicksort

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 550 All time: 5,511 This week: 560Up
Version License PHP version Categories
enhancedquicksort 1.0BSD License4.3.11Algorithms, Data types
Description 

Author

This class implements an enhanced version of the quicksort algorithm to sort an array of comparable values.

It uses a cutoff point to switch to an insertion sort when the array size has become too small for quicksort to be useful. It is recommended for use with arrays of 10,000 items or less.

It can sort comparable values of type integer, double or strings which convert to integers.

Picture of Allan Bogh
Name: Allan Bogh <contact>
Classes: 5 packages by
Country: United States United States
Age: 41
All time rank: 64384 in United States United States
Week rank: 180 Up22 in United States United States Up

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file qstest.php Example Example/test file for the Quick Sort class
Plain text file quicksort.php Class QuickSort class file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:550
This week:0
All time:5,511
This week:560Up