A13 Numerical methods · Practice
Problem set 10: FFTs, Monte Carlo and sparse matrices
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 15 kinds solid
Check
A radix-2 FFT has points.
(a)
How many butterflies (complex multiplications) does it take?
(b)
How many times fewer than a direct DFT's ?
Check
Convolve 1000 samples with a 100-tap filter by FFT.
(a)
What is the smallest power-of-two FFT length that avoids wraparound?
Check
A record of 512 samples at 8000 Hz.
(a)
What is the FFT's bin spacing?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How long is the record?
Check
The twiddle factor , with N = 16 and k = 1.
(a)
What is its real part?
(b)
What is its imaginary part?
Check
A Monte Carlo integrand has standard deviation 0.5.
(a)
How many samples bring the standard error to 0.01?
(b)
How many for an error ten times smaller?
Check
A yield simulation passes a fraction 0.95 of 1000 trials.
(a)
What is the yield's standard error?
Check
You estimate a failure probability near 0.001 by simulation.
(a)
How many trials give a relative error of 0.1?
Check
Antithetic pairs: each sample has variance 0.242, and the halves of a pair have covariance −0.2.
(a)
What is the variance of the pair average?
Check
A grid rule of order 2 is used in 5 dimensions.
(a)
Its error goes as in the total number of points. What is q?
(b)
Monte Carlo's error goes as . The grid rule wins when exceeds ½; what is here?
Check
A sparse matrix has 1000000 rows with 5 nonzeros each, stored in CSR (8-byte values, 4-byte indices).
(a)
How much memory does it take?
(b)
How many operations does a matrix–vector product take?
Check
A 2D grid of 200 × 200 unknowns is numbered row by row.
(a)
What is the matrix's bandwidth?
(b)
About how many operations does banded LU take, ?
Check
An arrow matrix has a hub row and column connected to all 1000 − 1 other unknowns, which connect only to the hub.
(a)
If the hub is eliminated first, about how many new nonzeros (fill) appear?
(b)
And if it's eliminated last?
Check
A 101-tap filter is applied to 1000000 samples by overlap-add with FFT blocks of points.
(a)
How many new output samples does each block produce?
(b)
How many blocks does the whole signal take?
Check
Stratified sampling splits [0, 1] into strata; the integrand's standard deviation is 1 overall but 0.2 within each stratum.
(a)
By about what factor does that cut the number of samples needed?
Check
A smooth periodic signal is sampled N = 64 times per period. Its derivative is wanted at the samples.
(a)
Spectrally, differentiation multiplies harmonic 3 by . What is ω for that harmonic, per period of ?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in A13