

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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