Identify the time complexity that indicates the longest running time required by an
algorithm for any given input of size n, and thus guarantees that the algorithm will finish in the indicated period of time.
DAA Quiz 1
Quiz
•
Education
•
University
•
Easy
Dr. 2330
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the time complexity that indicates the longest running time required by an
algorithm for any given input of size n, and thus guarantees that the algorithm will finish in the indicated period of time.
Worst case
Best case
Average Case
Constant Time
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The θ-notation will be expressed as
c2*g(n) <= t(n) <= c1*g(n) for all n >= n0
T(n) <= c*g(n) for all n >= n0
T(n) >= c*g(n) for all n >=n0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the time complexity of algorithm A is O(n^2) and that of algorithm B is O(n), then the algorithm _____ is the slowest among A and B.
B
A
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given items as {value,weight} pairs {{40,20},{30,10},{20,5}}.
The capacity of knapsack=20.
Find the maximum value output assuming items to be divisible.
80
100
60
90
Asymptotic Tight Bound
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find out the optimal solution that maximizes the profit for the job sequencing problem
a,e
c,a,e
b,a
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
While analyzing the non-recursive algorithm for matrix multiplication, it is necessary to investigate the best, worst and average case separately.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For all optimization problems, the greedy method will not always provide the best potential solution.
True
False
20 questions
DATA STRUCTURE AND ALGORITHM
Quiz
•
University
12 questions
Computational Thinking for Problem Solving
Quiz
•
University
20 questions
Artificial Intelligence
Quiz
•
8th Grade - Professio...
15 questions
Data Structure
Quiz
•
University
12 questions
Quiz AI
Quiz
•
University
10 questions
DAA Quiz 1
Quiz
•
University
15 questions
Sorting Quiz
Quiz
•
University - Professi...
20 questions
FDS Quiz 1
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade