How to program it most effectively?

    1 answer 1

    Wayne Eberle offers a randomized sub-cube algorithm. In addition to the mathematical justification, the article provides pseudocode. I did not implement it myself.

    Standard methods seem to give O (n ^ 3) complexity.