Interval Scheduling Optimality of greedy with EFT Another standard method is induction Both ir+1 and jr+1 were compatible with the previous selection (1=1,..., ir = jr) ➤ Consider the solution i₁, 2, ..., ir, ir+1, Jr+2, ..., Jm o It should still be feasible (since fir ⚫ It is still optimal fir+z) ⚫ And it matches with greedy for one more step (contradiction!) Greedy: OPT: J: job finishes before J J+s From the following chose the correct answer: a. When we replace J₁+1 with i+₁ in OPT, we are guaranteed i₁ is not selected as a job in OPT b. When we replace Jr+1 with i√+1 in OPT, i++₁ maybe selected as a job in OPT with index greater than Jr+1 c. When we replace Jr+1 with Ir+₁ in OPT, I++₁ maybe selected as a job in OPT with index smaller than Jr+1 d. None of the above
Interval Scheduling Optimality of greedy with EFT Another standard method is induction Both ir+1 and jr+1 were compatible with the previous selection (1=1,..., ir = jr) ➤ Consider the solution i₁, 2, ..., ir, ir+1, Jr+2, ..., Jm o It should still be feasible (since fir ⚫ It is still optimal fir+z) ⚫ And it matches with greedy for one more step (contradiction!) Greedy: OPT: J: job finishes before J J+s From the following chose the correct answer: a. When we replace J₁+1 with i+₁ in OPT, we are guaranteed i₁ is not selected as a job in OPT b. When we replace Jr+1 with i√+1 in OPT, i++₁ maybe selected as a job in OPT with index greater than Jr+1 c. When we replace Jr+1 with Ir+₁ in OPT, I++₁ maybe selected as a job in OPT with index smaller than Jr+1 d. None of the above
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 3 images