What is the execution time of g(n) in the following function?
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
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 Quizizz
10 questions
27Mar

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

Quiz
•
University
10 questions
DRAINER CS : Data Structures Final Review

Quiz
•
University
12 questions
Quiz-1(Div-C)

Quiz
•
University
10 questions
AdvancedProgramming_intro

Quiz
•
University
11 questions
Atajos de Windows 7

Quiz
•
University
10 questions
searching quiz

Quiz
•
University
11 questions
JAVALO3

Quiz
•
University
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Computers
20 questions
Summer

Quiz
•
KG - University
19 questions
Minecraft

Quiz
•
6th Grade - Professio...
20 questions
3rd Grade Review

Quiz
•
KG - University
15 questions
Minecraft

Quiz
•
University
52 questions
Logos Trivia

Quiz
•
KG - University
7 questions
New national park celebrates Harriet Tubman's legacy

Interactive video
•
11th Grade - University
8 questions
2 Step Word Problems

Quiz
•
KG - University
20 questions
Disney characters

Quiz
•
KG - Professional Dev...