
DSA Quiz 2cse2

Quiz
•
Computers
•
University
•
Medium
tarul kamboj
Used 4+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
PDS - 04225 Week 2 - Phases of Software Development - Chapter 1

Quiz
•
University
16 questions
Y13 Big O notation

Quiz
•
10th Grade - University
10 questions
Analysis of Algorithms

Quiz
•
University
16 questions
Algo Quiz

Quiz
•
University
15 questions
Searching and Sorting

Quiz
•
University - Professi...
10 questions
27Mar

Quiz
•
University
15 questions
Fundamentals of Algorithms - Unit 1 - Test 1

Quiz
•
University
10 questions
Dynamic Programming part 1

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University