
Algorithm Complexity
Presentation
•
Computers
•
University
•
Medium
Shahbaz Farooq
Used 8+ times
FREE Resource
21 Slides • 21 Questions
1
By Shahbaz Farooq
Big O Notation
2
Multiple Choice
3
Multiple Select
4
Multiple Choice
5
Multiple Choice
6
What do you think ?
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Multiple Choice
If for an algorithm time complexity is given by O(1) then complexityof it is:
constant
polynomial
exponential
none of the mentioned
21
Multiple Choice
O(n)
O(m)
O(n+m)
O(n*m)
22
Multiple Choice
If for an algorithm time complexity is given by O(n) then complexityof it is:
A. constant
B. linear
C. exponential
D. none of the mentioned
23
Multiple Choice
What is the time complexity of this algorithm?
O(n)
O(2n)
O(log n)
O(n2)
O(1)
24
Multiple Choice
What is the time complexity of this algorithm?
O(n)
O(2n)
O(log n)
O(n2)
O(1)
25
Multiple Choice
Why is this not a sequence?
Start car
Put in key
Turn key
Drive away
There are spelling mistakes
The instructions are in the correct order
The instructions are in the wrong order
It is a sequence
26
27
28
29
Multiple Choice
Time Complexity of this program:
def f():
a = 0
for i = 1 to n:
a += i;
b = 0
for i = 1 to m:
b += i;
O(n)
O(m)
O(n+m)
O(n*m)
30
Multiple Choice
If for an algorithm time complexity is given by O(1) then complexityof it is:
constant
polynomial
exponential
none of the mentioned
31
Multiple Choice
If for an algorithm time complexity is given by O(n) then complexityof it is:
A. constant
B. linear
C. exponential
D. none of the mentioned
32
Multiple Choice
Indicate constant time complexity in terms of Big-O notation
O(n)
O(1)
O(log n)
O (n^2)
33
Multiple Choice
Indicate exponential time complexity in terms of big-O notation
O (n)
O (n^2)
O (2^n)
O (log n)
34
Multiple Choice
Find the slowest time complexity
O (n)
O (n^2)
O (n!)
O (2^n)
35
Multiple Choice
Which notation is consistent for every execution?
O (n)
O (n^2)
O (1)
O (2^n)
36
Multiple Choice
The O (n!) is so inefficient, there is no practical use for it
True
False
37
Fill in the Blanks
Big-O is used to identify the most
Type answer...
38
Multiple Choice
O (n log n) is the worst case scenario for
Merge Sort
Bubble Sort
Binary Search
Linear Search
39
Multiple Choice
O n2 is the worst case scenario for
Merge Sort
Bubble Sort
Binary Search
Linear Search
40
41
42
By Shahbaz Farooq
Big O Notation
Show answer
Auto Play
Slide 1 / 42
SLIDE
Similar Resources on Wayground
38 questions
MS ACCESS
Presentation
•
University
37 questions
Comando de saída e strings
Presentation
•
University
37 questions
Internet & WWW & Software & Computation Thinking Case Review
Presentation
•
University
35 questions
NOS Revision
Presentation
•
University
39 questions
MODULE 04 - THS NGUYỄN THỊ KIM THÁI - BÀI HỌC
Presentation
•
KG
34 questions
Conceptos Básicos de Neuronas
Presentation
•
University
33 questions
ICT Application - Introduction to Computer
Presentation
•
University
35 questions
APES Unit 1 Review
Presentation
•
12th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
25 questions
SER and Subject Pronouns
Quiz
•
8th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
19 questions
Key Concepts in Buddhism
Quiz
•
University
0 questions
Cell Domain Basic Review (Biology)
Quiz
•
University