Quiz Space

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

Question 8: Consider the following greedy approach to find the Longes…

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 8 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.

More questions from this paper

  1. Q1Figure question
  2. Q2Figure question
  3. Q3Figure question
  4. Q4A popular conference is being held, and there are several types of seats: VIP, Regular, and Economy. Each type of seat …
  5. Q5Let A be a decision problem. Suppose:\ A is in NP • A is NP-hard\ Which of the following must be true?
  6. Q6Figure question
  7. Q7Figure question
  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 .