Electric Car Rally: Difference between revisions

From programming_contest
Jump to navigation Jump to search
imported>Kmk21
Created page with "State explosion. State is #which city we're in (500) #how much juice we have (240) Value is what's the earliest we can arrive with that amount of juice. Simply BFS through th..."
 
imported>Kmk21
No edit summary
 
Line 5: Line 5:
Value is what's the earliest we can arrive with that amount of juice.
Value is what's the earliest we can arrive with that amount of juice.


Simply BFS through the states, taking all 20 possible "travel lines" out of the state, or charging up
Simply Dijkstra through the states, taking all 20 possible "travel lines" out of the state, or charging up.


[[Category:ICPC Problems]]
[[Category:ICPC Problems]]
[[Category:Midatl2013]]
[[Category:Midatl2013]]
[[Category:BFS]]
[[Category:Dijkstra]]
[[Category:State Explosion]]
[[Category:State Explosion]]
[[Category:Algorithm Medium]]
[[Category:Algorithm Medium]]
[[Category:Implementation Medium]]
[[Category:Implementation Medium]]

Latest revision as of 06:46, 27 August 2016

State explosion. State is

  1. which city we're in (500)
  2. how much juice we have (240)

Value is what's the earliest we can arrive with that amount of juice.

Simply Dijkstra through the states, taking all 20 possible "travel lines" out of the state, or charging up.