
Analysis of Algorithm 2-Quizz(0)

Quiz
•
Computers
•
University - Professional Development
•
Hard
Bilal Syed
Used 2+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The complexity of Binary search algorithm is
O(n)
O(log n)
O(n2)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the time complexity of following code:
int a = 0;
for (i = 0; i < N; i++) {
for (j = N; j > i; j--) {
a = a + i + j;
}
}
O(N)
O(N*log(N))
O(N * Sqrt(N))
O(N*N)
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A linear function takes the form
f(n) = an + b
f(n) = an2 +bn + c
f(n) = alog2n
f(n) = a + b
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The number of executions grows extremely quickly as the size of the input increases
Exponential Time
Linear Time
Polynomial Time
Constant Time
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
Sorting algorithms I

Quiz
•
University
20 questions
data structures1

Quiz
•
University
20 questions
Data Structures and Algorithm

Quiz
•
University
20 questions
Data Structures Quiz

Quiz
•
University
20 questions
TECH FUED ROUND-1

Quiz
•
University
20 questions
Sorting - IV year

Quiz
•
Professional Development
20 questions
Data Structures

Quiz
•
University
20 questions
Quantitative Aptitude Series

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade