User:Emry/Quicksort My Quicksort Notes

From NexusCrossing

Jump to: navigation, search
  1. Check for the lenghth of the list. If the Length is 1 or 0, return the list unmodified.
  2. Choose a cell at random. That cell becomes the pivot.
  3. Use the pivot as the center point to split the list into two lists.
  4. Run Quick Sort on both lists
Personal tools