We are given two arrays $$$a$$$ and $$$b$$$ of length $$$n$$$. Consider the following recurrence relation:
We are interested in calculating $$$f(n)$$$. Is there a way to calculate it with the time complexity being better than $$$\mathcal{O}(n^2)$$$?
How to optimize this DP solution
We are given two arrays $$$a$$$ and $$$b$$$ of length $$$n$$$. Consider the following recurrence relation:
We are interested in calculating $$$f(n)$$$. Is there a way to calculate it with the time complexity being better than $$$\mathcal{O}(n^2)$$$?
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en4 |
|
suzie_q | 2022-04-23 02:41:14 | 16 | Tiny change: 'ay $b$ is monotone (ie $b[i] \le' -> 'ay $b$ is increasing (i.e. $b[i] \le' | |
| en3 |
|
suzie_q | 2022-04-23 02:40:30 | 123 | Tiny change: '{O}(n^2)$?' -> '{O}(n^2)$?\n\n**UPD:**' | |
| en2 |
|
suzie_q | 2022-04-22 23:14:22 | 1 | ||
| en1 |
|
suzie_q | 2022-04-22 23:13:37 | 366 | Initial revision (published) |