2.1 Greedy Algorithms Flashcards

1
Q

What is the interval scheduling problem

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the correct greedy algorithm to the interval scheduling problem (idea and psuedo-code)

A
  • Greedy: Always pick the element with first finish time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the properties of a greedy algorithm

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some incorrect greedy algorithms to the interval scheduling problem (ideas)

A
  • Choosing the first starting interval
  • Choosing the shortest intervals
How well did you know this?
1
Not at all
2
3
4
5
Perfectly