
Algorithm Complexity
Presentation
•
Computers
•
University
•
Medium
Shahbaz Farooq
Used 8+ times
FREE Resource
21 Slides • 21 Questions
1
Algorithm Complexity
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
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
Algorithm Complexity
By Shahbaz Farooq
Big O Notation
Show answer
Auto Play
Slide 1 / 42
SLIDE
Similar Resources on Wayground
35 questions
Ôn tập lí thuyết CTDL
Presentation
•
University
37 questions
Variables and Algebraic Expressions
Presentation
•
KG - University
38 questions
Business Organizations
Presentation
•
12th Grade
38 questions
GIVING DIRECTIONS
Presentation
•
University
38 questions
DIS week 2 - session 1 quiz
Presentation
•
University
39 questions
PKM ms word
Presentation
•
University
37 questions
OPERATING SYSTEM (MODULE #2)
Presentation
•
University
38 questions
Mastering PRINCE2: A Guide to Project Management
Presentation
•
University
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
Afterschool Activities & Sports
Quiz
•
6th - 8th Grade
19 questions
ROAR Week 2026
Quiz
•
9th - 12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
15 questions
Cool Tool:Chromebook
Quiz
•
6th - 8th Grade
22 questions
would you rather
Quiz
•
3rd - 11th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
Discover more resources for Computers
12 questions
Academic Integrity
Presentation
•
University
20 questions
IR Writing 201
Quiz
•
University
20 questions
Disney Trivia
Quiz
•
University
40 questions
Famous Logos
Quiz
•
7th Grade - University
4 questions
Benefits of Saving
Quiz
•
5th Grade - University
25 questions
USCB Policies and Procedures
Quiz
•
University
18 questions
Parent Functions
Quiz
•
9th Grade - University
20 questions
Empirical Rule Homwwork
Quiz
•
10th Grade - University