Hello,I'm very interested how to build a suffix array for a 2D matrix?.Can someone help me.Thanks...
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
4 | atcoder_official | 161 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
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