MauryaHub PYQ Practice

Advanced Algorithms · Quiz 2 · May 2024

Advanced Algorithms · Quiz 2 · May 2024

← Course papers · Start practice / exam

This page contains the reliably extracted subset, not the complete original paper.

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 21 published solutions

Question 183 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Consider the following graph. A triangle-free subset of seven vertices is highlighted. Find the size of the largest triangle-free subset of vertices in this graph.
Source diagram or notation
6406532878651.
7
6406532878652.
8
6406532878653.
9
6406532878654.
10

A published solution is not available for this question yet.

Report a correction for Q183

Question 184 MSQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
The TRIANGLE-FREEDOM problem is the following: the input is a simple undirected graph G and a positive integer k. An instance (G, k) is a YES-instance if and only if G has a subset S of at least k vertices that are triangle-free. What can you say about TRIANGLE-FREEDOM? Check all that apply.
6406532878655.
It is in P.
6406532878656.
It is in NP.
6406532878657.
It is NP-hard.
6406532878658.
It is NP-complete.

A published solution is not available for this question yet.

Report a correction for Q184

Question 185 MCQ · 3.0 marks

Source diagram or notation
6406532878659.
Finding a Hamiltonian cycle in a graph is as hard as determining the answer to the Marbles Elimination question; i.e, there is a reduction from the problem of Marbles Elimination to the problem of finding a Hamiltonian cycle.
6406532878660.
Determining the answer to the Marbles Elimination question is as hard as finding a Hamiltonian cycle in a graph; i.e, there is a reduction from the Hamiltonian cycle problem to the problem of Marbles Elimination.
6406532878661.
Marbles Elimination is in P by a reduction to the Max Flow problem.

A published solution is not available for this question yet.

Report a correction for Q185

Question 186 MCQ · 3.0 marks

Source diagram or notation
6406532878662.
Yes, this is a valid set of constraints.
6406532878663.
No, the sum in the objective function should be taken only over neighbors of u.
6406532878664.
No, the sum in the second constraint should be taken only over in-neighbors of v and out-neighbors of v, respectively.

A published solution is not available for this question yet.

Report a correction for Q186

Question 187 MCQ · 3.0 marks

Source diagram or notation
6406532878665.
Statement 1
6406532878666.
Statement 2
6406532878667.
Both statements
6406532878668.
Neither statements

A published solution is not available for this question yet.

Report a correction for Q187

Question 188 MCQ · 2.0 marks

Consider the following statements and answer the given subquestions if they are true or false.
The worst-case running time and expected running time are equal to within constant factors for any randomized algorithm.
6406532878669.
TRUE
6406532878670.
FALSE

A published solution is not available for this question yet.

Report a correction for Q188

Question 189 MCQ · 2.0 marks

Consider the following statements and answer the given subquestions if they are true or false.
Source diagram or notation
6406532878671.
TRUE
6406532878672.
FALSE

A published solution is not available for this question yet.

Report a correction for Q189

Question 190 MSQ · 3.0 marks

Source diagram or notation
6406532878673.
It is in P.
6406532878674.
It is in NP.
6406532878675.
It is NP-hard.
6406532878676.
It is NP-complete.

A published solution is not available for this question yet.

Report a correction for Q190

Question 191 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Is it true that the algorithm always outputs a vertex cover?
6406532878677.
Yes
6406532878678.
No

A published solution is not available for this question yet.

Report a correction for Q191

Question 192 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Consider the algorithm in the given question. Does the algorithm always output an optimal vertex cover?
6406532878679.
Yes
6406532878680.
No

A published solution is not available for this question yet.

Report a correction for Q192

Question 193 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Consider the algorithm in the given question. Does the algorithm always output a 2-approximate vertex cover?
6406532878681.
Yes
6406532878682.
No

A published solution is not available for this question yet.

Report a correction for Q193

Question 194 MCQ · 1.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Recall that the size of an optimal vertex cover is at most twice the size of a maximum matching of a graph G. Are there examples of graphs where the size of the optimal vertex cover is **exactly** **equal** to twice the size of its maximum matching? For example, this is not true for a path on three vertices: the size of both the maximum matching and minimum vertex cover is 1.
6406532878683.
Yes
6406532878684.
No

A published solution is not available for this question yet.

Report a correction for Q194

Question 195 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532878685.
TRUE
6406532878686.
FALSE

A published solution is not available for this question yet.

Report a correction for Q195

Question 196 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532878687.
TRUE
6406532878688.
FALSE

A published solution is not available for this question yet.

Report a correction for Q196

Question 197 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532878689.
TRUE
6406532878690.
FALSE

A published solution is not available for this question yet.

Report a correction for Q197

Question 198 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
The construction described here is a valid reduction from 3-SAT to 3-Coloring.
6406532878691.
TRUE
6406532878692.
FALSE

A published solution is not available for this question yet.

Report a correction for Q198

Question 199 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
The construction described here is a valid reduction from 3-Coloring to 3-SAT.
6406532878693.
TRUE
6406532878694.
FALSE

A published solution is not available for this question yet.

Report a correction for Q199

Question 200 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Argue that to solve SCS, it is sufficient to find:
6406532878695.Source diagram or notation
6406532878696.Source diagram or notation
6406532878697.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q200

Question 201 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532878698.Source diagram or notation
6406532878699.Source diagram or notation
6406532878700.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q201

Question 202 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532878701.
A Hamiltonian cycle, i.e, a cycle that visits every vertex in the graph exactly once
6406532878702.
A Hamiltonian path, i.e, a path that visits every vertex in the graph exactly once
6406532878703.
A regular graph, i.e, a graph where every vertex has the same degree

A published solution is not available for this question yet.

Report a correction for Q202

Question 203 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Does the greedy algorithm always produce the right answer?
6406532878704.
Yes
6406532878705.
No       **RL** **Section Id :** 64065361119 **Section Number :** 13 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 16 **Number of Questions to be attempted :** 16 **Section Marks :** 40 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** No **Clear Response :** **Section Maximum Duration :** 0 **Section Minimum Duration :** 0 **Section Time In :** Minutes **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q203