Algorithms and Data Structures for Programming Contests

Graph Traversal Algorithms (Cont'd)

Regroup (2)

High-level solution?

  1. Perform BFS — not DFS — on the implicit graph defined by knight moves.

What's an "implicit graph"?

Why BFS and not DFS?

To learn more...

Back to Algorithms


© Copyright 2012–2015 François Pitt <francois.pitt@utoronto.ca>
last updated at 08:25 (EST) on Thu 5 Mar 2015
Creative Commons License Algorithms and Data Structures by François Pitt is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.