Analysis of Algorithms Quiz

Quiz
•
Computers
•
University
•
Hard
Rajnikant Wagh
Used 58+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 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
30 sec • 1 pt
We use dynamic programming approach when
We need an optimal solution
The solution has optimal substructure
The given problem can be reduced to the 3-SAT problem
It's faster than Greedy
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following standard algorithms is not a Greedy algorithm?
Dijkstra's shortest path algorithm
Prim's algorithm
Huffman Coding
Bellmen Ford Shortest path algorithm
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following two sequences :
The length of longest common subsequence of X and Y is :Consider the following two sequences :
X = < B, C, D, C, A, B, C >, and Y = < C, A, D, B, C, B >
The length of longest common subsequence of X and Y is :
5
3
4
2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following paradigm can be used to find the solution of the problem in minimum time: Given a set of non-negative integer, and a value K, determine if there is a subset of the given set with sum equal to K:
Divide and Conquer
Dynamic Programming
Greedy Algorithm
Branch and Bound
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when a top-down approach of dynamic programming is applied to any problem?
It increases both, the time complexity and the space complexity
It increases the space complexity and decreases the time complexity.
It increases the time complexity and decreases the space complexity
It decreases both, the time complexity and the space complexity
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider a job scheduling problem with 4 jobs J1, J2, J3, J4 and with corresponding deadlines: ( d1, d2, d3, d4) = (4, 2, 4, 2). Which of the following is not a feasible schedule without violating any job schedule?
J2, J4, J1, J3
J4, J1, J2, J3
J4, J2, J1, J3
J4, J2, J3, J1
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
DAA_C_MCQ - 1

Quiz
•
University
10 questions
ADA Module-3 Quiz 2025

Quiz
•
University
10 questions
OS Day 2 part 2

Quiz
•
University
14 questions
Knapsack, Fractional Knapsack, Coin Change - Batch 1

Quiz
•
University
15 questions
Eng. S2 - #4 AI Part 1

Quiz
•
University
15 questions
PreTest DFC20113 - Programming Fundamentals

Quiz
•
University
5 questions
AP CSP Algorithms & Programming 1/9/2024

Quiz
•
University
10 questions
Algorithms and Data Structure Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University