Analysis of Algorithms Quiz

Analysis of Algorithms Quiz

University

10 Qs

quiz-placeholder

Similar activities

2018Quiz1INT202

2018Quiz1INT202

University

13 Qs

GIS Spatial Data Models

GIS Spatial Data Models

University

15 Qs

System Analysis & Design

System Analysis & Design

University

10 Qs

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

Quiz Week 5

Quiz Week 5

University

11 Qs

Learning AI and issues

Learning AI and issues

University

15 Qs

Algoritmos

Algoritmos

10th Grade - University

10 Qs

Chapter 8 - Memory Management Strategies

Chapter 8 - Memory Management Strategies

University

15 Qs

Analysis of Algorithms Quiz

Analysis of Algorithms Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Rajnikant Wagh

Used 58+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?