

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; Professor: Huang; Class: DATA STRUCTR&ALGORITHMS; Subject: Computer Science & Engineering; University: University of South Carolina - Columbia; Term: Spring 2009;
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


University of South Carolina
02/27/2009 2
High 4, Average 3.
Please download it from class website Have your answers neatly typed Explain your answer clearly and adequately by showing the steps
02/27/2009 3
A size reduction pattern varies from one iteration of an algorithm to another
Example: Euclid’s algorithm for computing the greatest common divisor
The arguments on the right-hand side are always smaller than those on the left-hand side But they are not smaller neither by a constant nor by a constant factor
02/27/2009 4
02/27/2009 5
02/27/2009 6
02/27/2009 7
Time efficiency
arrays)
Space efficiency: in-place
Stability: yes Best elementary sorting algorithm overall
Binary insertion sort