
S8 cOMPREHENSIVE VIVA ALGORITHM ANALYSIS AND DESIGN
Authored by Arya S R
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not O(n2)?
(1510) * n + 12099
n1.98
n3/(sqrt(n))
(220) * n
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a backtracking algorithm?
Knight tour problem
N queen problem
Tower of hanoi
M coloring problem
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose T(n) = 2T(n/2) + n, T(0) = T(1) = 1 Which one of the following is false.
T(n) = O(n^2)
T(n) = (nLogn)
T(n) = (n^2)
T(n) = O(nLogn)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of Floyd–Warshall algorithm to calculate all pair shortest path in a graph with n vertices?
O(n2log(n))
Theta(n2log(n))
Theta(n4)
Theta(n3)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Four matrices M1, M2, M3 and M4 of dimensions pxq, qxr, rxs and sxt respectively can be multiplied is several ways with different number of total scalar multiplications. For example, when multiplied as ((M1 X M2) X (M3 X M4)), the total number of multiplications is pqr + rst + prt. When multiplied as (((M1 X M2) X M3) X M4), the total number of scalar multiplications is pqr + prs + pst. If p = 10, q = 100, r = 20, s = 5 and t = 80, then the number of scalar multiplications needed is
248000
44000
19000
25000
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The subset-sum problem is defined as follows. Given a set of n positive integers, S = {a1 ,a2 ,a3 ,…,an} and positive integer W, is there a subset of S whose elements sum to W? A dynamic program for solving this problem uses a 2-dimensional Boolean array X, with n rows and W+1 columns. X[i, j],1 <= i <= n, 0 <= j <= W, is TRUE if and only if there is a subset of {a1 ,a2 ,...,ai} whose elements sum to j. Which of the following is valid for 2 <= i <= n and ai <= j <= W?
X[i, j] = X[i - 1, j] ∨ X[i, j -ai]
X[i, j] = X[i - 1, j] ∨ X[i - 1, j - ai]
X[i, j] = X[i - 1, j] ∧ X[i, j - ai]
X[i, j] = X[i - 1, j] ∧ X[i, j - ai
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The minimum number of comparisons required to determine if an integer appears more than n/2 times in a sorted array of n integers is
θ(n)
θ(logn)
θ(log*n)
θ(1)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Advance Ms-Word
Quiz
•
10th Grade - Professi...
20 questions
Banco de Dados
Quiz
•
University - Professi...
21 questions
NumPy Quiz
Quiz
•
Professional Development
20 questions
Nest JS - Parte 01
Quiz
•
Professional Development
20 questions
Tout savoir sur WINDOWS Quizz 1
Quiz
•
Professional Development
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
20 questions
JavaScript
Quiz
•
Professional Development
20 questions
Web Application Security Testing-PreTest
Quiz
•
Professional Development
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
44 questions
Would you rather...
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
14 questions
Valentine's Day Trivia!
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development