Lab 2
Lab 2
1 Searching
• Sequential Search
• Binary Search
Advance:
• Sequential Search (with sentinel)
• Interpolation Search
2 Sorting
• Selection Sort
• Insertion Sort
• Bubble Sort
• Interchange Sort
Advance:
• Insertion Sort (with sentinel)
• Shaker Sort
3 Practical problem
Given the file "Players.txt" containing information about football players. Each player’s information is described on one
line, with the format:
• Sort the players ascendingly by their year of birth and last name.
Page 1 / 1