wow, this is the most amazing MATLAB BFS implementations i've ever seen, and you're doing it with 2 roots at once. I'm seriously impressed. also, using sparse to make the graph from the maze matrix is genius
i am no match for your usage of the "sparse" function. I really need to learn more about it.
Select every other element of a vector
20907 Solvers
Generate N equally spaced intervals between -L and L
573 Solvers
423 Solvers
Find last zero for each column
250 Solvers
2490 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!