Algorithm Strategies Flashcards

(6 cards)

1
Q

Dynamic Algorithm

A

store Fibonacci answers so they can be used later.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Greedy Algorithm

A

trying the best current (local) choice whenever an algorithm has multiple options it can select from

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Brute-Force Algorithm

A

trying all of the possible paths to find the shortest path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Branch and bound

A

keep track of the cheapest path. Ignore choices that cost more.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Heuristic Algorithm

A

Rule of Thumb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly