- Type
- Midterm past paper
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 52 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2 of 2. Download the file for all 2 pages.
CS502-ALGORITHMS
MID –FALL2007
Q1. Total time for heapify is:
Ο (log2 n) Ο (n log n) Ο (n2 log n) Ο (log n)
Q2. Solve the recurrence using iteration method and also find time complexity (Θ notation)
T (n) = C + O (1) + T (n-1) T (1) =1 and C is a constant.
Q3. Suggest the criteria for measuring algorithms. Also discuss the issues need to be discussed in the algorithm design.
Q4. If an algorithm has a complexity of log 2 n + nlog 2 n + n. we could say that it has complexity
O(n) O( n log2 n) O(3) O( log2 ( log2 n )) O ( log2 n)
Q5. Let the set P = {(1, 13), (2, 9), (3, 15), (4, 12), (5, 14), (6, 6), (7, 3), (8, 10), (9, 2), (10, 8), (11, 9), (13, 6), (15, 3), (18, 5)}. You are required to give the final state of stack after the execution of sweep line algorithm for 2d-maxima. No intermediate steps or graphics to be shown.
Q6. Suppose we have hardware capable of executing 106 instructions per second. How long would it take to execute an algorithm whose complexity function is T (n) = 2n2 on an input of size n = 108?
Q7. In RAM model instructions are executed
One after another Parallel Concurrent Random
Q8. In selection algorithm, because we eliminate a constant fraction of the array with each phase, we get the
Convergent geometric series Divergent geometric series None of these
Q9. Due to left-complete nature of binary tree, heaps can be stored in
Link list Structure Array None of above
Related CS502 files
All CS502 files →- CS502 Midterm Subjective by Waqar Siddhu Midterm PDF 4 MB
- CS502 Midterm MCQs by Waqar Siddhu Midterm PDF 10.5 MB
- CS502 Midterm Current Paper 2023 Midterm PDF 331 KB
- CS502 Midterm MCQs by Talha Sajid Midterm PDF 1.4 MB
- CS502 Final Term Highlighted Handouts Set 2 by Masters Highlighted PDF 1.6 MB
- CS502 MCQs Beta Version by Ishfaq MCQs PDF 699 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.