Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
20.3. Proof of Correctness
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
2 cards from this lesson. Good the night before a test.
Try these first
- 1.
Define 'lateness' in scheduling.
Hint
Think about what happens when a job is done late.
- 2.
What is a greedy algorithm?
Hint
Consider how these choices are evaluated.
- 3.
What is the primary goal of the Minimizing Lateness problem?
- Minimize average lateness
- Minimize maximum lateness
- Maximize finish time
Hint
Think about which job's lateness affects the overall metric.
- 4.
True or False: A greedy algorithm always guarantees an optimal solution.
- True
- False
Hint
Evaluate instances of greedy failure.
- 5.
Given five jobs with durations 1, 2, 3, 4, 5 and deadlines 1, 2, 3, 4, 5 respectively, arrange them to minimize lateness.
Hint
Check for any jobs that are initially late when plotted together.
- 6.
If you have ten jobs with varying durations and overlapping deadlines, create a table comparing which scheduling order minimizes maximum lateness.
Hint
Make detailed time calculation for finishes to track lateness effectively.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting