Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar

level: graph-traversal algorithms + dystraks shortest path alg

Questions and Answers List

level questions: graph-traversal algorithms + dystraks shortest path alg

QuestionAnswer
What are the two types of graph-traversal algorithmsBreadth first Depth first
What is depth first commonly used forDepth-first: Navigating a maze.
Whats breadth first commonly used forBreadth-first: shortest path for an unweighted graph.
How does breadth first workStart with a vertex and print its value. Then we print all the neighbors of the current vertex. After that, we select every neighbor of the current vertex and print all of its neighbors
How does depth first workThe algorithm starts at the root (top) node of a tree and goes as far as it can down a given branch (path), then backtracks until it finds an unexplored path, and then explores it. The algorithm does this until the entire graph has been explored.
What is a applicaiton of Dystras shortest path algorothmGPS devices