Question 1
Recall the Dance Class problem:
Problem Definition
Dance Classes
Input: A collection of intervals given by their left and right endpoints , where for all .
Question: What is the size of the largest collection of mutually pairwise non-overlapping intervals?
On which of the following instances will this algorithm produce a suboptimal answer?
Instance 1:
The number of classes is N = 4
The timings of the classes are given by:
1 - 5
3 - 7
6 - 9
8 - 10
Instance 2:
The number of classes is N = 4
The timings of the classes are given by:
2 - 5
6 - 10
11 - 15
1 - 10
Instance 3:
The number of classes is N = 4
The timings of the classes are given by:
1 - 5
6 - 8
9 - 11
12 - 15
Instance 1
Instance 2
Instance 3
None of these