DAA-UNIT III

DAA-UNIT III

University

10 Qs

quiz-placeholder

Similar activities

Coding Challenge Round 1

Coding Challenge Round 1

University

10 Qs

Clustering

Clustering

University

10 Qs

DTSP Unit-1 Quiz 2

DTSP Unit-1 Quiz 2

University

10 Qs

Postmodernism Paradigm

Postmodernism Paradigm

University

9 Qs

Computational Thinking for Problem Solving

Computational Thinking for Problem Solving

University

10 Qs

Data Structure & Algorithm

Data Structure & Algorithm

University

15 Qs

Algorithm Quizz 2

Algorithm Quizz 2

University

10 Qs

Research paradigms

Research paradigms

University

9 Qs

DAA-UNIT III

DAA-UNIT III

Assessment

Quiz

Other, Education

University

Hard

Created by

Shakti Mishra

Used 17+ times

FREE Resource

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

Media Image

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

Media Image

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?