Algorithms Flashcards
(6 cards)
Define the A* algorithm
A path finding algorithm that approximately finds the shortest path between two nodes by keeping track of the distance travelled from the source to the current node and the approximate distance from the next node the to the destination (heuristic function)
Define Dijkstra’s Shortest Path Algorithm
An algorithm to find the shortest path between two nodes on a graph by using a priority queue to keep track of the shortest distance to each node from the starting node until the destination node is found
Define an algorithm
A series of steps that completed a task
State the 3 objectives to consider when designing an algorithm
- Completing the task
- Getting the best time complexity
- Getting the best space complexity
How do you reduce space complexity?
perform all the changes on the original pieces of data