What kind of complexities are we interested in?

ALDA - Week 03

Quiz
•
Computers
•
University
•
Medium

Team Informatica
Used 460+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Time
Space
Running time
Cognitive
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is measured with time complexity?
The time from start to end
Number of elementary operations
Only loops
CPU cycles
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Algorithm A has a complexity O(n log(n))
Algorithm B has complexity O(n)
Does this mean that algorithm B is always faster than A?
Yes
No
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We have the following list of numbers: 10 4 1 23 2 23 5 9 7
We want to find the number 9, which algorithm should we use?
Linear search: O(n)
Binary search: (logn)
Linear search
Binary search
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following answers has the time complexities in the correct order from faster to slowest?
O(1), O(logn), O(n), O(nlogn), O(n^2), O(n!), O(2^n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the complexity of this algorithm?
O(n)
O(n^2)
O(n*logn)
O(logn)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the complexity of this algorithm?
O(n)
O(2n)
O(2^n)
O(nlogn)
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Array

Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory

Quiz
•
University
6 questions
Complexity Analysis Station [4]

Quiz
•
University
7 questions
Data Structure 1

Quiz
•
University
13 questions
Preliminary Algorithm and Complexities Examination

Quiz
•
University
11 questions
JAVALO3

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

Quiz
•
University
15 questions
AlgoMania Quiz

Quiz
•
University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
10 questions
Identifying equations

Quiz
•
KG - University
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...
6 questions
Railroad Operations and Classifications Quiz

Quiz
•
University
71 questions
Logos

Quiz
•
3rd Grade - University
8 questions
Mali - Geography

Quiz
•
University