A
A
Alexander2020-10-29 22:08:02
Data recovery
Alexander, 2020-10-29 22:08:02

How to implement depth-first search without recursion and if there are many ring links?

There is a two-dimensional array and a finite number of cells next to the same data value.
need to bypass them

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan Ganeev, 2016-05-16
@GaneevRR

Comrade, you should be more careful with the movements of your hands. You yourself know how to restore, drill to solder, but I think you will not be able to do this. If the data is needed, take it to the SC where they can do it. Respect for honesty! )

X
xmoonlight, 2020-10-29
@xmoonlight

Make an "index" (as in books).

W
Wataru, 2020-10-30
@wataru

If the recursion fails, then do not traverse in depth, but traverse in breadth (with a queue).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question