My first blog post :) Any constructive feedback is welcome.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 156 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
My first blog post :) Any constructive feedback is welcome.
Название |
---|
I think there is a O(N * M * 2N) solution for this problem. DP[i][j][p] = solution where we currently start at point (i, j) and the first i-bits of p belongs to the (j + 1)-column and the rest of the bits belongs to the j-column. And transitions are similar to the last solution. This utilizes the 2N different values of p and q more efficiently (since in the other solution, p cannot have zero bit before the last set bit, and q cannot have set bit after the row we currently stand in).
This is what I think is the actual idea behind broken profile dp.
can you provide a link to the iterative code for the same?
https://vjudge.net/problem/22385/origin
how to solve this
Thanks you very much
Is the blog still available? I have trouble with your link.
Sorry about that. Updated the link :)
Thanks:)
Auto comment: topic has been updated by evilbuggy (previous revision, new revision, compare).
Auto comment: topic has been updated by evilbuggy (previous revision, new revision, compare).
Auto comment: topic has been updated by evilbuggy (previous revision, new revision, compare).