Questions tagged as 'dfs'

1
answer

Deep Search with Prolog - how to limit depth?

I'm implementing an in-depth search on graphs in Prolog, I already have the following: %arestas: edge(c4,b4). edge(b4,b3). edge(b3,a3). edge(b3,c3). %determina que o grafo é nao direcionado edge(V1, V2) :- edge(V2, V1). %busca em profundida...
asked by 25.10.2018 / 21:02