Documentation

Complexity.Algorithms.WordRAM.ThreeSum.ChanHe.PreprocessingTime

Subquadratic charged native preprocessing cost #

The bound counts complete initialized-input execution, trial division, all descriptor loads, every recursion transition, native collision/heavy computation, array writes and the final halt. Its polynomial factor is (n+2)(sqrt(n+2)+1) and its logarithm has fixed degree thirteen.

Main definitions #

Main results #

These charged estimates are original. The existing mathematical prime/instance bounds are reused.

Uniform complete-root coefficient after substituting the actual candidate bound.

Instances For

    Explicit whole-program coefficient, independent of input length, data and physical width.

    Instances For
      theorem Cslib.Algorithms.WordRAM.ThreeSum.ChanHe.Preprocessing.root_cost_bound (κ n : ℕ) :
      have m := ThreeSum.ChanHe.mPar n (2 * (n + 2) ^ κ); Traversal.rootTime (ThreeSum.ChanHe.fuel n) (n + 1) m (2 * m ^ 2) ≤ rootCoefficient κ * (n + 2) * ((n + 2).sqrt + 1) * (Nat.log 2 (n + 2) + 1) ^ 11

      The complete root cost at the actual magnitude-derived candidate window.

      The actual native program has a genuinely subquadratic polynomial factor and fixed polylog.