CS FundamentalsVery hardProduct company interview · GATE level

Activities (duration in days; predecessors): A (4; -), B (6; -), C (3; A), D (5; A), E (4; B, C), F (7; B), G (3; D, E), H (2; F, G), I (6; D). The project ends when H and I are both done. What is the project duration, and what are the total float and free float of activity D?

  1. A. 16 days; D has total float 1 and free float 1
  2. B. 16 days; D has total float 1 and free float 0
  3. C. 15 days; D has total float 0 and free float 0
  4. D. 16 days; D has total float 2 and free float 0

Correct answer: B. 16 days; D has total float 1 and free float 0

Forward pass: A 0-4, B 0-6, C 4-7, D 4-9, E 7-11 (waits for C), F 6-13, G 11-14 (waits for E), H 14-16, I 9-15. Duration 16 days along A-C-E-G-H. Backward pass: G must finish by 14, so D's latest finish is min(G's latest start 11, I's latest start 10) = 10; total float = 10 - 9 = 1. Free float = earliest start of D's successors minus D's earliest finish = min(G at 11, I at 9) - 9 = 0, because I can start the moment D finishes. A 1-day slip in D eats into I's float without delaying the project; three other paths (A-D-I, B-E-G-H, B-F-H) are 15 days long.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic