CS FundamentalsVery hardProduct company interview · GATE level

Activities (normal days, crash limit days, crash cost per day saved; predecessors): A (5, 3, ₹400; -), B (7, 5, ₹300; -), C (4, 3, ₹250; A), D (6, 4, ₹500; A), E (3, 2, ₹200; B, C), F (4, 2, ₹350; D). The normal duration is 15 days. What is the minimum extra cost to complete the project in 9 days?

  1. A. ₹3,000
  2. B. ₹2,500
  3. C. ₹2,000
  4. D. ₹2,700

Correct answer: D. ₹2,700

Paths: A-D-F = 15, A-C-E = 12, B-E = 10. A-D-F must lose 6 days, and its cheapest days are F (2 days at 350), then A (2 at 400), then D (2 at 500): 700 + 800 + 1000 = 2,500. But crashing A also shortens A-C-E only to 10, still above 9, so one more day must come off C or E; E at 200 is cheapest (it also shortens B-E, which needs nothing). Total 2,700. Watching only the original critical path gives 2,500; an exhaustive search over all crash combinations confirms 2,700 is the minimum.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic