Factor Once, Solve Fifty Times

Matrix DecompositionsEasy+10 XP+10

Factor Once, Solve Fifty Times

A pipeline has to solve Ax=bA\mathbf{x} = \mathbf{b}Ax=b for the same 100×100100 \times 100100×100 matrix AAA but 505050 different right-hand sides b1,…,b50\mathbf{b}_1, \dots, \mathbf{b}_{50}b1​,…,b50​.

Two standard cost facts you may use, counted in floating-point operations (flops) for an n×nn \times nn×n matrix:

OperationCost
Gaussian elimination reducing AAA to triangular form (equivalently, producing A=LUA = LUA=LU)≈n33\approx \dfrac{n^3}{3}≈3n3​
One forward substitution plus one back substitution, given LLL and UUU≈n2\approx n^2≈n2

Plan A runs the full elimination from scratch for every right-hand side.

Plan B factors AAA once, then reuses LLL and UUU for all 505050 solves.

Roughly how many times less work does Plan B do than Plan A?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.