S8 cOMPREHENSIVE VIVA ALGORITHM ANALYSIS AND DESIGN

S8 cOMPREHENSIVE VIVA ALGORITHM ANALYSIS AND DESIGN

Professional Development

25 Qs

quiz-placeholder

Similar activities

เทคโนโลยี (วิทยาการคำนวณ) ชั้นมัธยมศึกษาปีที่ 5

เทคโนโลยี (วิทยาการคำนวณ) ชั้นมัธยมศึกษาปีที่ 5

Professional Development

20 Qs

DataBase Quiz - CME Workshop

DataBase Quiz - CME Workshop

Professional Development

20 Qs

Révision HTML, CSS et JavaScript

Révision HTML, CSS et JavaScript

Professional Development

20 Qs

BCA - IV SEM DBMS

BCA - IV SEM DBMS

Professional Development

20 Qs

Teaching Strategy

Teaching Strategy

Professional Development

20 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Lógica Python Revisão 1º Semestre

Lógica Python Revisão 1º Semestre

Professional Development

20 Qs

Evaluación de procesos 02

Evaluación de procesos 02

Professional Development

20 Qs

S8 cOMPREHENSIVE VIVA ALGORITHM ANALYSIS AND DESIGN

S8 cOMPREHENSIVE VIVA ALGORITHM ANALYSIS AND DESIGN

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Arya S R

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?