Recall & Review
beginner
What is the main goal of the Job Scheduling with Deadlines problem?
The goal is to schedule jobs to maximize total profit while ensuring each job is completed before its deadline.
Click to reveal answer
beginner
In Job Scheduling with Deadlines, what does each job typically have?
Each job has a deadline by which it must be completed and a profit earned if completed on time.
Click to reveal answer
intermediate
Why do we sort jobs by profit in descending order in the Job Scheduling algorithm?
Sorting by profit ensures we try to schedule the most profitable jobs first to maximize total profit.
Click to reveal answer
intermediate
How do we decide the time slot for a job in the Job Scheduling with Deadlines algorithm?
We assign the job to the latest available time slot before its deadline to keep earlier slots free for other jobs.
Click to reveal answer
beginner
What data structure is commonly used to track free time slots in Job Scheduling with Deadlines?
An array or list is used to mark which time slots are free or occupied.
Click to reveal answer
What is the first step in the Job Scheduling with Deadlines algorithm?
✗ Incorrect
Sorting jobs by profit ensures we prioritize the most profitable jobs first.
If a job's deadline is 3, which time slots can it be assigned to?
✗ Incorrect
The job can be assigned to any free slot before or on its deadline.
What happens if no free slot is available before a job's deadline?
✗ Incorrect
If no slot is free before the deadline, the job cannot be scheduled.
Which algorithmic approach does Job Scheduling with Deadlines use?
✗ Incorrect
It uses a greedy approach by scheduling the most profitable jobs first.
What is the output of the Job Scheduling with Deadlines algorithm?
✗ Incorrect
The output is the list of jobs scheduled to maximize profit.
Explain the steps to solve the Job Scheduling with Deadlines problem using a greedy approach.
Think about how to pick jobs and assign time slots.
You got /4 concepts.
Describe how to track free time slots when scheduling jobs with deadlines.
Consider how to efficiently find a free slot before deadline.
You got /4 concepts.