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)
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
Solution
Solution
Solution
Which of the following statements is true?
Statement 1: For every graph G and every maximum flow on G, there always exists an edge such that increasing the capacity on that edge will increase the maximum flow that’s possible in the graph.
Statement 2: Suppose the maximum (s,t)-flow of some graph has value f. Now we increase the capacity of every edge by 1. Then the maximum (s,t)-flow in this modified graph will have value at most f + 1.
Statement 1: For every graph G and every maximum flow on G, there always exists an edge such that increasing the capacity on that edge will increase the maximum flow that’s possible in the graph.
Statement 2: Suppose the maximum (s,t)-flow of some graph has value f. Now we increase the capacity of every edge by 1. Then the maximum (s,t)-flow in this modified graph will have value at most f + 1.
Solution
Solution
Solution
A subset S of vertices in an undirected graph G is half-independent if each vertex in S is adjacent to at most one other vertex in S. Is it true that finding the size of the largest half-independent set of vertices in a given undirected graph is NP-hard?
Solution
Comprehension Passage
Can the disk with dimensions [2,1,2] be placed above [3,2,3]?
Solution
Comprehension Passage
Can the disk with dimensions [2,2,2] be placed above [3,2,3]?
Solution
Comprehension Passage
Suppose the input consists of the following triplets: [[3, 5, 7], [3, 2, 2], [3, 1, 1], [5, 5, 9]]. What’s the answer?
Solution
Comprehension Passage
Solution
Comprehension Passage
Solution
Comprehension Passage
Solution
Comprehension Passage
What is the complexity of this algorithm?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
If we have 1 die with 6 sides, how many ways can we achieve a target sum of 4?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
If we have 3 dice with 17 sides each, how many ways can we achieve a target sum of 7?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
Suppose the input consists of 3 dice, each with 4 sides, and the target sum is 9. What’s the answer?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
In which of the following scenarios will the answer be zero?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
If we have one die with six sides, what are the achievable targets?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
Let DP[N,T ] denote the number of ways to achieve a target sum of T > 0 using N > 0 dice. Which of the following recursive formulas is correct if all the dice have S sides?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
What is the value of DP[0, 0]?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
What is the value of DP[0, T ] for any T > 0?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
What is the value of DP[N , 0] for any N > 0?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
What is the value of DP[N , T ] if T < N ?
Solution
Comprehension Passage
We are given a set of N dice, each with S sides, and a target integer T , which represents a target sum to obtain when rolling all of the dice and summing their values. Your goal is to determine the total number of dice-roll permutations that sum up to exactly that target value.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
All three input values will always be positive integers. Each of the dice has an equal probability of landing on any number from 1 to S.
Identical total dice rolls obtained from different individual dice rolls (for example, [2, 3] vs. [3, 2]) count as different dice-roll permutations.
If there’s no possible dice-roll combination that sums up to the target given the input dice, the answer is zero.
Based on the above data, answer the given subquestions.
What is the complexity of this algorithm ?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
In this given subquestion, we will examine the relationship of treewidth with other graph
parameters.
parameters.
Let G be an undirected connected graph and T be a depth-first search (DFS) tree of G rooted at a vertex r. An edge of G is called a back edge if the endpoints of the edge are on the same root to leaf path in T . That is, an edge is from a vertex to one of its ancestors in the DFS tree. An edge that is not a back edge is called a cross edge. Indeed, such an edge points from a vertex to a previously visited vertex that is neither an ancestor nor a descendant. Which of the following statements are true?
Solution
Comprehension Passage
In this given subquestion, we will examine the relationship of treewidth with other graph
parameters.
parameters.
Let G be an undirected connected graph and T be a depth-first search (DFS) tree of G rooted at a vertex r. Depth of T is the length of a longest path from root to a leaf. Let q be the depth of T . Which of the following statements are true?
Solution
Comprehension Passage
In this given subquestion, we will examine the relationship of treewidth with other graph
parameters.
parameters.
Solution
Comprehension Passage
Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
If the ILP is feasible, its optimal solution must be greater than or equal to 54.3
Solution
Comprehension Passage
Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
If the ILP is feasible, its optimal solution must be less than or equal to 54.3.
Solution
Comprehension Passage
Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
It is possible that the ILP’s optimal solution (if it exists) will be 50 ×102331.
Solution
Comprehension Passage
Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
It is possible that the ILP’s optimal solution (if it exists) will also be 54.3.
Solution
Comprehension Passage
Suppose we are given an ILP which seeks to minimize an objective functions subject to constraints. We solve the LP relaxation and find an optimal solution with the objective evaluating to 54.3.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
What can you say about the original ILP?
Based on the above data, answer the given subquestions.
The ILP is guaranteed to be feasible.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
What is the size of each Ai?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
For n = 4, calculate the number of sequences of length 3 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
For n = 6, calculate the number of sequences of length 5 consisting only of numbers 0, 1, and 2 such that each number occurs at least once.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
How many numbers in the interval [1; r] are divisible by pi ? The answer to this question is:
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
The final answer is:
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
Comprehension Passage
Based on the above data, answer the given subquestions.
After modifying the input instance, we can solve DISJOINT CLUSTER VERTEX DELETION by solving a matching problem on a bipartite graph.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
DISJOINT CLUSTER VERTEX DELETION is NP-Hard.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Shape
Thickness [ / ]
3
All colors