CPSC 490 DP - Guest Lecture
Part 4: DP Optimizations
David Zheng 2020/01/30
University of British Columbia
CPSC 490 DP - Guest Lecture Part 4: DP Optimizations David Zheng - - PowerPoint PPT Presentation
CPSC 490 DP - Guest Lecture Part 4: DP Optimizations David Zheng 2020/01/30 University of British Columbia Announcements An upsolver for A1 has been released! You can get 25% marks on the questions you didnt solve. 1 Guest Lecturer:
University of British Columbia
1
2
3
4
5
6
7
8
9
10
11
12
13
14
0≤t<i f (t, j − 1) + (xi−1 − xt + 1)2
15
16
17
0≤t<i f (t, j − 1) + (yi−1 − xt + 1)2
18
0≤t<i f (t, j − 1) + (yi−1 − xt + 1)2 − (max(0, yt−1 − xt + 1))2
19
0≤t<i f (t, j − 1) + (yi−1 − xt + 1)2 − (max(0, yt−1 − xt + 1))2
20
i≤t≤j{f (i, t) + f (t, j)}
21
i≤t≤j{f (i, t) + f (t, j)}
A(i,j−1)≤t≤A(i+1,j){f (i, t) + f (t, j)}
22
A(i,j−1)≤t≤A(i+1,j){f (i, t) + f (t, j)}
n−ℓ+1
23
0≤t≤i f (t, j − 1) + (yi−1 − xt + 1)2 − max(0, (yt−1 − xt + 1)2)
24
0≤t<i f (t, j − 1) + (yi−1 − xt + 1)2 − (max(0, yt−1 − xt + 1))2
25
0≤t<i{f (t, j − 1) + cost(i, t, j)}
26
0≤t<i{f (t, j − 1) + cost(i, t, j)}
1
2
3
4
5
6
7
8
9
27
1
2
3
28
0≤t≤i f (t, j − 1) + (yi−1 − xt + 1)2 − max(0, yt−1 − xt + 1)2
29
0≤t≤i f (t, j − 1) + (yi−1 − xt + 1)2 − max(0, yt−1 − xt + 1)2
0≤t≤i f (t, j − 1) + (yi−1 − xt + 1)2 − max(0, (yt−1 − xt + 1)2)
0≤t≤i f (t, j − 1) + y 2 i−1 − 2(xt − 1)yi−1 + (xt − 1)2 − max(0, yt−1 − xt + 1)2
i−1 + min 0≤t≤i −2(xt − 1)yi−1 + f (t, j − 1) + (xt − 1)2 − max(0, yt−1 − xt + 1)2
0≤t≤i Mtyi−1 + Bt
i−1, Mt = −2(xt − 1), and Bt = f (t, j − 1) + (xt − 1)2 − max(0, (yt−1 − xt + 1)2) 30
0≤t≤i f (t, j − 1)
0≤t≤i Mtyi−1 + Bt
i−1, Mt = −2(xt − 1), and Bt = f (t, j − 1) + (xt − 1)2 − max(0, yt−1 − xt + 1)2.
31
32
33
34
0≤t≤i f (t, j − 1) + (yi−1 − xt + 1)2 − max(0, (yt−1 − xt + 1)2)
0≤t≤i gc(t) + (yi−1 − xt + 1)2 − max(0, (yt−1 − xt + 1)2) + c
35
0≤t≤i gc(t) + (yi−1 − xt + 1)2 − max(0, (yt−1 − xt + 1)2) + c
36
37
38
39
40