COP 4531: Lecture 15
Learning objectives
After this class, you should be able to:
- Given an array
A
and an indexi
, show the steps executed by the deterministicSELECT
algorithm to find thei
th smallest element ofA
.- Analyze the running time of the
SELECT
algorithm.- 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
SELECT
algorithm.- 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 3
matrix and a3 x 2
matrix, and give their product.