As with the LCS algorithm, for each cell you have three choices and pick the maximum one.
同lcs算法一样,对于每个单元格,都有三个选择,要从中选择最大的。
2
First we pick a random cell — or actually we pick one more than the cell itself in each dimension, since.shape gives us the length rather than the maximum index.