필터 지우기
필터 지우기

Finding an optimal rook's tour route using bfsearch function

조회 수: 1 (최근 30일)
Ken Bannister
Ken Bannister 2023년 4월 8일
Hello: How can the optimal path be found for a rook to visit all squares once when some squares on the board are blocked?
For example, consider the situation shown in the attached diagram. The rook starts in the upper left corner and requires
23 moves to visit all the open squares. However, this is not a minimum. I understand the function bfsearch might help seek
the optimal/minimal move path. Also, can row (or rows) be identified which will never allow this minimum to achieved? I have looked at bfsearch but have idea how to use it to solve this problem - if it can be used at all. Does it have to used in some kind of for-next loop, that is to say, the rook has to be placed in each square and the analysis re-run and the results recorded? This is all new to me.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by