Quiz Space

Advanced Algorithms · Quiz 1 · 15 Mar 2026 · January 2026 term

Question 4: A popular conference is being held, and there are several…

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 4 of 16 in the IIT Madras BS Advanced Algorithms (Advanced Algorithms) Quiz 1 paper sat on 15 Mar 2026, in the January 2026 term (Advanced Algorithms 15 Mar 26). It carries 3 marks.

This question was also asked in

More questions from this paper

  1. Q1Figure question
  2. Q2Figure question
  3. Q3Figure question
  4. Q5Let A be a decision problem. Suppose:\ A is in NP • A is NP-hard\ Which of the following must be true?
  5. Q6Figure question
  6. Q7Figure question
  7. Q8Consider the following greedy approach to find the Longest Increasing Subsequence (LIS):\ Select the first element of t…
  8. Q9Which of the following expressions should replace the blank( _ ) so that the algorithm correctly computes the LIS lengt…
  9. Q10Figure question
  10. Q11Figure question
  11. Q12Which of the following expressions should replace the blank( _ ) so that the algorithm correctly computes the maximum s…
  12. Q13A university wants to cover all departments {1,2,3,4,5,6,7,8,9} using the minimum number of workshops. Each workshop ca…
  13. Q14Consider the following tree: What is the size of the maximum independent set of this tree?
  14. Q15Let G be a bipartite graph with:\ Total number of vertices = 20 • Size of maximum matching = 8\ What is the size of the…
  15. Q16The value of the maximum flow in the given network is .