GATEverse
← GATE CSE 2005

Q84a

MCQMarks unknown

We are given 99 tasks T1,T2,…,T9T_1, T_2, \dots, T_9. The execution of each task requires one unit of time. We can execute one task at a time. Each task TiT_i has a profit PiP_i and a deadline did_i. Profit PiP_i is earned if the task is completed before the end of the dithd_i^{th} unit of time.

TaskT1 T2T3T4T5T6T7T8T9Profit15 2030181810231625Deadline725345273\begin{array}{|l|l|l|l|l|l|l|l|l|}\hline \textbf{Task} & \text{$T_1$ } & \text{$T_2$}& \text{$T_3$} & \text{$T_4$} & \text{$T_5$} & \text{$T_6$} & \text{$T_7$} & \text{$T_8$} & \text{$T_9$} \\\hline \textbf{Profit} & \text{$15$ } & \text{$20$}& \text{$30$} & \text{$18$} & \text{$18$} & \text{$10$} & \text{$23$} & \text{$16$} & \text{$25$} \\\hline \textbf{Deadline} & \text{$7$} & \text{$2$} & \text{$5$} & \text{$3$} & \text{$4$} & \text{$5$} & \text{$2$} & \text{$7$} & \text{$3$} \\\hline \end{array}

Are all tasks completed in the schedule that gives maximum profit?

Sign in to save attempts.

Loading…