Algorithm Strategies Flashcards
(6 cards)
1
Q
Dynamic Algorithm
A
store Fibonacci answers so they can be used later.
2
Q
Greedy Algorithm
A
trying the best current (local) choice whenever an algorithm has multiple options it can select from
3
Q
Brute-Force Algorithm
A
trying all of the possible paths to find the shortest path
4
Q
Branch and bound
A
keep track of the cheapest path. Ignore choices that cost more.
5
Q
Heuristic Algorithm
A
Rule of Thumb
6
Q
Backtracking Algorithm
A
tries all of the possible paths by using recursive calls and if it finds the desired path, the recursive calls stop. It uses depth-first search.