Pagini recente » Diferente pentru usaco-ian-2005-divizia-gold intre reviziile 17 si 18 | Diferente pentru blog/putina-istorie-acm-icpc-seerc intre reviziile 7 si 8 | Diferente pentru blog/matei-zaharia intre reviziile 4 si 3 | Diferente pentru runda/simulare_lot_seniori_1 intre reviziile 3 si 2 | Diferente pentru blog/meet-in-the-middle intre reviziile 71 si 70
Nu exista diferente intre titluri.
Diferente intre continut:
bq. Find the shortest path between two nodes nodes in a large graph which you can’t keep in memory, for example the Facebook friendship graph.
The usual approach is to use a bread first search algorithm. If the distance between two nodes is $k$ and the average degree in the network is $p$ then we explore $O(p^k^)$ nodes.
One neat idea is instead of starting the search from one node, start from both and see when the two search spaces meet. This way we only go through $O(p^k/2^)$ nodes.
One neat idea is instead of starting the search from one node, start from both and see when the two search spaces meet. If the distance between two nodes is $k$ and the average branching factor in the network is $p$ then we explore $O(p^k/2^)$ nodes instead of $O(p^k^)$ nodes.
This approach works well on both path finding problems on explicit graphs and on implicit state graphs like ones in games.
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.