This summary of the material to study for the test on September 26
is now finalized.
-
Review all the written homework assignments:
-
Assignment 1
-
Assignment 2
-
Some practice questions on recurrences.
-
Assignment 3
-
Problem 5.5 on page 181 of your textbook.
-
Problem 5.7 on page 182 of your textbook.
-
Problem 5.14 on page 182 of your textbook.
-
Problem 5.15 on page 182 of your textbook.
-
Problem 5.18 on page 183 of your textbook.
-
Represent the weighted directed graph G on page 199 of your textbook
by a 5x5 matrix. Compute the matrix G* using (min,+) matrix
multiplication. (You will need to do matrix multiplication only twice.)
-
-
What characteristics should a good hash function have? Answer.
-
If the table size is the same as the number of data items, 100, roughly
how many out of the 100 table entries would be expacted to have no item?
(a) 5
(b) 13
(c) 25
(d) 37
(e) 56
Answer.
-
Give a detailed description of the steps of heapsort, starting with the array
"facetiously" and anding with a sorted array. Answer.