





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Design/Analysis Algorithms; Subject: COMP Computer Science; University: University of Memphis; Term: Spring 2006;
Typology: Study notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!






z Insertion sort z Quick sort z Merge sort z Heap sort {
{
z Correctness z Analysis (running time) z Design (divide and conquer) z Different algorithms for a same problem, optimality
Lower bounds for comparison sorting {
{
z
(n) to examine all the input z All sorts seen so far are
(nlgn) z To prove:
(nlgn) is a lower bound {
z Abstraction of any comparison sort { Abstract away everything else: control and datamovement { Count only comparisons z Represents comparisons made by { A particular sorting algorithm { On input of a given size
Optimality { Which is asymptotically optimal? z Insertion sort z Quick sort z Merge sort z Heap sort