- Type
- Quiz
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 1.8 MB
- 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, 3 of 95. Download the file for all 95 pages.
SOLVED BY SANAULLAH KHAN
- The sieve technique works where we have to find ---------- item(s) from a large input. Single page 34
- 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
- In Selection problem, the Sieve technique works in ------------ Phases page 34
- Algorithm is a sequence of computational steps that --------- the input into output. Transform page 7
- 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
- If pj dominates pi and pi dominates ph then pj also dominates ph. It means dominance relation is Transitive
- To find maximal points in brute-force algorithm, each point of space is compared against --------- of the
space. All other points page 13
- In the following code the statement “cout<<j;” executes ------------ times
For(j=1;j<=5;j=j+2) Cout<<j; 3 times (conceptual)
- For average-case time analysis of Quick sort algorithm, Pivot selection is on average basis from --------------.
All possible random values page 50
- In the statement, “output P[i].x,P[i].y”, the number of times elements of P are accessed is -------------. 2
- Identify the TRUE statement. The Knapsack problem belongs to the domain of optimization problems
- Matrix multiplication is a(n) ------------ operation. Associative page 85
- ------------ provides us more accurate result when input values are not closer to each other. Median page
34(conceptual)
- In merge sort algorithm, we split the array around the ------------ index q. Mid page 28
- In the analysis of Selection algorithm, we get the convergent ------------ series. Geometric page 37
- In Selection problem, the Sieve technique -----------. Eliminate undesired data items each time page 35
- 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
- In Sorting the key value or attribute ---------- form an ordered domain. Not always page 39
- In Heap Sort algorithm, the total running time for Heapify procedure is -------------. Theta (log n) page 43
- Pseudo code of algorithm are to be read by --------------. People page 12
- In Dynamic Programming based solution of Knapsack Problem, if we decide to take an object ‘i’, then we
gain -------------. Vi(value of object i)
- The worst-case running time of Quick sort algorithm --------------. Is quadratic (google)
- 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
- In Selection problem, the rank of an element will be its ------------ position if we sort the input data. Final
- Which one is not passed as parameter in Quick sort algorithm? Array (containing input elements) (cs301)
- While Sorting, the ordered domain means for any two input elements x and y --------- satisfies only. All of
the above page 39
- Which of the following is calculated with Big O notation? Upper bounds page 25
- For solving Selection problem, we introduced Sieve technique due to --------- Eliminating Rank of an
element page 35
- The worst-case running time of merge sort is ----------- in order to sort an array of n elements. O(n log n)
- Quick sort is a recursive algorithm. True page 49
- While analyzing Selection algorithm, we make a number of passes, in fact it could be as many as -----------.
Related CS502 files
All CS502 files →- CS502 Highlighted Handouts by Mickey Ch Highlighted PDF 1.7 MB
- CS502 Midterm Solved File 4 by Team Hadi Midterm PDF 8.5 MB
- CS502 Solved Quiz 2 by Scorpio Quiz PDF 307 KB
- CS502 Quiz 1 by MCS Quiz PDF 504 KB
- CS502 Quiz 3 Set 2 by VU Topper RM Quiz PDF 1.4 MB
- CS502 Quiz 1 Lectures 1-10 by Junaid Quiz PDF 1.8 MB
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.