d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Tip For Hw Help
Add Reply New Topic New Poll
Member
Posts: 1,847
Joined: Dec 7 2012
Gold: 26,263.00
Apr 6 2022 03:48pm
A monster chases you into a dungeon, you have a map of the dungeon drawn as an undirected graph. currently you are at the vertex with the only door to the dungeon. you can cross 1 edge per time step, but after the first time step the monster enters the door and after that it also crosses 1 edge per time step, crossing the same sequence of edges you did( so it is always 1 step behind you unless you stop moving). Sketch an efficient algorith that tells you if there's a way you can double back to the door while avoiding the monsters. so you can escape and lock the monster in teh dungeon.

tip for help, tyvm in advance
Member
Posts: 4,033
Joined: Dec 4 2018
Gold: 46,369.16
Apr 7 2022 03:08am
djikstra or A*
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll