Complexity Analysis Station [1]
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Dareen Hussein
Used 38+ times
FREE Resource
Enhance your content in a minute
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)
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
12 questions
CIS1103 Week 9_10 CLO3 Part 1
Quiz
•
University
10 questions
Quiz Informatica Jornadas Orientación Asunción
Quiz
•
12th Grade - University
10 questions
Teste python- Unesp-Jaboticabal
Quiz
•
University
10 questions
2023-2024 OA5 Quiz 1
Quiz
•
University
11 questions
Explorando Redes Informáticas
Quiz
•
3rd Grade - University
10 questions
División de redes IP en subredes
Quiz
•
University
10 questions
pointers and structures
Quiz
•
University
10 questions
Excel 2016 Formato de celda
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
