Of the Children: Difference between revisions
Jump to navigation
Jump to search
imported>Kmk21 Created page with "BFS state explotion. State would have to be list of cities visited, city we're at, and amount of money we have. Then binary search across starting $ to find the minimum needed..." |
imported>Kmk21 No edit summary |
||
Line 1: | Line 1: | ||
BFS state | BFS state explosion. state is city we're at and amount of money we have. Optimize for lowest "debt" incurred. Solution is the minimum debt that gets you to the final city with any amount of money. That debt is the amount you have to start with to ensure you have enough. | ||
Very similar to [[Full Tank?]] | |||
[[Category:ICPC Problems]] | |||
[[Category:Midatl2015]] | |||
[[Category:Algorithm Medium]] | |||
[[Category:Implementation Easy]] | |||
[[Category:BFS]] | |||
[[Category:State Explosion]] | |||
Latest revision as of 04:01, 27 August 2016
BFS state explosion. state is city we're at and amount of money we have. Optimize for lowest "debt" incurred. Solution is the minimum debt that gets you to the final city with any amount of money. That debt is the amount you have to start with to ensure you have enough.
Very similar to Full Tank?