
S8 cOMPREHENSIVE VIVA ALGORITHM ANALYSIS AND DESIGN
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Arya S R
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Processores
Quiz
•
Professional Development
20 questions
ITF+ Ch9, Security Concepts & Threats
Quiz
•
Professional Development
20 questions
First Quiz WPCareNinja
Quiz
•
Professional Development
20 questions
Installing and Configuring Computer Systems 2
Quiz
•
Professional Development
21 questions
CÂU LỆNH WHILE
Quiz
•
Professional Development
20 questions
Mobile Device
Quiz
•
Professional Development
20 questions
IHDL_Semi-Final Quiz
Quiz
•
Professional Development
20 questions
Formulas & Functions in Excel (Post)
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
