MauryaHub PYQ Practice

Advanced Algorithms · End Term · Sep 2023 · AN

Advanced Algorithms · End Term · Sep 2023 AN

← Course papers · Start practice / exam

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

0 / 24 published solutions

Question 2 NAT · 2.0 marks

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

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 NAT · 2.0 marks

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

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532338410.Source diagram or notation
6406532338411.Source diagram or notation
6406532338412.Source diagram or notation
6406532338413.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
If we have to pick q continuous rest days, it is optimal for us to choose:
6406532338414.
the first q days of the term
6406532338415.
the last q days of the term
6406532338416.
the middle q days of the term
6406532338417.
it makes no difference

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 2.0 marks

Source diagram or notation
6406532338418.
TRUE
6406532338419.
FALSE

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 3.0 marks

Choose the correct
6406532338420.Source diagram or notation
6406532338421.Source diagram or notation
6406532338422.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 3.0 marks

Source diagram or notation
6406532338423.
0
6406532338424.
1
6406532338425.
2
6406532338426.
3

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 2.0 marks

You have been given a R × C chessboard, with a list of squares cut out. This problem will involve placing rooks on a chessboard, so that they cannot attack each other. For a rook to attack a target piece, it must share the same row or column as the target. Find the maximum number of rooks that can be placed on the chessboard, such that no pair of rooks can attack each other. Rooks cannot be placed on cut out squares. The cut out squares do not affect where the rooks can attack. Based on the above data, answer the given subquestions.
What is the answer if R = C = N and there are no cut out squares?
6406532338427.Source diagram or notation
6406532338428.Source diagram or notation
Source diagram or notation
6406532338429.Source diagram or notation
6406532338430.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 2.0 marks

You have been given a R × C chessboard, with a list of squares cut out. This problem will involve placing rooks on a chessboard, so that they cannot attack each other. For a rook to attack a target piece, it must share the same row or column as the target. Find the maximum number of rooks that can be placed on the chessboard, such that no pair of rooks can attack each other. Rooks cannot be placed on cut out squares. The cut out squares do not affect where the rooks can attack. Based on the above data, answer the given subquestions.
What is the answer if R = C = N and all the squares on the topmost row and rightmost column (i.e, a L-shape) are cut out?
6406532338431.Source diagram or notation
6406532338432.Source diagram or notation
6406532338433.Source diagram or notation
6406532338434.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 2.0 marks

You have been given a R × C chessboard, with a list of squares cut out. This problem will involve placing rooks on a chessboard, so that they cannot attack each other. For a rook to attack a target piece, it must share the same row or column as the target. Find the maximum number of rooks that can be placed on the chessboard, such that no pair of rooks can attack each other. Rooks cannot be placed on cut out squares. The cut out squares do not affect where the rooks can attack. Based on the above data, answer the given subquestions.
Consider the following bipartite graph: the set A is composed of elements corresponding to every row of the board, while set B consists of the columns. For each row add edges to every column if the corresponding square is not cut out of the board. What does the answer correspond to in this graph?
6406532338435.
the maximum vertex degree
6406532338436.
the number of edges in a minimum spanning forest
6406532338437.
the size of a maximum matching
6406532338438.
none of these

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 2.0 marks

You have been given a R × C chessboard, with a list of squares cut out. This problem will involve placing rooks on a chessboard, so that they cannot attack each other. For a rook to attack a target piece, it must share the same row or column as the target. Find the maximum number of rooks that can be placed on the chessboard, such that no pair of rooks can attack each other. Rooks cannot be placed on cut out squares. The cut out squares do not affect where the rooks can attack. Based on the above data, answer the given subquestions.
What is the maximum number of edges that the graph constructed in the previous question can have?
6406532338439.
R.C
6406532338440.
R + C
6406532338441.
R\(^{2}\)
6406532338442.
C\(^{2}\)

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532338443.Source diagram or notation
6406532338444.Source diagram or notation
6406532338445.Source diagram or notation
6406532338446.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532338447.Source diagram or notation
6406532338448.Source diagram or notation
6406532338449.Source diagram or notation
Source diagram or notation
6406532338450.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 NAT · 1.0 marks

The three-bonaci numbers are defined as follows (please read the definition carefully, as it may not be the generalization of the popular Fibonacci numbers that you might expect):
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 NAT · 1.0 marks

The three-bonaci numbers are defined as follows (please read the definition carefully, as it may not be the generalization of the popular Fibonacci numbers that you might expect):
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 NAT · 1.0 marks

The three-bonaci numbers are defined as follows (please read the definition carefully, as it may not be the generalization of the popular Fibonacci numbers that you might expect):
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 3.0 marks

Source diagram or notation
6406532338454.
In both branches of the algorithm, at least one clause is falsified.
6406532338455.
In both branches of the algorithm, at least one clause is satisfied.
6406532338456.
In both branches of the algorithm, at least two clauses are falsified.
6406532338457.
In both branches of the algorithm, at least two clauses are satisfied.

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 2.0 marks

Consider the given statements and answer 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.
6406532338458.
TRUE
6406532338459.
FALSE

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MCQ · 2.0 marks

Consider the given statements and answer if they are true or false.
Source diagram or notation
6406532338460.
TRUE
6406532338461.
FALSE

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MCQ · 2.0 marks

Answer the given subquestions.
Every linear program has a unique optimal solution.
6406532338462.
TRUE
6406532338463.
FALSE

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 MCQ · 2.0 marks

Answer the given subquestions.
Source diagram or notation
6406532338464.
Yes
6406532338465.
No

A published solution is not available for this question yet.

Report a correction for Q22

Question 23 MCQ · 2.0 marks

Answer the given subquestions.
Consider the algorithm in the previous question. Does the algorithm always output an optimal vertex cover?
6406532338466.
Yes
6406532338467.
No

A published solution is not available for this question yet.

Report a correction for Q23

Question 24 MCQ · 2.0 marks

Answer the given subquestions.
Consider the algorithm in the previous question no 22. Does the algorithm always output a 2- approximate vertex cover?
6406532338468.
Yes
6406532338469.
No

A published solution is not available for this question yet.

Report a correction for Q24

Question 25 MCQ · 2.0 marks

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.
6406532338470.
Yes
6406532338471.
No

A published solution is not available for this question yet.

Report a correction for Q25