Chapter 5 Dynamic Programming Flashcards

(13 cards)

1
Q

What are the two main properties of problems suited for dynamic programming?

A

Optimal substructure and overlapping subproblems.

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

In the context of shortest-path problems, what does δ(u, v) represent?

A

The minimum path weight between vertices u and v.

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

What is the key idea behind ForwardRecursion for multi-stage graphs?

A

Compute shortest path lengths stage by stage using previously computed values.

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

Why are cycles not allowed in optimal solutions for shortest-path problems with positive weights?

A

Because cycles would increase the total weight, not reduce it.

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

What data structure does Dijkstra’s algorithm rely on for efficiency?

A

A priority queue.

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

What is the complexity of Dijkstra’s algorithm with a priority queue?

A

O(|E| + |V| log |V|).

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

What is a subsequence?

A

A sequence derived by deleting some elements of another sequence without changing the order of the remaining elements.

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

What does the LCS problem aim to find?

A

The longest common subsequence between two sequences.

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

What matrix is used to solve the LCS problem via dynamic programming?

A

Matrix c[i, j], storing LCS length of prefixes X1:i and Y1:j.

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

What does the b matrix represent in LCS algorithm?

A

The direction from which the LCS value was derived (←, ↑, ↖).

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

What is the filtering problem in HMMs?

A

Computing P(Xt = xt | Y1:t = y1:t), the probability of the hidden state given observed data.

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

How does the filtering algorithm use dynamic programming?

A

By storing and updating a vector mt(xt) recursively using only the previous step’s results.

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

What simplification is made in the filtering model?

A

The Markov condition: Xt depends only on Xt−1, and Yt only on Xt.

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