

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


COT 5405 Summer 09 Homework 1
(a) n^1.^001 + n log n = θ(n^1.^001 ) (b) n^3 /log n = ω(n^2 )
(a) T (n) = 2T (n/2) + n^3 (b) T (n) = T (
n) + 1 (c) T (n) = 2T (n/3) + T (n/4) + n
(a) T (n) = 4T (n/4) + 5n (log n)^2 + n
n (b) T (n) = 4T (n/2) + n^2 log n
see if it fits EXACTLY (not too tight or too loose). You can assume that all the persons (and their coats) are of distinct size. There is no way to directly sort the persons (or the coats) based on their size i.e., you cannot compare any person or coats directly. A person after trying on a coat can tell if it is 1. an exact fit 2. too tight or 3. too loose. However, if two coats are too tight (or too loose), he can’t tell which one is tighter (or looser). Help the valet to tag the coats correctly, while minimizing the total number of person-coat trys.