Skip to content
VUBuddy

CS502 Quiz by S Khan Academy

Fundamentals of Algorithms PDF 1.8 MBUpdated 23 Oct 2026
Quiz CS502 Quiz by S Khan Academy PDF 1.8 MB
vubuddy.com
Type
Quiz
Course
CS502 Fundamentals of Algorithms
Size
PDF 1.8 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.8 MB

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 95. Download the file for all 95 pages.

SOLVED BY SANAULLAH KHAN

  1. The sieve technique works where we have to find ---------- item(s) from a large input. Single page 34

CS502 QUIZ FILE · Subject Enrolment · 1. Online classes are available (Mathematics) · 2. Solved graded activities · Assignment’s · Quizzes · GDB’s · 3. Solved quiz files · 4. Past papers · 5. Any info about virtual university of · Pakistan · Final project (MTH620) · Email: · Mr.khan.1431 · S KHAN ACADEMY

  1. The only way to convert an empty string into a string of j characters is by doing j insertions, represented as

E(0 , j)=j page 78

  1. In Selection problem, the Sieve technique works in ------------ Phases page 34
  2. Algorithm is a sequence of computational steps that --------- the input into output. Transform page 7
  3. In max heap (for Heap Sort algorithm), when every time maximum element is removed from top we replace it with ---------- in the leaf tree. Last page 41
  4. If pj dominates pi and pi dominates ph then pj also dominates ph. It means dominance relation is Transitive
  5. To find maximal points in brute-force algorithm, each point of space is compared against --------- of the

space. All other points page 13

  1. In the following code the statement “cout<<j;” executes ------------ times

For(j=1;j<=5;j=j+2) Cout<<j; 3 times (conceptual)

  1. For average-case time analysis of Quick sort algorithm, Pivot selection is on average basis from --------------.

All possible random values page 50

  1. In the statement, “output P[i].x,P[i].y”, the number of times elements of P are accessed is -------------. 2
  2. Identify the TRUE statement. The Knapsack problem belongs to the domain of optimization problems
  3. Matrix multiplication is a(n) ------------ operation. Associative page 85
  4. ------------ provides us more accurate result when input values are not closer to each other. Median page

34(conceptual)

  1. In merge sort algorithm, we split the array around the ------------ index q. Mid page 28
  2. In the analysis of Selection algorithm, we get the convergent ------------ series. Geometric page 37
  3. In Selection problem, the Sieve technique -----------. Eliminate undesired data items each time page 35
  4. If matrix A of dimension p x q is multiplied with matrix B of dimension q x r, then each entry in resultant matrix takes ---------- time. O(q) page 84
  5. In Sorting the key value or attribute ---------- form an ordered domain. Not always page 39
  6. In Heap Sort algorithm, the total running time for Heapify procedure is -------------. Theta (log n) page 43
  7. Pseudo code of algorithm are to be read by --------------. People page 12
  8. In Dynamic Programming based solution of Knapsack Problem, if we decide to take an object ‘i’, then we

gain -------------. Vi(value of object i)

  1. The worst-case running time of Quick sort algorithm --------------. Is quadratic (google)
  2. The only way to convert a string of i characters into the empty string is with i deletions, represented as

• E(i , 0)=i page 78

  1. In Selection problem, the rank of an element will be its ------------ position if we sort the input data. Final
  2. Which one is not passed as parameter in Quick sort algorithm? Array (containing input elements) (cs301)
  3. While Sorting, the ordered domain means for any two input elements x and y --------- satisfies only. All of

the above page 39

  1. Which of the following is calculated with Big O notation? Upper bounds page 25
  2. For solving Selection problem, we introduced Sieve technique due to --------- Eliminating Rank of an

element page 35

  1. The worst-case running time of merge sort is ----------- in order to sort an array of n elements. O(n log n)
  2. Quick sort is a recursive algorithm. True page 49
  3. While analyzing Selection algorithm, we make a number of passes, in fact it could be as many as -----------.
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.