Documentation

Complexitylib.Classes.Randomized.ApproximateCounting.Relative.Defs

Relative approximate counting -- definitions #

The constant-success relative estimator runs the factor-16 hashing estimator on a Cartesian power and recovers an integer count through the upper-root rounding convention.

Input width of the powered set supplied to the weak estimator.

Equations
Instances For
    def Complexity.ApproximateCounting.Relative.errorBits (domainWidth precision failureBits : ) :

    Per-level amplification used inside the weak estimator. The extra poweredWidth + 2 bits pay for the union over all hash widths; failureBits is the remaining global failure exponent.

    Equations
    Instances For
      def Complexity.ApproximateCounting.Relative.seedWidth (domainWidth precision failureBits : ) :

      Total random-seed width of the constant-success relative estimator.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Complexity.ApproximateCounting.Relative.hashingEstimate {domainWidth : } (precision failureBits : ) (set : Finset (BitString domainWidth)) (seed : BitString (seedWidth domainWidth precision failureBits)) :

        Amplified relative cardinality estimate for a fixed finite set.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Complexity.ApproximateCounting.Relative.successEvent {domainWidth : } (precision failureBits : ) (set : Finset (BitString domainWidth)) :
          Finset (BitString (seedWidth domainWidth precision failureBits))

          Seeds on which the relative hashing estimate satisfies its target accuracy contract.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Complexity.ApproximateCounting.Relative.failureEvent {domainWidth : } (precision failureBits : ) (set : Finset (BitString domainWidth)) :
            Finset (BitString (seedWidth domainWidth precision failureBits))

            Seeds on which the amplified relative estimator misses its accuracy contract.

            Equations
            Instances For