Computer Science EngineeringHardISRO SC (CS)

Job sequencing with deadlines (each job takes 1 unit; profit earned only if finished by its deadline). Jobs as (deadline, profit): (3,22) (2,18) (2,18) (3,19) (2,48). The maximum total profit is:

  1. A. 94
  2. B. 100
  3. C. 89
  4. D. 82

Correct answer: C. 89

Greedy by profit, placing each job in the latest free slot <= its deadline: profit 89 from 3 job(s).

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic