COS 212 Stuff

Use at own risk

Thursday, 25 April 2013

Quick Sort


Divides array into two sets. Select an element to be the pivot.
Middle element, or random (for faster results)
Pivot splits array into two.






https://www.cse.ust.hk/~dekai/271/notes/L01a/quickSort.pdf
Posted by InfraMouse at 15:44 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Merge Sort

So basically, you split the list into the smallest parts possible, and then start comparing two-by-two, and reassembling.



wikipedia link
Posted by InfraMouse at 15:43 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Comb Sort




All about comb sort here!
Posted by InfraMouse at 15:43 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Home
Subscribe to: Posts (Atom)

Search This Blog

Labels

  • topological ordering (2)
  • topological sorting (2)
  • topsort (2)

About Me

My photo
InfraMouse
View my complete profile

Topics

  • ▼  2013 (3)
    • ▼  April (3)
      • Comb Sort
      • Merge Sort
      • Quick Sort
  • ►  2014 (19)
    • ►  April (7)
    • ►  May (5)
    • ►  June (6)
    • ►  August (1)
  • ►  2015 (4)
    • ►  March (1)
    • ►  April (1)
    • ►  May (2)
  • ►  2016 (1)
    • ►  March (1)
  • ►  2024 (1)
    • ►  May (1)
Simple theme. Powered by Blogger.