Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (sanaelshazly):

You are given n events where each takes one unit of time. Event i will provide a profit of gi dollars (gi > 0) if started at or before time ti, where ti is an arbitrary real number. (Note: If an event is not started by ti then there is no benefit in scheduling it at all. All events can start as early as time 0.) Given the most efficient algorithm you can to find a schedule that maximizes the profits. Example: Sample Input : V1 v2 v3 v4 v5 v6 v7 v8 Events ti: 0.1 1.3 2.1 2.2 4.4 4.5 5.1 5.2 Events gi 5 6 6 3 5

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
17 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
20 hours ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Arizona: does anyone know the percentage rate of 30,000 and 40,000
1 week ago 0 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!