Hello,I'm very interested how to build a suffix array for a 2D matrix?.Can someone help me.Thanks...
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | Dominater069 | 154 |
8 | awoo | 154 |
10 | luogu_official | 150 |
Hello,I'm very interested how to build a suffix array for a 2D matrix?.Can someone help me.Thanks...
Name |
---|
Can you please explain more concrate what do you want?
We have a matrix: 1 ≤the size of matrix ≤ 400
and integer
k
;for this matrix we need to determine the maximum length of the side of a square area whose model appears in the matrix at least
k
times without rotations. I am think about suffix array in 2D it is possible??in the example above the repeating most often submatrix is
which is repeat 2 time.
I don't have the link of the problem,I only have the problem on paper.
I know how to solve it for O(n2 * log3n) using hashs
1) Binary search for answer
2) Trying all possible matrixes with some side and saving their hashes
3) find most common element in hashes array and compare it with k