How to solve the cable bridge problem using an algorithm?

I was wondering if it is possible to solve this problem with a bridge bridge by searching for a graphical search algorithm:

Feeling brushes says DFS, but how should I determine the state? (That is, if DFS is even the way to go.)

Rope bridge

+5
source share
2 answers

This problem must be solved without a computer.

, , , , , . "", 2 N ⋅L, N - , L - . , , . , , .

, , , ( , , ).

, , , ( ). , , .

+2
0

All Articles