So, I have been doing research about solving the Game Strategy problem of ICPC 2014 (page 7).
This consist in a board game with n boxes, each box have a unique set of paths that goes to another box on the board (can have a path that goes to itself). I think a graph would be a good representation of the game, more specific a directed graph
graphic case representation whit n = 2
I found 2 possible algorithms that should solve the problem:
1.- A YouTube video where it says that i should use the Breadth-first search
2.- Blog commenting the solution of some of the problems of that ICPC year. The author says that DP (dynamic programming) can be used. In Wikipedia's page is explained an algorithm called Dijkstra's algorithm which is used for "the shortest path problem" as the page says.
Is one of these algorithms an better solution for the problem? does one of those have better performance or something like that?