N
N
nilayovalu2017-06-07 11:24:20
PHP
nilayovalu, 2017-06-07 11:24:20

The best way to find fellow travelers?

What is the best way to find fellow travelers?
Let's say I'm going from A to B. But, along the way there is a fellow traveler F who goes to C, and the road to C passes through B - that's what I need.
What technologies (or API can) apply? I read about Dijkstra's algorithms, but somehow it doesn't seem to fit this task. Or fit? In general, in which direction to dig? I can't find a similar issue anywhere.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2017-06-07
@GavriKos

The usual search for the intersection of paths in a graph.

V
Vitaly, 2017-06-07
@vt4a2h

Just open Cormen and study the chapter on graphs. I think then you will understand a lot, including about which algorithm and why it is better to choose.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question