COP 4531: Lecture 15
Learning objectives
After this class, you should be able to:
- Given an array
Aand an indexi, show the steps executed by the deterministicSELECTalgorithm to find theith smallest element ofA.- Analyze the running time of the
SELECTalgorithm.- Given problems similar to selection, develop efficient algorithms and derive their time complexities.
Reading assignment
- CLR: Section 9.3.
- CLR: Chapter 15, page 332.
Exercises and review questions
- Questions on current lecture's material
- Write C/C++ code implementing the
SELECTalgorithm.- Exercise 9.3-1.
- Exercise 9.3-3.
- Questions on next lecture's material
- (Post your solution on the discussion board) Give an example of a
3 x 3matrix and a3 x 2matrix, and give their product.