Generally speaking, most configurations align every row of stars with the gaps of the previous row, making the stars less cramped.
总的说来,多数模式中每行星星的排列将对准上一行星星之间的空隙,插空排列,以使得其更为舒展。
If you need only to compute the distance and not alignments, as is usually the case, it is easy to reduce this to o (n), since only the previous row is required to compute the next.
如果您只需要计算距离,不需要校准,就像通常情况那样,那么可以很容易地把空间需求降到O (n),因为计算下一行只需要前面一行。
If you need only to compute the distance and not alignments, as is usually the case, it is easy to reduce this to o (n), since only the previous row is required to compute the next.
如果您只需要计算距离,不需要校准,就像通常情况那样,那么可以很容易地把空间需求降到O (n),因为计算下一行只需要前面一行。
应用推荐