Evaluate a defined operation
A computational-efficiency evaluation connects a specific operation to its required output, resource costs, and operating conditions. The questions below provide a framework for assessing a method and interpreting its evidence.
Define the metric before the test
Specify which primitive operations are counted, how loops and vector operations are treated, and whether preprocessing, allocation, transfers, and synchronization are included. Operation counts describe a model; they do not replace runtime measurements.
Worked example: repeated range sums
For a fixed array a[0..n-1], answering a range-sum query [l, r) by reading every requested value performs r-l additions. A prefix-sum array uses P[0]=0 and P[i+1]=P[i]+a[i]; each query is then P[r]-P[l]. Building the prefix values takes n additions and n+1 stored numbers, while a query takes one subtraction. If the array changes, prefix entries after the update may need to be recomputed; a dynamic data structure has a different setup and query tradeoff.
This standard algorithm shows what it means to change the work a task requires while preserving its answer. It is not a LuMATH algorithm. A LuMATH method would need its own published task definition and implementation before a similar comparison could be made. The example also shows why the workload matters: one query may not repay the setup and memory, while many queries over unchanged data may.
Measure the whole workload
Record the dataset and input distribution, baseline and candidate versions, hardware, operating system, compiler/runtime, timing method, warmup, repetitions, concurrency, correctness checks, and memory metric. Report cold and warm behavior when both occur in the intended use.
Correctness and reproducibility
Apply an independent correctness oracle before and after measured runs, using the declared input domain, numerical tolerances where relevant, and recorded unsupported cases. Pin dataset hashes and seeds, run a preregistered edge-case suite, and retain raw pairs, failed cases, summary statistics, and confidence intervals. Do not publish a favorable timing if the tested result fails the accepted output contract.
Report limitations
A candidate may help one workload and hurt another. Report workload boundaries, setup/build costs, numerical behavior, variance, failures, and exclusions. Do not generalize beyond the environments and inputs tested.