The document describes two approaches to alphabetically sorting a list of 14 student names with minimum effort. Approach 1 involves comparing each name one by one, requiring 91 comparisons. Approach 2 first sorts names into groups by initial letter, then compares within each group and between groups, requiring only 18 comparisons, which is the recommended approach.
2. Scenario
Suppose a teacher wants to arrange the test papers of 14
students alphabetically. The names of students are
The teacher wants the work to be done with minimum
effort. Suggest a way that causes minimum comparisons to
arrange the test papers in alphabetic order.
Ajay Beena Anita Gauri Cherry Babita Daisy
Aastha Elina Isha Heena Diana Farhan Gagan
23. ? Number of comparison made are:
13+3+1+1+1=18
Small number
Aastha
Ajay
Anita
Babita
Beena
Cherry
Daisy
Diana
Elina
Farhan
Gagan
Gauri
Heena
Isha
A---I B
D G
A