Archive

- Posts Tagged ‘sort’

Data Structure in PHP: Quicksort

Quicksort is one of the best method in sorting algorithm. It has best and average case performance as O(n Log n). It means for 100 element, sorting can take around 660 iterations whereas in bubble sort it will take around 10000 iteration. In the example below, which has eight elements,… (Continue)