我正在实现一个算法,这个算法在计算上非常复杂,我想确保我没有做不必要的工作。
存在一个n=2立方格,例如,如果n=2由(0,0,0,0,1,0),(1,0,0,0),(1,1,0),(0,1,1),(0,0,1,1),(1,0,1,1),(1,1,1)组成。
在这个格中,我将递归地生成所有m点集,类似于:
solve(set_of_points) {
if set_of_points.size = m, finish
do some useful computation here
for each point in lattice not in set_of_