Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Graph Traversal

5

Flashcards

0/5

Still learning
StarStarStarStar

Bellman-Ford Algorithm

StarStarStarStar

The Bellman-Ford Algorithm calculates shortest paths from a single source vertex to all other vertices in a weighted digraph. It's capable of handling graphs with negative weight edges. Example use-case: Dynamic routing systems where routes have varying costs.

StarStarStarStar

A* Search Algorithm

StarStarStarStar

A* Search is used to find the shortest path between nodes in a graph. It combines features of DFS, BFS, and adds a heuristic to improve the search efficiency. Example use-case: Pathfinding in games and robotics.

StarStarStarStar

Dijkstra's Algorithm

StarStarStarStar

Dijkstra's Algorithm is a method for finding the shortest paths between nodes in a weighted graph. It assumes non-negative edge weights. Example use-case: GPS navigation to find the shortest route.

StarStarStarStar

Breadth-First Search (BFS)

StarStarStarStar

BFS explores the neighbor nodes (children) before moving to the next level neighbors. It's implemented using a queue. Example use-case: To find the shortest path in an unweighted graph.

StarStarStarStar

Depth-First Search (DFS)

StarStarStarStar

DFS explores as far as possible along each branch before backtracking. It's implemented using recursion or a stack. Example use-case: To determine the connectivity between two nodes in a graph.

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.