





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!






The Data Structures and Algorithms portion of the Masters Comprehensive Exam (MCE) represents approximately 1/3 of the exam. The DS&A portion emphasizes basic knowledge and reasoning over in-depth problem analysis, since it has over 30 questions, and the entire comprehensive exam lasts for three hours.
Since the MCE lasts for three hours, this leaves about one hour to complete the DS&A portion, which in turn leaves about two minutes to answer each problem. There is NO penalty for guessing, so make sure to answer each one. It is therefore recommended to take this practice test in a hour sitting, and without referring to the answers until the exam has been completed.
Exam grades are determined by the CECS Graduate Committee. Please see the CECS Graduate Advisor for more information.
1
d) none of the above
a) f (n) = o(g(n)). b) f (n) = Θ(g(n)). c) f (n) = ω(g(n)). d) both a) and b) are always true.
a) Θ(1/n) b) Θ(1) c) Θ(log n) d) Θ(n log n)
a) n’s left and right subtrees have equal height. b) n’s left and right subtrees have equal size. c) n’s left and right subtrees have heights that differ by at most one. d) n’s left and right subtrees have sizes that differ by at most one.
b) O(log n). c) O(√n). d) O(n).
a) sorting millions of products by their 15-digit serial numbers b) sorting millions of employees by their ages c) sorting each day of the calendar year by the high temperature (in Celsius rounded to the nearest integer degree) recorded in the city of Long Beach on that given day d) sorting each vehicle registered in the state of California by the year it was manufactured
a) randomly selected. b) set to the median of the first, middle, and last array element. c) set to the median of the array. d) none of the above
a) remove the edge of greatest cost from the graph so long as its removal does not disconnect the graph. b) add the edge of least cost to the forest so long as its addition does not create a cycle. c) add the vertex having least connection cost to the current tree. d) remove the vertex having greatest connection cost from the tree.
a) select the two probabilities of least value for merging. b) select the two probabilities of greatest value for merging. c) add the codeword of shortest length to the code being constructed. d) remove the codeword of greatest length from the code being constructed.
a) the Set Partition decision problem. b) the 3SAT decision problem. c) the Hamilton Cycle decision problem. d) the Vertex Cover decision problem.
Exam Solutions for Data Structures and Algorithms