We are given 9 tasks T1, T2.... T9. The execution of each task requires one…

PYQ GATE 2005

We are given 9 tasks T1, T2.... T9. The execution of each task requires one unit of time. We can execute one task at a time. Each task Ti has a profit Pi and a deadline di Profit Pi is earned if the task is completed before the end of the dith unit of time.

Task     T1  T2	 T3  T4  T5  T6	 T7 T8  T9
Profit   15  20	 30  18  18  10	 23 16  25
Deadline 7   2 	 5   3 	 4   5 	 2  7   3 

What is the maximum profit earned?

  1. A.

    147

  2. B.

    165

  3. C.

    167

  4. D.

    175

Attempted by 270 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…