NLA-lib Explorer

The operation count of spectral bisection

Library · Source module

The operation count of spectral bisection

The work of the dense spectral bisection program (NLAlib.SpectralBisection.bisectionProgram) at order n, depth L and iteration cap c is at most

(L + 1) c (362 n³ + 146 n² + 222 n) + L (1587 n³ + 760 n² + 2429 n + 305) + 1599 n³ + 818 n² + 2509 n + 680 + (L + 1) (2 c + 11) T(n),

where T dominates the declared cost of a matrix multiplication or QR factorization. The first three terms bound every instruction that is not a matrix operation: scalar operations, draws, literals, queries and structural instructions, each of weight one. They are the instruction polynomial of the fixed instrumented tree (NLAlib.Ops.Program.countPoly), checked by the kernel. The last term is the matrix work of NLAlib.SpectralBisection.matrixWorkBisectionAlgorithm.

The polynomial is an upper bound read off the syntax: a loop over the blocks of a level is charged as if every block had the full order, so its cubic term overestimates the scalar overhead, whose blocks have total order n. The matrix term uses the actual block sizes.

Main results

* NLAlib.SpectralBisection.countPoly_bisectionProgram: the polynomial of the program. * NLAlib.SpectralBisection.countedBisectionAlgorithm: the certificate with this explicit work and span.

Declarations