// archives

quicksort php algorithm sorting

This tag is associated with 1 posts

PHP Quicksort Demonstration

While looking for a hip-pocket sorting, algorithm, I found some sample code here and thought it was perfect the way it was. function quicksort($seq) { if(!count($seq)) return $seq; $pivot= $seq[0]; $low = $high = array(); $length = count($seq); for($i=1; $i < $length; $i++) { if($seq[$i]

 

July 2010
S M T W T F S
« May    
 123
45678910
11121314151617
18192021222324
25262728293031