Question 1
Trains and their scheduled times (arrival, departure):
- Train 1: 0:00 → 2:00
- Train 6: 0:00 → 3:00
- Train 5: 4:00 → 7:00
- Train 4: 11:00 → 14:00
- Train 3: 12:00 → 16:00
- Train 2: 18:00 → 22:00
What is the minimum number of platforms needed to avoid conflicts?
Step-by-step solution:
1. Sort trains by arrival time
2. Greedy platform allocation
3. Maximum overlapping trains: 2
Answer: 2 platforms
1. Sort trains by arrival time
2. Greedy platform allocation
3. Maximum overlapping trains: 2
Answer: 2 platforms