
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
26 questions
AI Quiz 26/9

Quiz
•
University
20 questions
DATA LINK LAYER CONTROL

Quiz
•
University
20 questions
Midterm Exam Content ITEC 204

Quiz
•
University
20 questions
DATA STRUCTURES_LBRCE

Quiz
•
University
21 questions
Sorting algorithms I

Quiz
•
University
25 questions
QUIZ

Quiz
•
University
20 questions
Computer Graphics

Quiz
•
University
20 questions
technology (Computer)

Quiz
•
3rd Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher

Quiz
•
Professional Development
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University