Exercise: Compute budget — explicit vs CN
Suppose you have a fixed compute budget of floating-point operations and want to price a single European call as accurately as possible.
Tasks
-
Explicit cost. Each time step costs flops; CFL forces . Total cost: .
-
CN cost. Each step is a tridiagonal solve, flops (constant factor). for matched accuracy. Total: .
-
Achievable accuracy. With both schemes producing spatial error (so error ):
- For explicit: , error .
- For CN: , error .
-
Numerical comparison. With , , :
- , error
- , error
-
CN advantage scales with . Show the CN/explicit error ratio scales as — CN's advantage grows with budget.