Complexity Analysis Station [1]

Quiz
•
Computers
•
University
•
Medium

Dareen Hussein
Used 38+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the execution time of g(n) in the following function?
execution time g(n) = n . execution time of f()
execution time g(n) = n^2 . execution time of f()
execution time g(n) = n log n . execution time of f()
execution time g(n) = n^2 log n . execution time of f()
2.
MULTIPLE CHOICE QUESTION
45 sec • 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
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of this code
O(N)
O(Sqrt(N))
O(N / 2)
O(log N)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the execution time of g(n) in the following function?
execution time g(n) = n^2 . execution time of f()
execution time g(n) = n log n . execution time of f()
execution time g(n) = n^2+n . execution time of f()
execution time g(n) = (n^2+n)/2 . execution time of f()
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the execution time complexity of sorting a vector?
O(n)
O(n log n)
O(log n)
O(n^2Logn)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is asymptotic complexity in the following void function?
O(n^2)
O(n^2logn)
O(n+m)
O((n+m)^2)
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The complexity of Binary search algorithm is
O(n)
O(log n)
O(n2)
O(n log n)
Similar Resources on Wayground
10 questions
ADA Module-1

Quiz
•
University
10 questions
Flutter Quiz

Quiz
•
University
9 questions
Métodos de Ordenamiento

Quiz
•
University
10 questions
Von Neumann Architecture

Quiz
•
8th Grade - University
10 questions
Algorithms and algorithmic Complexity

Quiz
•
University
11 questions
Data Structures - Training: Quiz 1

Quiz
•
University
10 questions
COA Q3

Quiz
•
University
10 questions
searching quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University