
DAA-UNIT III
Authored by Shakti Mishra
Other, Education
University
Used 17+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following standard algorithms is not Dynamic Programming based.
Bellman–Ford Algorithm for single source shortest path
Floyd Warshall Algorithm for all pairs shortest paths
0-1 Knapsack problem
Prim's Minimum Spanning Tree
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
An algorithm to find the length of the longest monotonically increasing sequence of numbers in an array A[0 :n-1] is given below. Let Li denote the length of the longest monotonically increasing sequence starting at index i in the array.
Which of the following statements is TRUE?
The algorithm uses dynamic programming paradigm
The algorithm has a linear complexity and uses branch and bound paradigm
The algorithm has a non-linear polynomial complexity and uses branch and bound paradigm
The algorithm uses divide and conquer paradigm.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Four matrices M1, M2, M3 and M4 of dimensions pxq, qxr, rxs and sxt respectively can be multiplied is several ways with different number of total scalar multiplications. For example, when multiplied as ((M1 X M2) X (M3 X M4)), the total number of multiplications is pqr + rst + prt. When multiplied as (((M1 X M2) X M3) X M4), the total number of scalar multiplications is pqr + prs + pst. If p = 10, q = 100, r = 20, s = 5 and t = 80, then the number of scalar multiplications needed is
248000
44000
19000
25000
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following algorithms is NOT a divide & conquer algorithm by nature?
Euclidean algorithm to compute the greatest common divisor
Heap Sort
Cooley-Tukey fast Fourier transform
Quick Sort
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Maximum Subarray Sum problem is to find the subarray with maximum sum. For example, given an array {12, -13, -5, 25, -20, 30, 10}, the maximum subarray sum is 45.
The naive solution for this problem is to calculate sum of all subarrays starting with every element and return the maximum of all. We can solve this using Divide and Conquer, what will be the worst case time complexity using Divide and Conquer.
O(n)
O(nLogn)
O(Logn)
O(n^2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the shortest path from node A to node F?
A -> B -> D -> F
A -> C -> B -> E -> F
A -> F
A -> C -> E -> F
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dijkstra's algorithm is based on which paradigm?
Greedy paradigm
Backtracking paradigm
Dynamic Programming paradigm
Divide and Conquer paradigm
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
football of world
Quiz
•
1st Grade - University
13 questions
Anime 99
Quiz
•
9th Grade - Professio...
9 questions
HUSTer! Rung chuông vàng TOEIC!
Quiz
•
University
10 questions
QUIZ TPHTP 5 - Pengolahan Teh Hitam
Quiz
•
University
15 questions
Factors effecting HR Planning
Quiz
•
11th Grade - University
10 questions
Collective Bargaining
Quiz
•
University
11 questions
Historia de la Contabilidad
Quiz
•
University
12 questions
National Day Quiz
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade