uiz Space

January 2026 term · Advanced Algorithms · BSCS4021

Advanced Algorithms Quiz 1: 15 March 2026 (January 2026 term)

The IIT Madras BS Advanced Algorithms (Advanced Algorithms) Quiz 1 paper sat on 15 Mar 2026, in the January 2026 term: 16 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.

Questions
16
Marks
50
Duration
120 min
MCQ
9
MSQ
3
Numerical
4

Updated

Official paper: Advanced Algorithms 15 Mar 26 · No negative marking.

Question 1

+3 marksOne correct option
  1. A

    At each iteration, pick the remaining request with the fewest number of conflicts with other remaining requests (breaking ties arbitrarily).

  2. B

    At each iteration, pick the remaining request with the earliest start time.

  3. C

    At each iteration, pick the remaining request with the earliest finish time.

  4. D
Show answer

Correct answer

  • C

    At each iteration, pick the remaining request with the earliest finish time.

Question 2

+3 marksOne correct option
  1. A

    Only Statement 1 is true

  2. B

    Only Statement 2 is true

  3. C

    Both Statement 1 and Statement 2 are true

  4. D

    Neither Statement 1 nor Statement 2 is true

Show answer

Correct answer

  • D

    Neither Statement 1 nor Statement 2 is true

Question 3

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 4

+3 marksOne correct option

A popular conference is being held, and there are several types of seats: VIP, Regular, and Economy. Each type of seat has a limited number of available spots. Each attendee has a preference for the type of seat they want, and the total number of attendees is greater than the number of available seats. The goal is to allocate the seats to attendees such that each attendee is assigned to their preferred seat type, and no seat type exceeds its capacity.
How can the given problem of allocating seats to attendees based on their preferences and seat type capacities be effectively solved?

  1. A

    Using a greedy algorithm to assign seats based on attendee preferences.

  2. B

    Modeling the problem as a maximum flow network with capacities representing seat limits and flows representing the number of attendees assigned to each seat type.

  3. C

    Implementing a first-come, first-serve approach without considering the preferences or seat type capacities.

  4. D

    Assigning all attendees to the VIP seats first and distributing the remaining attendees among Regular and Economy seats.

Show answer

Correct answer

  • B

    Modeling the problem as a maximum flow network with capacities representing seat limits and flows representing the number of attendees assigned to each seat type.

Question 5

+3 marksOne correct option

Let A be a decision problem. Suppose:
• A is in NP • A is NP-hard
Which of the following must be true?

  1. A

    A is in P

  2. B

    A is NP-complete

  3. C

    A is not solvable in polynomial time

  4. D

    P = NP

Show answer

Correct answer

  • B

    A is NP-complete

Question 6

+3 marksOne correct option
  1. A

    True

  2. B

    False

Show answer

Correct answer

  • A

    True

Question 7

+3 marksOne correct option
  1. A

    True

  2. B

    False

Show answer

Correct answer

  • B

    False

Question 8

+3 marksOne or more correct options

Consider the following greedy approach to find the Longest Increasing Subsequence (LIS):
Select the first element of the list. Then repeatedly select the next element that is strictly larger than the last selected element.
On which of the following inputs does this greedy algorithm give an incorrect answer?

Select all that apply.

  1. A

    [1, 3, 5, 7, 9, 11, 13, 15, 17, 19]

  2. B

    [20, 18, 16, 14, 12, 10, 8, 6, 4, 2]

  3. C

    [15, 1, 2, 3, 4, 5, 6, 7, 8, 16]

  4. D

    [2, 9, 3, 6, 5, 1, 7, 8, 4, 10]

Show answer

Correct answers

  • C

    [15, 1, 2, 3, 4, 5, 6, 7, 8, 16]

  • D

    [2, 9, 3, 6, 5, 1, 7, 8, 4, 10]

Question 9

+3 marksOne correct option

Which of the following expressions should replace the blank( ___ ) so that the algorithm correctly computes the LIS length?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 10

+3 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • C

Question 11

+3 marksOne or more correct options

Select all that apply.

  1. A

    There is a polynomial-time reduction from BoxDepth to MaxClique.

  2. B

    There is a polynomial-time algorithm for BoxDepth.

  3. C
  4. D

    BoxDepth can be solved in polynomial time by sweeping a vertical line and maintaining the maximum number of overlapping rectangles at any point.

Show answer

Correct answers

  • A

    There is a polynomial-time reduction from BoxDepth to MaxClique.

  • B

    There is a polynomial-time algorithm for BoxDepth.

  • D

    BoxDepth can be solved in polynomial time by sweeping a vertical line and maintaining the maximum number of overlapping rectangles at any point.

Question 12

+4 marksOne correct option

Which of the following expressions should replace the blank( ___ ) so that the algorithm correctly computes the maximum sum subarray?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 13

+3 marksNumerical answer

A university wants to cover all departments {1,2,3,4,5,6,7,8,9} using the minimum number of workshops. Each workshop can train certain departments.
Workshops and coverage:
• W1: {1, 2, 3, 4} • W2: {3, 5, 6} • W3: {2, 7, 8} • W4: {4, 6, 9} • W5: {1, 5, 8}
What is the minimum number of workshops required to cover all departments?

Show answer

Correct answer: 4

Question 14

+3 marksNumerical answer

Consider the following tree:

What is the size of the maximum independent set of this tree?

Show answer

Correct answer: 4

Question 15

+3 marksNumerical answer

Let G be a bipartite graph with:
• Total number of vertices = 20 • Size of maximum matching = 8
What is the size of the maximum independent set in G?

Show answer

Correct answer: 12

Question 16

+4 marksNumerical answer

The value of the maximum flow in the given network is______ .

Show answer

Correct answer: 14