This preview shows page 1. Sign up to view the full content.
Unformatted text preview: same size, so we cant tell whether one bolt is smaller than the other, or if one nut is bigger than the other. If we try to match a nut with a bolt, it would be either too big or too small for the bolt or it would be just right for the bolt. Find the correct matchings in worst case expected O ( n log n ) time. [Hint:If a nut and bolt dont match how can you partition the nuts using the bolt and the bolts using the nut? ] 1...
View Full
Document
 Fall '08
 Chekuri,C
 Algorithms, Sort

Click to edit the document details