Empirical vs Theoretical Analysis

Useful Extras

Empirical vs Theoretical Analysis

AspectTheoreticalEmpirical
FocusGrowth rate (asymptotic)Actual runtime (milliseconds)
DependencyMachine-independentMachine-dependent
Constant factorsIgnoredCaptured
Input sizen → ∞Finite, practical sizes
Best useAlgorithm comparisonProduction tuning

Best practice: Use theoretical analysis to shortlist algorithms, then benchmark empirically on representative data with your target hardware.