Exercises

ch18-ex01

Easy

Write the sum-product message updates for a binary variable factor graph with factor f(x1,x2)=exp(θx1x2)f(x_1, x_2) = \exp(\theta x_1 x_2), xi{1,+1}x_i \in \{-1, +1\}.

ch18-ex02

Easy

For a parity check of degree 3, incoming LLRs are L1=2,L2=3,L3=1.5L_1 = 2, L_2 = -3, L_3 = 1.5. Compute the outgoing message on edge 1 using the exact check-node update. What does min-sum give?

ch18-ex03

Medium

Prove that the BP threshold ϵ\epsilon^* of the (3,6)(3,6)-regular ensemble on the BEC satisfies ϵ(1(1x)5)2=x\epsilon^*(1 - (1-x)^5)^2 = x at x=ϵx = \epsilon^* (where the iteration map has a tangent fixed point). Solve numerically.

ch18-ex04

Medium

A (2,4)-regular LDPC code has rate R=1dv/dc=0.5R = 1 - d_v/d_c = 0.5. Compute its BP threshold on the BEC and compare to the Shannon limit.

ch18-ex05

Easy

Apply the Viterbi algorithm to the trellis [s0=0][s_0 = 0] with branch metrics per transition: from state 0: (00:0.3,01:0.7)(0 \to 0: 0.3, 0 \to 1: 0.7); from state 1: (10:0.6,11:0.2)(1 \to 0: 0.6, 1 \to 1: 0.2). Find the most likely state path of length 3 (i.e., s0,s1,s2,s3s_0, s_1, s_2, s_3) by max-product.

ch18-ex06

Medium

Show that the LDPC BP iteration on the BEC can be tracked exactly by a scalar variable (erasure probability), justifying the density-evolution simplification.

ch18-ex07

Medium

Implement Gaussian BP in pseudocode for the precision matrix J=(310131013)\mathbf{J} = \begin{pmatrix} 3 & -1 & 0 \\ -1 & 3 & -1 \\ 0 & -1 & 3 \end{pmatrix} and h=(1,0,1)T\mathbf{h} = (1, 0, 1)^T. Verify convergence to μ=J1h\boldsymbol{\mu} = \mathbf{J}^{-1}\mathbf{h}.

ch18-ex08

Medium

Explain why the BP threshold ϵ\epsilon^* is always strictly less than the Shannon limit 1R1 - R for regular LDPC ensembles.

ch18-ex09

Hard

Prove that GaBP means are exact on any convergent graph. Specifically, show that the GaBP fixed-point equations for the potentials hkih_{k \to i} imply Jμ=h\mathbf{J}\boldsymbol{\mu}^\star = \mathbf{h}.

ch18-ex10

Hard

Consider loopy BP on a graph with two fixed points. What determines which fixed point the algorithm converges to? Describe a practical test for this bistability.

ch18-ex11

Easy

A binary symmetric channel has crossover probability p=0.1p = 0.1. What is the channel LLR at bit ii if yi=0y_i = 0? If yi=1y_i = 1?

ch18-ex12

Medium

Compare the per-iteration cost of GaBP vs. direct matrix inversion for a sparse Gaussian graph with N=10,000N = 10{,}000 nodes and 50,000\approx 50{,}000 edges.

ch18-ex13

Medium

Write the sum-product algorithm for an HMM with discrete states: specialize the generic rules to forward-backward.

ch18-ex14

Medium

In the LDPC decoding iteration, suppose all variable nodes have channel LLR Lch=0L^{\text{ch}} = 0 (channel provides no information, e.g., BEC with ϵ=1\epsilon = 1). Prove that BP cannot break the symmetry — all messages remain zero forever.

ch18-ex15

Hard

Prove that the max-product algorithm on a tree factor graph computes the joint MAP configuration via backpointers, and explain why taking argmaxbimax(xi)\arg\max b_i^{\max}(x_i) independently at each node may fail when MAP ties exist.

ch18-ex16

Medium

Write the Gaussian BP message update for a node with dd neighbors, using the precision-form parameterization.

ch18-ex17

Easy

Name two signal-processing problems that are naturally solved by Gaussian BP on a tree factor graph.

ch18-ex18

Medium

Show that for a repetition code (where every bit must equal every other), the BP decoder is equivalent to majority voting.

ch18-ex19

Hard

A 3-cycle factor graph has three binary variables x1,x2,x3{±1}x_1, x_2, x_3 \in \{\pm 1\} with pairwise factors fij(xi,xj)=exp(θxixj)f_{ij}(x_i, x_j) = \exp(\theta x_i x_j), θ>0\theta > 0. Find the loopy BP fixed point by exploiting symmetry, and compare the predicted marginals to the true ones.

ch18-ex20

Challenge

Derive density evolution for a (λ,ρ)(\lambda, \rho) irregular LDPC ensemble on the binary-input AWGN channel, tracking the message LLR density (not probability). Outline the challenge and the Gaussian approximation.