Quiz Space

Advanced Algorithms · Quiz 2 · 1 Dec 2024 · September 2024 term

Question 6: We are given a list of students and classes they are requ…

Question 6

+1 markOne correct option

We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign up for some number of courses. Further, each student needs to sign up for a set number of science courses and humanities courses.

Concretely, suppose you have this input: The classes are Bio101, Bio201, Phil101, and Phil201 (Bio classes are all science and Phil are humanties). The students are Alice and Bob. Every class has a capacity of 3 and each student MUST take exactly 2 science and 2 humanities (4 courses total)

Alice is interested in Bio101, Phil101, and Phill201. Bob is interested in Bio101, Bio201, and Phil101.

The flow network below is the beginning of a reduction to max-flow. The subquestions will ask you to label the graph to finish the reduction and answer a question about the reduction.

In particular, label each node with what it represents in the context of the input above. Some of these labels have been given to you to get you started: e.g, V1V_1 is Alice, V3V_3 is Science, V7V_7 is Bio 101 and V2V_2 is Bob.

(Note: this example may not be satisfiable.)

Based on the above data answer the given subquestions.

  1. A
  2. B
Show answer

Correct answer

  • A

Question 6 of 26 in the IIT Madras BS Advanced Algorithms (Advanced Algorithms) Quiz 2 paper sat on 1 Dec 2024, in the September 2024 term (IIT M DEGREE AN EXAM QDB2 01 Dec 2024). It carries 1 mark.

More questions from this paper

  1. Q1Based on the above data answer the given subquestions.
  2. Q2Consider the following reduction from 3-PARTITION to 2-PARTITION: let {a_1, \ldots, a_{3n}} be the instance of 3-PARTIT…
  3. Q3Consider the following reduction from 3-PARTITION to 2-PARTITION: let {a_1, \ldots, a_{3n}} be the instance of 3-PARTIT…
  4. Q4Based on the above data answer the given subquestions.
  5. Q5We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  6. Q7We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  7. Q8We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  8. Q9We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  9. Q10We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  10. Q11We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  11. Q12We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  12. Q13We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  13. Q14We are given a list of students and classes they are requesting. Each class has a capacity and each student must sign u…
  14. Q15Based on the above data answer the given subquestions.
  15. Q16Observe that for a given \pi, the length of the corresponding superstring s(\pi), which is obtained by writing the inpu…
  16. Q17We define an overlap graph OG(\mathcal{S}) associated with \mathcal{S} as follows: OG(\mathcal{S}) is a complete direct…
  17. Q18Based on the above data answer the given subquestions.
  18. Q19Figure question
  19. Q20Figure question
  20. Q21Figure question
  21. Q22Figure question
  22. Q23Figure question
  23. Q24Figure question
  24. Q25Figure question
  25. Q26Figure question