Documentation

Complexity.Algorithms.WordRAM.ExactTriangle.Parameters

Native ExactTriangle splitting parameters #

The program computes the existing integer parameters sOf, queryCap, pieceSize and numPieces. Both square roots call the charged native successive-squares program; all products, quotients and ceilings are native instructions. The modulus is supplied separately by the outer prime-selection host.

Main definitions #

Main results #

@[reducible, inline]

Square-root input and arithmetic scratch.

Instances For
    @[reducible, inline]

    Square-root result.

    Instances For
      @[reducible, inline]

      Input matrix side.

      Instances For
        @[reducible, inline]

        Target middle dimension.

        Instances For
          @[reducible, inline]

          Piece-size divisor.

          Instances For
            @[reducible, inline]

            Output floor square root of the middle dimension.

            Instances For
              @[reducible, inline]

              Output query chunk capacity.

              Instances For
                @[reducible, inline]

                Output maximum piece length.

                Instances For
                  @[reducible, inline]

                  Output number of pieces.

                  Instances For
                    @[reducible, inline]

                    Square of the outer dimension.

                    Instances For
                      @[reducible, inline]

                      Constant one, outside the square-root register bank.

                      Instances For

                        Runtime arithmetic between the square roots.

                        Instances For

                          Both natural ceilings use the existing (a+b-1)/b convention, including zero divisors.

                          Instances For

                            Fixed code; only the square-root loops depend on the runtime inputs.

                            Instances For

                              Compute the finite splitting parameters from actual runtime dimensions. The two explicit ceiling-addition fits cover their temporary sums, and the fourth-power bound covers the square formed before dividing by D. The final halt is excluded.