Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : ADVANCED ALGORITHMS
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Comprehension Passage
Consider the statements about randomized quicksort 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.
Solution
Comprehension Passage
Consider the statements about randomized quicksort and answer the given subquestions if they are true or false.
An adversary can provide randomized quicksort with an input array of length
that forces the algorithm to run in
time on that input. (If you are not familiar with the
asymptotic notation, it roughly translates as “at least”. For example, we can say that it is possible to come up with an input that forces insertion sort to run for
steps.)
Solution
In RANDOMIZED-QUICKSORT, consider two distinct elements
and
with
. What is the probability that these two elements are compared during execution?
Solution
Generating UAR Sequences
The goal of this exercise is to compute a uniformly random permutation of
.
Assume we have a generator that produces independent uniform real numbers in
. Consider the following algorithm:
- Generate random numbers
independently from 
- Pair them as
- Sort the pairs in decreasing order of
- Output the permutation based on sorted indices
Does this procedure generate a uniformly random permutation of
?
The goal of this exercise is to compute a uniformly random permutation of
Assume we have a generator that produces independent uniform real numbers in
- Generate random numbers
- Pair them as
- Sort the pairs in decreasing order of
- Output the permutation based on sorted indices
Does this procedure generate a uniformly random permutation of
Solution
Comprehension Passage
Consider the following approximation algorithm for the weighted vertex cover problem:
1. Solve the relaxed linear program corresponding to the given problem:
Minimize

Subject to

2.
3. return
Based on the above data, answer the given subquestions.
1. Solve the relaxed linear program corresponding to the given problem:
Minimize
Subject to
2.
3. return
Based on the above data, answer the given subquestions.
Suppose that instead of putting a vertex
into the cover when
, we put
into the cover when
. What happens?
Solution
Comprehension Passage
Consider the following approximation algorithm for the weighted vertex cover problem:
1. Solve the relaxed linear program corresponding to the given problem:
Minimize

Subject to

2.
3. return
Based on the above data, answer the given subquestions.
1. Solve the relaxed linear program corresponding to the given problem:
Minimize
Subject to
2.
3. return
Based on the above data, answer the given subquestions.
Suppose that instead of putting a vertex
into the cover when
, we put
into the cover when
. What happens?
Solution
Comprehension Passage
Consider the following approximation algorithm for the weighted vertex cover problem:
1. Solve the relaxed linear program corresponding to the given problem:
Minimize

Subject to

2.
3. return
Based on the above data, answer the given subquestions.
1. Solve the relaxed linear program corresponding to the given problem:
Minimize
Subject to
2.
3. return
Based on the above data, answer the given subquestions.
Suppose that we modify the algorithm to include vertex
in the cover only when
. What happens?
Solution
Comprehension Passage
Consider the following approximation algorithm for the weighted vertex cover problem:
1. Solve the relaxed linear program corresponding to the given problem:
Minimize

Subject to

2.
3. return
Based on the above data, answer the given subquestions.
1. Solve the relaxed linear program corresponding to the given problem:
Minimize
Subject to
2.
3. return
Based on the above data, answer the given subquestions.
Suppose that we include vertex
in the cover when
. What happens?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
A graph G is a cluster graph if and only if it does not have an induced path on 3 vertices.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
In the DISJOINT CLUSTER VERTEX DELETION problem, if the subgraph induced on S is not a cluster graph, we can immediately return YES.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
In the DISJOINT CLUSTER VERTEX DELETION problem, if the subgraph induced on the vertices of S is not a cluster graph, we can immediately return NO.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
If the subgraph induced on the vertices of S is a cluster graph and a vertex in V (G) \ S is adjacent to at least two vertices in S which are in different cliques, then we can delete it and leave the parameter unchanged.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
If the subgraph induced on the vertices of S is a cluster graph and a vertex in V (G) \ S is adjacent to at least two vertices in S which are in different cliques, then we can delete it and decrease the parameter by 1.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
If the subgraph induced on the vertices of S is a cluster graph and a vertex in V (G) \ S is adjacent to some but not all vertices in a clique of G[S], then we can delete it and leave the parameter unchanged.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
If the subgraph induced on the vertices of S is a cluster graph and a vertex in V (G) \ S is adjacent to some but not all vertices in a clique of G[S], then we can delete it and decrease the parameter by 1.
Solution
Consider a graph
and let
denote its chromatic number. Let
.
Select all true statements:
Select all true statements:
Solution
Let
be a maximal independent set in graph
.
Select all true statements:
Select all true statements:
Solution
Comprehension Passage
In the above figure, we have a graph G and a Feedback Vertex Set (FVS) of size 3, which is given by the boxed vertices:
S := {a, c, e}
We need to find a DISJOINT FVS of size 2.
For each of the given statements, determine whether it is True or False.
Based on the above data, answer the given subquestions.
According to the reduction rules for DFVS, the following figure shows a valid intermediate instance in the reduction with
.

Solution
Comprehension Passage
In the above figure, we have a graph G and a Feedback Vertex Set (FVS) of size 3, which is given by the boxed vertices:
S := {a, c, e}
We need to find a DISJOINT FVS of size 2.
For each of the given statements, determine whether it is True or False.
Based on the above data, answer the given subquestions.
According to the reduction rules for DFVS, the following figure shows a valid intermediate instance in the reduction with
.

Solution
Comprehension Passage
In the above figure, we have a graph G and a Feedback Vertex Set (FVS) of size 3, which is given by the boxed vertices:
S := {a, c, e}
We need to find a DISJOINT FVS of size 2.
For each of the given statements, determine whether it is True or False.
Based on the above data, answer the given subquestions.
According to the reduction rules for DFVS, the following figure shows a valid intermediate instance in the reduction with
.

Solution
Comprehension Passage
In the above figure, we have a graph G and a Feedback Vertex Set (FVS) of size 3, which is given by the boxed vertices:
S := {a, c, e}
We need to find a DISJOINT FVS of size 2.
For each of the given statements, determine whether it is True or False.
Based on the above data, answer the given subquestions.
According to the reduction rules for DFVS, the following figure shows a valid intermediate instance in the reduction with
.

Solution
Shape
Thickness [ / ]
3
All colors