- Type
- Quiz
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 1.7 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 2, 3, 4 of 92. Download the file for all 92 pages.
In chain matrix multiplication, the order of the matrices__________. A. is equal
B. is reverse
C. can not be changed D. can be changed
In Knapsack Problem, each item must be entirely accepted or rejected, is called _______ problem. A. Linear B. Fractional
C. 0-1
D. Optimal
In Dynamic Programming based solution of Knapsack Problem, if we decide to take an object 'i', then we gain _______. A. W(Total Weight of Knapsack) B. V (Total Value of all items)
C. vi (Value of object i) Page 93
D. None of the given option
In chain matrix multiplication, table is filled ______ to find the multiplication of matrix. A. row wise B. column wise C. diagonally
D. bottom-to-up Page 86
In chain matrix multiplication, if there are n items, there are ______ ways in which outer most pair of parentheses can placed. A. n^2 B. 2n C. n+1
D. n-1 Page 85
Catalan numbers are related the number of different ______ on 'n' nodes. A. Arrays B. linked lists
C. binary trees Page 85
D. functions
What is the value of k in the given equation?
m[1, 5] = m[1, 3] + m[4, 5] + p0 · p3 · p5
A. 3
B. 1 C. 4 D. 5
The running time of brute-force algorithm to solve Knapsack problem is
A. O(n!)
B. O(2^n)
C. O(n) D. O(n3)
What is the value of k in the given equation?
m[2, 5] = m[2, 3] + m[4, 5] + p1 · p3 · p5 A. 3 B. 5
C. 2
D. 4
We can't utilize a divide-and-conquer strategy for Chain Matrix Multiplication because ____________. A. Size of data is not given B. We can easily perform it in linear time C. We use divide and conquer for sorting only
D. We do not know the optimum k
Suppose we have 5 matrices A, B, C, D and E. What is the correct expansion of m[3,4] in chain matrix multiplication?
Correct answer: m[3, 4] = m[3, 3] + m[4, 4] + p2 · p3 · p4
Time complexity of activity selection algorithm is _________. A. O(logN2)
B. O(NlogN)
C. O(logN) D. O(N)
If we have 6 metrices in chain matrix multiplication problem then the number of table entries must be?
Correct answer: 36 Google
Counting Money problem: A. Can be solved by simple recursive algorithm
B. Can be optimally solved by greedy algorithm
C. can not be optimally solved by greedy algorithm D. Can not be solved by brute force algorithm
Time complexity of Dynamic Programming based algorithm for computing the minimum cost of Chain MatrixMultiplication is
A. Log n B. n C. n^2 (n square)
Related CS502 files
All CS502 files →- CS502 Highlighted Handouts by VU Sparky Highlighted PDF 2.6 MB
- CS502 Midterm Solved Subjective Mega File by Saifi Midterm PDF 499 KB
- CS502 Quiz 4 Set 2 by VU Topper RM Quiz PDF 1.6 MB
- CS502 Quiz 1 Set 2 by VU Topper RM Quiz PDF 1 MB
- CS502 Quiz 1 by Junaid Quiz PDF 259 KB
- CS502 Solved Quiz 2 Lectures 31-37 by Riz Mughal Quiz PDF 3.2 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.