
S8 cOMPREHENSIVE VIVA ALGORITHM ANALYSIS AND DESIGN

Quiz
•
Computers
•
Professional Development
•
Hard

Arya S R
Used 1+ times
FREE Resource
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)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Questionário - Informática Aplicada

Quiz
•
Professional Development
20 questions
Quizizz de repàs normalització en les xarxes locals

Quiz
•
Professional Development
20 questions
Fundamentos de Algoritmos

Quiz
•
Professional Development
24 questions
COMPETIC 3 CALC

Quiz
•
Professional Development
21 questions
CÂU LỆNH WHILE

Quiz
•
Professional Development
25 questions
Iqtisodiyotda AKT

Quiz
•
University - Professi...
23 questions
Сортировки + Преф. суммы

Quiz
•
Professional Development
20 questions
Bezpieczeństwo w internecie

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development