COMP 3804 Midterm: mid-18

542 views6 pages

Document Summary

Instructions: the exam consists of four questions, each worth 25 marks, you can do the rough work on the reverse/opposite side of the sheets. Ensure that the answers are provided within the allotted space (i. e. within the box): please don"t reprove/redesign what has been already been done in the assignment/textbook/class. Just cite and explain how you are using that. For example, you can state that you are computing the median of n numbers in o(n) time by the median- nding algorithm: if you need to, you can use a calculator, it is always helpful to construct small examples. Try a few sample inputs and try to visualize what should be the output. Question 1: there are two algorithms for a problem. I is expressed as t (n) = 4t (n/2) + n and the running time of algorithm ii is expressed as t (n) = 2t (n/2) + n2.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions