Analysis of Algorithms
Quiz
•
Computers
•
University
•
Hard
Vikram Rajpoot
Used 91+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does it mean when we say that an algorithm X is asymptotically more efficient than Y?
X will be a better choice for all inputs
X will be a better choice for all inputs except possibly small inputs
X will be a better choice for all inputs except possibly large inputs
Y will be a better choice for small inputs
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is not O(n^2)?
(15^10) * n + 12099
n^1.98
n^3 / (sqrt(n))
(2^20) * n
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the given options provides the increasing order of asymptotic complexity of functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
f3(n) = nLogn
f4(n) = n^(Logn)
f3, f2, f4, f1
f3, f2, f1, f4
f2, f3, f1, f4
f2, f3, f4, f1
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following functions:
f(n) = 2^n
g(n) = n!
h(n) = n^logn
Which of the following statements about the asymptotic behavior of f(n), g(n), and h(n) is true?
f(n) = O(g(n)); g(n) = O(h(n))
f(n) = omega (g(n)); g(n) = O(h(n))
g(n) = O(f(n)); h(n) = O(f(n))
h(n) = O(f(n)); g(n) = omega (f(n))
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is not true about comparison based sorting algorithms?
The minimum possible time complexity of a comparison based sorting algorithm is O(nLogn) for a random input array
Radix Sort is taken linear time for sorting
Counting Sort is not a comparison based sorting algortihm
Heap Sort is not a comparison based sorting algorithm.
6.
MULTIPLE CHOICE QUESTION
5 mins • 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; }
O(n^2)
O(nLogn)
O(n)
O(nLognLogn)
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the above functions
Which of the following is true?
(a) h(n) is 0(f(n))
(b) h(n) is 0(g(n))
(c) g(n) is not 0(f(n))
(d) f(n) is 0(g(n))
a
b
c
d
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
14 questions
Prueba Parcial de TIC
Quiz
•
University
12 questions
Quiz No. 2.2 Hash Tables
Quiz
•
University
10 questions
Introduction to Semiconductor
Quiz
•
University
10 questions
python quiz
Quiz
•
6th Grade - Professio...
14 questions
Excel Bezüge und Funktionen - SUMME, MAX, MIN, MITTELWERT
Quiz
•
University
12 questions
Enumeration and Recursion
Quiz
•
11th Grade - University
14 questions
Sains Komputer Tingkatan 4 - 2.2.3 Menghasilkan gambar rajah
Quiz
•
1st Grade - Professio...
14 questions
Adm de SI - Sistemas integrados
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
