Question 1
Based on the above data, answer the given subquestions.
True
False

The IIT Madras BS Advanced Algorithms (Advanced Algorithms) Quiz 1 paper sat on 13 Jul 2025, in the May 2025 term: 26 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
Based on the above data, answer the given subquestions.
True
False
Correct answer
True
Based on the above data, answer the given subquestions.
True
False
Correct answer
True
Based on the above data, answer the given subquestions.
True
False
Correct answer
True
Consider the given problem, called BoxDepth: Given a set of n axis-aligned rectangles in the plane, how big is the largest subset of these rectangles that contain a common point?
For each statement given in the subquestions, determine if it is true or false.
There is a polynomial-time reduction from BoxDepth to MaxClique.
True
False
Correct answer
True
Consider the given problem, called BoxDepth: Given a set of n axis-aligned rectangles in the plane, how big is the largest subset of these rectangles that contain a common point?
For each statement given in the subquestions, determine if it is true or false.
There is a polynomial-time algorithm for BoxDepth.
True
False
Correct answer
True
Consider the given problem, called BoxDepth: Given a set of n axis-aligned rectangles in the plane, how big is the largest subset of these rectangles that contain a common point?
For each statement given in the subquestions, determine if it is true or false.
Only one of the statements in the previous question can be true assuming P ≠ NP.
True
False
Correct answer
False
Suppose your friend comes up with an algorithm to solve Partition in time O(nM), where n is the size of the input set and M is the sum of the absolute values of its elements. Which of the following statements is correct?
Such an algorithm cannot be possibly correct, since it runs in polynomial time and Partition is NP-hard.
Even if such an algorithm exists, then it does not imply that P=NP.
Correct answer
Even if such an algorithm exists, then it does not imply that P=NP.
The problem AllOrNothing3Sat asks, given a 3CNF boolean formula, whether there is an assignment to the variables such that each clause either has three True literals or has three False literals.
Consider the following statements:
(1) There is a polynomial-time algorithm to solve AllOrNothing3Sat.
(2) There is a polynomial-time reduction from 3SAT to AllOrNothing3Sat.
Assuming P ≠ NP, which of the following is true?
Both statements are true.
Statement (1) is true and statement (2) is false.
Statement (1) is false and statement (2) is true.
Both statements are false.
Correct answer
Statement (1) is true and statement (2) is false.
Which of the following statements is true about a flow network?
Increasing the capacity of one edge (u,v) by 1 can result in an increase of at most 1 in the max flow.
Increasing the capacity of one edge (u,v) by 1 will result in an increase of at least 1 in the max flow.
Decreasing the capacity of one edge (u,v) by 1 can result in a decrease of at most 1 in the max flow.
Decreasing the capacity of one edge (u,v) by 1 will result in a decrease of at least 1 in the max flow.
Correct answers
Increasing the capacity of one edge (u,v) by 1 can result in an increase of at most 1 in the max flow.
Decreasing the capacity of one edge (u,v) by 1 can result in a decrease of at most 1 in the max flow.
Given a flow network (G, s, t, c) and a flow f, how will you determine if f is maximum flow?
If there is any edge that is not saturated to full capacity, then we can conclude that f is not a maximum flow.
If the residual graph does not have any augmenting paths then f is a maximum flow.
If the value of the flow f is not the sum of the capacities of the edges coming out of the source s then f is not a maximum flow.
If the value of the flow f is not the sum of the capacities of the edges coming into the sink t then f is not a maximum flow.
Correct answer
If the residual graph does not have any augmenting paths then f is a maximum flow.
In this question, we consider a card game called SWISH.
In the commercial version of SWISH, there are 60 transparent cards. Those cards are made up of three columns and four rows, they are obtained by placing a point in each ofthe four possible positions (accounting for symmetries), and then a circle in each of the other possible positions. Some example cards are shown below.
Based on the above data, answer the given subquestions.
SWISH-SPECIAL is in P.
True
False
Correct answer
True
In this question, we consider a card game called SWISH.
In the commercial version of SWISH, there are 60 transparent cards. Those cards are made up of three columns and four rows, they are obtained by placing a point in each ofthe four possible positions (accounting for symmetries), and then a circle in each of the other possible positions. Some example cards are shown below.
Based on the above data, answer the given subquestions.
SWISH-SPECIAL is in NP.
True
False
Correct answer
False
In this question, we consider a card game called SWISH.
In the commercial version of SWISH, there are 60 transparent cards. Those cards are made up of three columns and four rows, they are obtained by placing a point in each ofthe four possible positions (accounting for symmetries), and then a circle in each of the other possible positions. Some example cards are shown below.
Based on the above data, answer the given subquestions.
SWISH-SPECIAL is NP-hard.
True
False
Correct answer
False
In this question, we consider a card game called SWISH.
In the commercial version of SWISH, there are 60 transparent cards. Those cards are made up of three columns and four rows, they are obtained by placing a point in each ofthe four possible positions (accounting for symmetries), and then a circle in each of the other possible positions. Some example cards are shown below.
Based on the above data, answer the given subquestions.
SWISH-SPECIAL is NP-complete.
True
False
Correct answer
False
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
Yes
No
Correct answer
No
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
None
One
Three
All
Correct answer
All
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
Suppose and the randomly assigned weights are:
Consider all non-empty families over non-empty subsets of . There are seven such families. How many of them do not have a unique minimum-weight subset?
None
One
Three
All
Correct answer
One
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
0
1/5
4/5
1
Correct answer
4/5
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
0
1/3
2/3
1
Correct answer
1
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
25
60
90
120
Correct answer
90
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
25
50
90
100
Correct answer
100
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
We introduce some notation:
Notice that . For example, if , then:
Let be the event:
We can conclude that the good event occurs if:
Correct answer
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
Further, if the good event occurs, then:
Correct answer
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
Correct answer
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
Consider the problem of finding perfect matchings in a simple, undirected graph. Recall that the Tutte matrix of a graph , denoted , is given by:
Suppose each edge is assigned a random weight in , and is the set of perfect matchings. Further, let us replace each indeterminate in the Tutte matrix of the graph is replaced with where is the randomly assinged weights of the edge from above.
If has no perfect matching, what is the determinant of with the variables substituted for these weights?
—
—
Correct answer
—
Let and be positive integers, and let be an arbitrary nonempty family of subsets of the universe . Suppose each element in the universe receives an integer weight , each of which is chosen independently and uniformly at random from . The weight of a set in is defined as
We want to explore the probability of the following "good" event: there is a unique set in that has the minimum weight among all sets of .
Based on the above data, answer the given subquestions.
We continue the notation from the previous question. Suppose the randomly assigned weights lead to the good event, that is, there is an unique perfect matching in G with minimum weight, and say this minimum weight is r. What can you say about the determinant of Z in this case?
Correct answer