
B2Q4
Authored by Sumab Rao
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
4 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When a top-down approach of dynamic programming is applied to a problem, it usually _____________ compared to the recursive approach
Decreases both, the time complexity and the space complexity
Decreases the time complexity and increases the space complexity
Increases the time complexity and decreases the space complexity
Increases both, the time complexity and the space complexity
none of these
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following problems should be solved using dynamic programming in order to get better efficiency?
Mergesort
Binary search
Finding nth Fibonacci number
Quicksort
all of these
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you determine the cost of a spanning tree?
By the sum of costs of the edges of the tree
By the sum of the costs of the edges and vertices of the tree
By the sum of the costs of the vertices of the tree
By the sum of costs of the edges of the graph
none of these
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is false about Prim’s algorithm?
It is a greedy algorithm
It constructs MST by selecting edges in increasing order of their weights
It never accepts cycles in the MST
It can be efficiently implemented using the linear queue
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?