Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b472d03

Browse files
committed
Update - divide-and-conquer-dp.md
1 parent f66efd9 commit b472d03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dynamic_programming/divide-and-conquer-dp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ int solve() {
8080
### Things to look out for
8181
8282
The greatest difficulty with Divide and Conquer DP problems is proving the
83-
monotonicity of $opt$. Many Divide and Conquer DP problems can also be solved
84-
with the Convex Hull trick or vice-versa. It is useful to know and understand
85-
both!
83+
monotonicity of $opt$. One special case where this is true is when the cost function satisfies the quadrangle inequality, i.e., $C(a, c) + C(b, d) \leq C(a, d) + C(b, c)$ for all $a \leq b \leq c \leq d$.
84+
Many Divide and Conquer DP problems can also be solved with the Convex Hull trick or vice-versa. It is useful to know and understand
85+
both!
8686
8787
## Practice Problems
8888
- [AtCoder - Yakiniku Restaurants](https://atcoder.jp/contests/arc067/tasks/arc067_d)

0 commit comments

Comments
 (0)