Skip to content
VUBuddy

CS502 Midterm Solved MCQs with References

Fundamentals of Algorithms PDF 268 KBUpdated 23 Oct 2026
Midterm past paper CS502 Midterm Solved MCQs with References PDF 268 KB
vubuddy.com
Type
Midterm past paper
Course
CS502 Fundamentals of Algorithms
Size
PDF 268 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 268 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 28. Download the file for all 28 pages.

1. (Handsouts Page 35 Line 4)

precisely

2.

keep elements in increasing or decreasing order (Handsouts Page 39 Line 6)

3.

4. In Sieve Technique we don’t know which item is of interest

True

False

5.

T(n) T(n / 2)

log n

n / 2 + n / 4

6. Divide-and-conquer as breaking the problem into a small number of pivot Sieve

smaller sub problems (handouts page 27)

Selection

7.

heap order (handouts page 40)

8. Slow sorting algorithms run in, T(n^2) T(n) T( log n)

T(n log n) (handsouts page 40)

9. One of the clever aspects of heaps is that they can be stored in arrays without using any

pointers

constants variables functions

  1. Sorting is one of the few problems where provable bonds exits on how fast we can sort, upper

lower

2nd

  1. For the sieve technique we solve the problem,

precisely

Q12. Sieve Technique can be applied to selection problem?

true

false

  1. How much time merge sort takes for an array of numbers? (n^2) T(n) T( log n)

T(n log n)

(handouts page 30)

  1. For the Sieve Technique we take time

T(nk)

(handouts page 34)

T(n / 3) n^2 n/3

  1. Heaps can be stored in arrays without using any pointers; this is due to the nature of the binary tree,

left-complete

Repeat

right-complete tree nodes tree leaves

Q16. How many elements do we eliminate in each time for the Analysis of Selection algorithm?

n / 2 elements

(n / 2) + n elements

n / 4 elements 2 n elements

  1. We do sorting to,

keep elements in increasing or decreasing order ( page 39 Repeat)

Q18. In which order we can sort?

increasing order or decreasing order

Repeat

both at the same time

  1. A heap is a left-complete binary tree that conforms to the

heap order (page 40)

  1. In the analysis of Selection algorithm, we make a number of passes, in fact it could

T(n) T(n / 2)

log n

(page 37)

n / 2 + n / 4

  1. A heap is a left-complete binary tree that conforms to the

heap order (page 40)

  1. How much time merge sort takes for an array of numbers? T(n^2) T(n) T( log n)
  2. n the analysis of Selection algorithm, we eliminate a constant fraction of the array with each phase; we get the convergent linear

geometric

(page 37)

exponent

All CS502 files →
CS502 Fundamentals of Algorithms All CS502 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.