S7 Digital signal processing · Practice
Sparse signals and compressed sensing
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 7 kinds solid
Check
By the rule of thumb , about how many random measurements recover a 5-sparse signal of length 1024?
Check
A first OMP step sees correlations 0.4, −1.3 and −0.5 between three unit-norm columns and the measurements. What coefficient does it assign to the column it picks?
Check
A scan acquires 256 lines in 6 minutes. Compressed sensing needs only a fraction 0.2 of them. How long does the accelerated scan take?
Check
An 8-sparse signal of length 512.
(a)
What fraction of the Nyquist samples does the rule of thumb need?
(b)
How many measurements per nonzero coefficient is that?
Check
Recover a sparse signal with OMP. With rng = numpy.random.default_rng(seed), M = ceil(4*K*ln(N/K)), A = rng.standard_normal((M, N))/sqrt(M), a support idx = rng.choice(N, K, replace=False) and values rng.standard_normal(K) + numpy.sign(rng.standard_normal(K)) placed there (draws in that order), measure y = A @ x. Write omp(A, y, K) and set x_hat and err, the relative error .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
About how many measurements recover a 6-sparse, length-512 signal?
Check
A 3-minute scan keeps a fraction 0.3 of its lines. How long does it take?
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 S7