YOUR SUBJECT CS502 Fundamentals of AlgorithmsChange subject ↗
PRACTICE AT YOUR OWN PACE

CS502 practice questions

Think through the options before revealing the answer. Use the term filter to focus your revision.

260 questions
CS502 · Final-term only#220

The O-notation is used to state only the asymptotic ________bounds.

  1. A
    ?Two
  2. B
    ?Lower
  3. C
    ?Upper (Page 25)
  4. D
    ?Both lower & upper
Show correct answer

Correct answer: C. ?Upper (Page 25)

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#219

Question No: 47 ( Marks: 1 ) - Please choose one
Efficient algorithm requires less computational…….

  1. A
    ?Memory
  2. B
    ?Running Time
  3. C
    ?Memory and Running Time
  4. D
    ?Energy
Show correct answer

Correct answer: C. ?Memory and Running Time

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#218

In analysis, the Lower Bound means the function grows asymptotically at least as fast as its largest term.

  1. A
    ?True
  2. B
    ?False
Show correct answer

Correct answer: A. ?True

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#217

In addition to passing in the array itself to Merge Sort algorithm, we will pass in _________other arguments
which are indices.

  1. A
    ?Two
  2. B
    ?Three
  3. C
    ?Four
  4. D
    ?Five
Show correct answer

Correct answer: A. ?Two

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#216

We cannot make any significant improvement in the running time which is better than that of brute-force
algorithm.

  1. A
    ?True
  2. B
    ?False
Show correct answer

Correct answer: B. ?False

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#215

Algorithm is concerned with.......issues.

  1. A
    ?Macro
  2. B
    ?Micro
  3. C
    ?Both Macro & Micro (Page 8)

  4. D
    ?Normal
Show correct answer

Correct answer: C. ?Both Macro & Micro (Page 8)

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#214

In analysis of f (n) =n (n/5) +n-10 log n, f (n) is asymptotically equivalent to ________.

  1. A
    ?n
  2. B
    ?2n
  3. C
    ?n+1
  4. D
    ?n2
Show correct answer

Correct answer: D. ?n2

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#213

Asymptotic growth rate of the function is taken over_________ case running time.

  1. A
    ?Best
  2. B
    ?Average
  3. C
    ?Worst
  4. D
    ?Normal
Show correct answer

Correct answer: C. ?Worst

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#212

After sorting in merge sort algorithm, merging process is invoked.

  1. A
    ? True
  2. B
    ?False
Show correct answer

Correct answer: A. ? True

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#211

The function f(n)= n(logn+1)/2 is asymptotically equivalent to n log n. Here Upper Bound means the function
f(n) grows asymptotically ____________ faster than n log n.

  1. A
    ? More
  2. B
    ?Quiet
  3. C
    ?Not
  4. D
    ?At least
Show correct answer

Correct answer: C. ?Not

Check community answers against your course notes.Question permalink ↗