Some Quick Sort Facts

Some facts for quick sort

  • Uses the divide-and-conquer paradigm
  • Best and Average case - O(nlogn)
  • Worst Case - O(n^2)
  • Key part is the Partitioning which comprise with comparison and swapping 
  • For Partitioning Hoare's algorithm works best. 
  • In place sorting
  • Works well in virtual memory env as well.

Comments

Popular posts from this blog

Scala Learning: Finding Square Root

Deleting a hidden user in MAC

Problem Solving: Implement an algorithm to delete a node in the middle of a single linked list, given only access to that node