DSA Quiz 2cse2

DSA Quiz 2cse2

University

15 Qs

quiz-placeholder

Similar activities

Software Engineering-1

Software Engineering-1

University

20 Qs

DAA quiz2

DAA quiz2

University

15 Qs

Banco de Dados

Banco de Dados

University - Professional Development

20 Qs

Introduction to AI - Healthcare & Business

Introduction to AI - Healthcare & Business

University - Professional Development

10 Qs

Subtema 1.1 EVA

Subtema 1.1 EVA

University

10 Qs

BARRA DE TAREA Y PANEL DE CONTROL

BARRA DE TAREA Y PANEL DE CONTROL

University

10 Qs

21CSC305P - Machnine Learning - Quiz

21CSC305P - Machnine Learning - Quiz

University

15 Qs

DSA Quest 1.0

DSA Quest 1.0

University

19 Qs

DSA Quiz 2cse2

DSA Quiz 2cse2

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

tarul kamboj

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sorting algorithms is not an in-place sorting algorithm?


A. Merge Sort

B. Quick Sort

C. Shell Sort

D. Heap Sort

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is time complexity of fun()?

int fun(int n)

{

    int count = 0;

    for (int i = n; i > 0; i /= 2)

        for (int j = 0; j < i; j++)

           count += 1;

    return count;

}


(A)O(n2)

(B)O(n*log(n))

(C)O(n)

(D)O(n*log(n*Log(n)))

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of Huffman Coding?

(A)O(N)


(B)O(NlogN)

(C)O(N(logN)^2)

(D)O(N^2)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the time complexity of Strassen's algorithm for matrix multiplication?

O(n)

O(nlogn)

O(n^2)

O(n^2.81)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The Bellman-Ford algorithm is used to solve:

Single-source shortest path problem

All-pairs shortest path problem

Maximum flow problem

Minimum spanning tree problem

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The Master Theorem is used to solve recurrences of which type?

Linear recurrences

Quadratic recurrences

Exponential recurrences

Divide and Conquer recurrences

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which greedy algorithm solves the knapsack problem?

Dijkstra's algorithm

Prim's algorithm

Kruskal's algorithm

Fractional knapsack algorithm

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?