5.Apply the greedy algorithm to solve the activity-selection problem of the following instances. There are 9 activities.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
5.Apply the greedy algorithm to solve the activity-selection problem of the following instances. There are 9 activities.
5.Apply the greedy algorithm to solve the activity-selection problem of the following instances. There are 9 activities. Each activity i has start time si and finish time fi as follows. s1=0 f1=4, s2=1 f2=5, s3=6 f3=7, s4=6 f4=8, s5=0 f5=3, s6=2 f6=10, s7=5 f7=10, S8=4 f8=5and s9=8 f9=10. Activity i take places during the half-open time interval (si,fi). What is the maximize-size set of mutually compatible activities? Your answer
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!