Algorithm Search⌘K

Algorithmadvanced

Reduced-state sequence estimation

Also called RSSE, delayed decision-feedback sequence estimation, DDFSE.

Cuts the trellis of the Viterbi equalizer by keeping only part of the channel memory as state and feeding back decisions for the rest.

Time
O(N S (M + L)) worst
Space
O(N S) extra
Where
L = the number of channel taps; M = the alphabet size; N = the number of symbols; S = the number of states, J_1 J_2 ... J_K
Properties
deterministicneeds channelneeds minimum phase
Origin
M. Vedat Eyuboglu, Shahid U. H. Qureshi, 1988

Reduced-state sequence estimation (RSSE) is a family of detectors between the Viterbi equalizer and the decision feedback equalizer. The Viterbi equalizer for a channel with LL taps and an alphabet of MM points keeps ML−1M^{L-1} states, which is too many for long channels or large constellations. RSSE keeps only partial information about the recent symbols in the state: for each of the last KK symbols, the label of the subset of the alphabet that holds it. The subsets come from nested partitions, like the set partitioning of trellis-coded modulation. The rest of the intersymbol interference is cancelled with the symbols stored on each survivor path, so each survivor runs its own decision feedback. With full partitions RSSE is the Viterbi equalizer. With no partition it is the DFE. Delayed decision-feedback sequence estimation (DDFSE) is the special case that keeps the first μ\mu symbols in full, with MμM^\mu states.

In plain words

The full Viterbi equalizer remembers every possible combination of the last few symbols. That is safe but costly. A DFE remembers only its own best guess, so one wrong guess spoils the next ones. RSSE keeps a few guesses alive, but only where a wrong guess is likely. It keeps the most recent symbols, whose taps are large, and among them it only keeps apart the symbols that are close to each other and easy to confuse. Symbols that are far apart are decided on each path at once, because the risk of mixing them up is small.

The problem

The input is a known channel f=(f0,…,fL−1)f = (f_0, \ldots, f_{L-1}) with f0≠0f_0 \ne 0, usually minimum phase after a whitened matched filter, an alphabet A\mathcal{A} of MM points, the known symbols before the block, the samples yk=∑lflxk−l+nky_k = \sum_l f_l x_{k-l} + n_k, and a list of K≤L−1K \le L-1 partitions Ω(1),…,Ω(K)\Omega(1), \ldots, \Omega(K) of A\mathcal{A} into J1≥J2≥⋯≥JKJ_1 \ge J_2 \ge \cdots \ge J_K subsets. Each partition must refine the next one: two points in the same subset of Ω(i)\Omega(i) are in the same subset of Ω(i+1)\Omega(i+1). The output is a sequence x^∈AN\hat x \in \mathcal{A}^N with a small ∑k∣yk−∑lflx^k−l∣2\sum_k |y_k - \sum_l f_l \hat x_{k-l}|^2, found with S=J1⋯JKS = J_1 \cdots J_K states.

The algorithm

Write ℓi(a)\ell_i(a) for the label of the subset of Ω(i)\Omega(i) that holds aa. The state at time kk is tk=(ℓ1(xk−1),ℓ2(xk−2),…,ℓK(xk−K))t_k = (\ell_1(x_{k-1}), \ell_2(x_{k-2}), \ldots, \ell_K(x_{k-K})). Each state keeps one survivor: a metric and the last L−1L-1 symbols of its path.

  1. RSSE(y, f, A, Ω(1..K), pre)
  2. 1survivors ← { state of pre: (metric 0, history pre) }
  3. 2for k ← 0 to N - 1
  4. 3for each survivor (t, metric, hist): isi ← Σ_{l=1}^{L-1} f[l] hist[l] ▷ its own past symbols
  5. 4for each symbol a in A
  6. 5λ ← |y[k] - f[0] a - isi|²
  7. 6t' ← (ℓ_1(a), ℓ_2(hist[1]), …, ℓ_K(hist[K-1]))
  8. 7if metric + λ is the smallest into t' so far, keep it with history (a, hist) and a pointer
  9. 8take the survivor with the smallest metric and follow the pointers back
  10. 9return its symbols

Line L3 is the decision feedback: the ISI comes from the survivor's own history, not from a common decision. Line L6 builds the next state. The nesting makes it depend only on tt and ℓ1(a)\ell_1(a), so the trellis is well defined. Symbols with the same ℓ1\ell_1 are parallel branches, and line L7 keeps the best one. The choices of partitions give the whole family:

partitions states detector
K=L−1K = L-1, all into single points ML−1M^{L-1} Viterbi equalizer, exact ML
K=μK = \mu, all into single points MμM^\mu DDFSE
K=1K = 1, Ω(1)\Omega(1) into JJ subsets JJ RSSE with one partition
K=0K = 0 1 zero-forcing DFE on ff

Example

Take f=(1,0.6,0.3)f = (1, 0.6, 0.3), BPSK, the known symbols x−1=x−2=+1x_{-1} = x_{-2} = +1, and DDFSE with μ=1\mu = 1, so the state is xk−1x_{k-1} and there are 2 states in place of 4. Each survivor stores its own xk−2x_{k-2}. The transmitted block is (+1,+1,+1,+1,−1)(+1, +1, +1, +1, -1), and the received samples are y=(1.4,0.8,1.8,1.4,0.0)y = (1.4, 0.8, 1.8, 1.4, 0.0). Each cell shows the metric of the survivor and its path:

kk yky_k state +1+1 state −1-1
0 1.4 0.25: ++ 2.25: −-
1 0.8 1.46: ++++ 1.06: +−+-
2 1.8 1.47: ++++++ 5.07: ++−++-
3 1.4 1.72: ++++++++ 3.72: +++−+++-
4 0.0 4.21: +++−++++-+ 1.73: ++++−++++-

At k=1k = 1 the ISI of the true past is 0.6+0.3=0.90.6 + 0.3 = 0.9, so the sample 0.80.8 is closer to 0.9−10.9 - 1 than to 0.9+10.9 + 1, and the path +−+- has the smaller metric. A DFE decides x1=−1x_1 = -1 here and goes wrong. DDFSE keeps the path ++++ in the other state. At k=2k = 2, the sample 1.8 fits ++++ followed by ++ almost exactly (1.8−1−0.6−0.3=−0.11.8 - 1 - 0.6 - 0.3 = -0.1), and the path +−+- dies. The final answer (+1,+1,+1,+1,−1)(+1, +1, +1, +1, -1) is correct and is the same as the 4-state ML answer. The DFE gives (+1,−1,+1,+1,−1)(+1, -1, +1, +1, -1).

Measured with 200 blocks of 50 BPSK symbols on this channel at noise standard deviation 0.35 (seed 7703), the 2-state DDFSE gave the same block as 4-state ML 198 times, and the DFE 184 times. On 4-PAM with f=(1,0.7)f = (1, 0.7) and 2 states (seed 7704, 200 blocks of 40 symbols, deviation 0.35), the set partition {+3,−1},{+1,−3}\{+3, -1\}, \{+1, -3\} agreed with the 4-state ML result on all 200 blocks. The partition {+3,+1},{−1,−3}\{+3, +1\}, \{-1, -3\} agreed on 182 and the DFE on 177. The good partition keeps apart the neighbours, which are the points easy to confuse, and lets each survivor decide between points at the distance 4.

Correctness

Claim. The trellis is well defined when the partitions are nested, and each survivor metric is the exact Euclidean metric of its own path. With full partitions RSSE is exact maximum likelihood. With no partition it is the zero-forcing DFE on ff. Without noise it returns the transmitted sequence for every choice of partitions.

Key step. The nesting makes the label ℓi+1(xk−i)\ell_{i+1}(x_{k-i}) a function of ℓi(xk−i)\ell_i(x_{k-i}), so the next state depends only on the current state and the label of the new symbol. Since the ISI uses the survivor's own symbols, its metric is the true metric of its path. Without noise the true path has metric 0 and no other path does, so it always survives. RSSE is not exact in general, because two paths in one reduced state can differ in symbols that the state does not hold, and the compare step drops one of them. The proofs folder has the details.

Proof: RSSE is a well-defined trellis search, exact ML with full partitions, the DFE with none, and error-free without noise for every partitionfull

The channel taps are f0,…,fL−1f_0, \ldots, f_{L-1} with f0≠0f_0 \ne 0, the alphabet A\mathcal{A} has MM points, and the known symbols before the block are x−1,…,x−L+1x_{-1}, \ldots, x_{-L+1}. The samples are yk=∑lflxk−l+nky_k = \sum_l f_l x_{k-l} + n_k for k=0,…,N−1k = 0, \ldots, N-1. For a sequence xx write Jk(x)=∑j≤k∣yj−∑lflxj−l∣2J_k(x) = \sum_{j \le k} |y_j - \sum_l f_l x_{j-l}|^2.

There are K≤L−1K \le L-1 partitions Ω(1),…,Ω(K)\Omega(1), \ldots, \Omega(K) of A\mathcal{A}, and ℓi(a)\ell_i(a) is the label of the subset of Ω(i)\Omega(i) that holds aa. They are nested: ℓi(a)=ℓi(b)\ell_i(a) = \ell_i(b) implies ℓi+1(a)=ℓi+1(b)\ell_{i+1}(a) = \ell_{i+1}(b) (the function check_partitions tests this). The state of a sequence at time kk is tk=(ℓ1(xk−1),…,ℓK(xk−K))t_k = (\ell_1(x_{k-1}), \ldots, \ell_K(x_{k-K})).

Lemma 1 (the trellis is well defined). tk+1t_{k+1} is a function of tkt_k and ℓ1(xk)\ell_1(x_k). So the number of states is J1J2⋯JKJ_1 J_2 \cdots J_K, and the symbols with the same ℓ1\ell_1 are parallel branches between the same pair of states.

Proof. tk+1=(ℓ1(xk),ℓ2(xk−1),…,ℓK(xk−K+1))t_{k+1} = (\ell_1(x_k), \ell_2(x_{k-1}), \ldots, \ell_K(x_{k-K+1})). For i≥2i \ge 2, ℓi(xk−i+1)\ell_i(x_{k-i+1}) is a function of ℓi−1(xk−i+1)\ell_{i-1}(x_{k-i+1}) by the nesting, and ℓi−1(xk−i+1)\ell_{i-1}(x_{k-i+1}) is entry i−1i-1 of tkt_k. □\square

The code computes tk+1t_{k+1} from the survivor's own symbols (line L6), which gives the same value by Lemma 1.

Lemma 2 (survivor metrics). After step kk, each survivor is a sequence (x0,…,xk)(x_0, \ldots, x_k), with the known symbols before it, and its stored metric equals JkJ_k of that sequence. Its stored history holds its own last L−1L-1 symbols.

Proof. By induction. At the start there is one survivor with metric 0 and the known history (line L1). A step extends a survivor by a symbol aa and adds ∣yk−f0a−∑l≥1flxk−l∣2|y_k - f_0 a - \sum_{l \ge 1} f_l x_{k-l}|^2, where xk−lx_{k-l} come from the survivor's own history (lines L3 to L5). This is the term j=kj = k of JkJ_k for the extended sequence. The new history is aa followed by the old one, cut to L−1L - 1 symbols, and line L7 stores it with the metric. □\square

So the output is the sequence with the smallest JN−1J_{N-1} among the final survivors (line L8). RSSE is suboptimal only because the compare step at line L7 drops a path when another path with a smaller metric enters the same reduced state. Two such paths can differ in symbols that the state does not hold, so their future branch metrics differ, and the dropped one can be the better full path.

Theorem 1 (full partitions give ML). If K=L−1K = L - 1 and every Ω(i)\Omega(i) is the partition into single points, RSSE returns a sequence that minimizes JN−1J_{N-1} over AN\mathcal{A}^N.

Proof. The state is then (xk−1,…,xk−L+1)(x_{k-1}, \ldots, x_{k-L+1}), the full channel memory, with ML−1M^{L-1} states. The history that a survivor uses at line L3 is fixed by its state, so two paths into the same state have the same future branch metrics, and the compare step keeps a path that can be extended to an optimal one. This is the Viterbi equalizer, and its proof applies. □\square

Theorem 2 (no partition gives the DFE). If K=0K = 0, there is one state and one survivor, and RSSE decides x^k=arg⁡min⁡a∈A∣yk−∑l≥1flx^k−l−f0a∣\hat x_k = \arg\min_{a \in \mathcal{A}} |y_k - \sum_{l \ge 1} f_l \hat x_{k-l} - f_0 a|. This is the zero-forcing DFE on ff: subtract the ISI of the past decisions and take the nearest point to (yk−∑l≥1flx^k−l)/f0(y_k - \sum_{l \ge 1} f_l \hat x_{k-l})/f_0.

Proof. With K=0K = 0 the state tuple is empty, so all branches enter the same state, and line L7 keeps the branch with the smallest metric. All candidates share the same survivor metric, so the smallest metric is the smallest branch metric. And ∣v−f0a∣=∣f0∣⋅∣v/f0−a∣|v - f_0 a| = |f_0| \cdot |v/f_0 - a|, so this is the nearest point to v/f0v/f_0. □\square

Theorem 3 (no noise, no errors). If n=0n = 0, RSSE returns the transmitted sequence for every choice of nested partitions.

Proof. First, a sequence x′x' with Jk(x′)=0J_k(x') = 0 equals the transmitted xx up to time kk. Indeed, Jk(x′)=0J_k(x') = 0 gives f0xj′=yj−∑l≥1flxj−l′f_0 x'_j = y_j - \sum_{l \ge 1} f_l x'_{j-l} for every j≤kj \le k, and f0≠0f_0 \ne 0, so x0′=x0x'_0 = x_0 from the known past, and then x1′=x1x'_1 = x_1, and so on. Now show by induction that after step kk the true state tk(x)t_k(x) has a survivor equal to xx up to time kk, with metric 0. Before the loop this holds. If it holds after step k−1k - 1, the extension of that survivor by xkx_k enters tk+1(x)t_{k+1}(x) with metric 0 by Lemma 2. Every candidate has metric at least 0, and a candidate with metric 0 is the true sequence by the first part, so the survivor kept in tk+1(x)t_{k+1}(x) is the true sequence. At the end, the best final survivor has metric 0 and is the true sequence. □\square

Theorem 4 (the cost). Each step costs O(S(M+L))O(S(M + L)) for S=J1⋯JKS = J_1 \cdots J_K states: the ISI of the survivor history in O(L)O(L), then MM branch metrics in O(1)O(1) each. The traceback pointers need O(NS)O(N S) space. Against the ML−1M^{L-1} states of the Viterbi equalizer, the saving is the factor ML−1/SM^{L-1}/S. For DDFSE with memory μ\mu, S=MμS = M^\mu, a factor of ML−1−μM^{L-1-\mu}.

Proof. Count the operations in lines L2 to L7. □\square

Complexity

Each step costs O(L)O(L) per survivor for the ISI and O(M)O(M) for the branches, so NN symbols cost O(NS(M+L))O(N S (M + L)) in the word RAM, with the metrics as numbers of fixed precision, and O(NS)O(N S) space for the pointers. The full Viterbi equalizer has ML−1M^{L-1} states, so the saving is the factor ML−1/SM^{L-1}/S. For DDFSE with memory μ\mu it is ML−1−μM^{L-1-\mu}. For example, 16-QAM on 5 taps needs 164=6553616^4 = 65536 states for ML, 16 states for DDFSE with μ=1\mu = 1, and 4 states for RSSE with one partition of 16-QAM into 4 subsets.

Properties

  • A family. One parameter set covers the DFE, DDFSE, RSSE and the Viterbi equalizer, and the cost and the performance move smoothly between them.
  • Survivor feedback. Each survivor uses its own past decisions, so a wrong decision on one path does not spoil the others. Error propagation is much weaker than in a DFE.
  • Needs minimum phase. The symbols outside the state are fed back from tentative decisions. If the channel energy comes late, these decisions are unreliable. The whitened matched filter or an MMSE prefilter puts the energy first.
  • Set partitioning. The distance between the points inside a subset sets how reliable the per-survivor decisions are. A good partition makes the smallest such distance large, which is the same rule as in trellis-coded modulation.
  • Parallel branches. With J1<MJ_1 < M there are M/J1M/J_1 branches between each pair of states, and the compare step picks the best of them at once.

Variants and improvements

  • DDFSE. The partitions into single points for the first μ\mu symbols. It is the simplest member and is common in practice.
  • Ungerboeck metric. RSSE can run on the Ungerboeck metric, but the matched filter output also holds the ISI from the future symbols, so the minimum-phase Forney form is the usual choice.
  • Per-survivor processing. Running a channel or phase estimator on each survivor is the same idea as the per-survivor feedback. See per-survivor processing.
  • Breadth-first searches. The M-algorithm and the T-algorithm keep a fixed number of the best paths, or the paths within a threshold, instead of one path per reduced state. They are a beam search on the full trellis, and the K-best detector is the same idea for MIMO.
  • Soft outputs. A reduced-state BCJR or a reduced-state soft-output Viterbi algorithm gives soft outputs for turbo equalization.

When to use it

Use RSSE when the full Viterbi equalizer is too costly and the DFE loses too much: long channels with small alphabets, or large constellations on short channels. Start with DDFSE with μ=1\mu = 1 or 2. For large QAM constellations, use one or two set-partition levels for the first taps. Put a minimum-phase prefilter in front. If the channel is very long, use a DFE or frequency-domain equalization instead.

Pitfalls

  • Partitions that do not nest. If two points share a subset in Ω(i)\Omega(i) but not in Ω(i+1)\Omega(i+1), the next state is not a function of the current state, and the search is not a trellis search.
  • A maximum-phase channel. Without a minimum-phase prefilter, the large taps are fed back from early decisions and RSSE can be worse than a linear equalizer.
  • A common decision. Feeding back one global decision for the taps outside the state, in place of each survivor's own history, gives a DFE in front of a smaller Viterbi search. It loses the main benefit.
  • The wrong partition. Grouping neighbours into one subset, such as {+3,+1}\{+3, +1\} in 4-PAM, leaves the hard decisions to the feedback. In the example it agreed with ML on 182 blocks of 200, against 200 for the set partition.
  • Not ML. RSSE does not guarantee the ML sequence, so a test that compares it with ML must allow some differences and report how many.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

reduced_state_sequence_estimation.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/reduced-state-sequence-estimation/. The authors are listed in prov/J2DFVA.jsonl.

"""Reduced-state sequence estimation (Eyuboglu and Qureshi) on an ISI channel.

The channel is y[k] = sum_{l=0}^{L-1} f[l] x[k-l] + n[k] with white noise, for
example the minimum-phase output of a whitened matched filter. The full Viterbi
equalizer has M^(L-1) states. RSSE chooses K <= L-1 partitions of the alphabet:
partition i splits it into J_i subsets, and partition i must refine partition
i+1 (so J_1 >= J_2 >= ... >= J_K). The state at time k is the tuple of subset
labels (label_1(x[k-1]), ..., label_K(x[k-K])), so there are J_1 J_2 ... J_K
states. Each survivor keeps its own symbol history, and the ISI of the symbols
that the state does not hold comes from that history (decision feedback per
survivor). Symbols with the same label_1 are parallel branches; the best one is
kept.

Special cases: every J_i = M gives the full Viterbi equalizer (exact ML);
J_1 = ... = J_mu = M and K = mu gives DDFSE (Duel-Hallen and Heegard) with M^mu
states; K = 0 gives one state, the zero-forcing DFE on f.
"""


def check_partitions(parts: list[list[int]], m: int) -> list[int]:
    """Check the labels and the nesting; return J_1, ..., J_K."""
    sizes = []
    for p in parts:
        if len(p) != m or sorted(set(p)) != list(range(len(set(p)))):
            raise ValueError("a partition labels each point with 0..J-1")
        sizes.append(len(set(p)))
    for i in range(len(parts) - 1):
        # partition i must refine partition i+1: the same label in i means the same label in i+1
        seen: dict[int, int] = {}
        for a in range(m):
            if seen.setdefault(parts[i][a], parts[i + 1][a]) != parts[i + 1][a]:
                raise ValueError("each partition must refine the next one")
    return sizes


def ddfse_partitions(m: int, mu: int) -> list[list[int]]:
    """The DDFSE choice: the first mu symbols are kept in full."""
    return [list(range(m)) for _ in range(mu)]


def rsse(y: list[complex], f: list[complex], alphabet: list[complex], parts: list[list[int]], pre: list[complex] | None = None) -> list[complex]:
    """The RSSE decisions for y on the channel f with the given partitions.

    pre holds the L-1 known symbols before x[0], oldest first.
    """
    m, mem = len(alphabet), len(f) - 1
    if len(parts) > mem:
        raise ValueError("at most L-1 partitions")
    check_partitions(parts, m)
    pre = list(pre) if pre is not None else [alphabet[0]] * mem
    if len(pre) != mem:
        raise ValueError("pre must hold L-1 symbols")
    index = {complex(a): i for i, a in enumerate(alphabet)}
    hist0 = tuple(index[complex(v)] for v in reversed(pre))  # most recent first

    def state_of(hist: tuple[int, ...]) -> tuple[int, ...]:
        return tuple(parts[i][hist[i]] for i in range(len(parts)))

    # each survivor: state -> (metric, last mem symbol indices, most recent first)
    surv = {state_of(hist0): (0.0, hist0)}  # @line L1
    back: list[dict] = []
    for k in range(len(y)):  # @line L2
        new: dict[tuple[int, ...], tuple[float, tuple[int, ...]]] = {}
        ptr: dict[tuple[int, ...], tuple[tuple[int, ...], int]] = {}
        for t, (met, hist) in surv.items():
            isi = sum(f[l] * alphabet[hist[l - 1]] for l in range(1, mem + 1))  # @line L3
            for i0 in range(m):  # @line L4
                d = abs(y[k] - f[0] * alphabet[i0] - isi) ** 2  # @line L5
                h2 = ((i0,) + hist)[:mem]
                t2 = state_of(h2)  # @line L6
                if t2 not in new or met + d < new[t2][0]:  # @line L7
                    new[t2] = (met + d, h2)
                    ptr[t2] = (t, i0)
        surv = new
        back.append(ptr)
    t = min(surv, key=lambda q: surv[q][0])  # @line L8
    out = []
    for k in range(len(y) - 1, -1, -1):
        t, i0 = back[k][t][0], back[k][t][1]
        out.append(alphabet[i0])
    out.reverse()
    return out  # @line L9


def number_of_states(parts: list[list[int]]) -> int:
    n = 1
    for p in parts:
        n *= len(set(p))
    return n
test_reduced_state_sequence_estimation.py 127 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/reduced-state-sequence-estimation/. The authors are listed in prov/J2DFVA.jsonl.

import itertools
import math
import random

import pytest

from reduced_state_sequence_estimation import check_partitions, ddfse_partitions, number_of_states, rsse


def cn(rng, var):
    s = math.sqrt(var / 2)
    return complex(rng.gauss(0, s), rng.gauss(0, s))


def channel_out(f, x, pre):
    mem = len(f) - 1
    full = list(pre) + list(x)
    return [sum(f[l] * full[mem + k - l] for l in range(len(f))) for k in range(len(x))]


def metric(y, f, x, pre):
    return sum(abs(a - b) ** 2 for a, b in zip(y, channel_out(f, x, pre)))


def brute_force(y, f, alphabet, pre):
    return min((list(c) for c in itertools.product(alphabet, repeat=len(y))), key=lambda c: metric(y, f, c, pre))


def dfe(y, f, alphabet, pre):
    past, out = list(pre), []
    for v in y:
        isi = sum(f[l] * past[-l] for l in range(1, len(f)))
        a = min(alphabet, key=lambda p: abs(v - isi - f[0] * p))
        out.append(a)
        past.append(a)
    return out


def test_example_on_the_page() -> None:
    f, y = [1, 0.6, 0.3], [1.4, 0.8, 1.8, 1.4, 0.0]
    assert rsse(y, f, [1, -1], ddfse_partitions(2, 1), pre=[1, 1]) == [1, 1, 1, 1, -1]
    assert rsse(y, f, [1, -1], ddfse_partitions(2, 2), pre=[1, 1]) == [1, 1, 1, 1, -1]
    assert rsse(y, f, [1, -1], [], pre=[1, 1]) == [1, -1, 1, 1, -1]
    assert abs(metric(y, f, [1, 1, 1, 1, -1], [1, 1]) - 1.73) < 1e-12


def test_full_partitions_are_exact_ml() -> None:
    rng = random.Random(7701)
    for _ in range(12):
        f = [rng.gauss(0, 1) for _ in range(rng.randint(1, 4))]
        pre = [rng.choice((-1, 1)) for _ in range(len(f) - 1)]
        x = [rng.choice((-1, 1)) for _ in range(10)]
        y = [v + rng.gauss(0, 0.8) for v in channel_out(f, x, pre)]
        assert rsse(y, f, [1, -1], ddfse_partitions(2, len(f) - 1), pre=pre) == brute_force(y, f, [1, -1], pre)
    qpsk = [complex(a, b) for a in (-1, 1) for b in (-1, 1)]
    for _ in range(6):
        f = [cn(rng, 1.0) for _ in range(3)]
        pre = [rng.choice(qpsk) for _ in range(2)]
        x = [rng.choice(qpsk) for _ in range(5)]
        y = [v + cn(rng, 1.0) for v in channel_out(f, x, pre)]
        assert rsse(y, f, qpsk, ddfse_partitions(4, 2), pre=pre) == brute_force(y, f, qpsk, pre)


def test_no_partition_is_the_dfe() -> None:
    rng = random.Random(7702)
    pam = [3, 1, -1, -3]
    for _ in range(20):
        f = [1.0] + [rng.uniform(-0.6, 0.6) for _ in range(rng.randint(0, 3))]
        pre = [rng.choice(pam) for _ in range(len(f) - 1)]
        x = [rng.choice(pam) for _ in range(40)]
        y = [v + rng.gauss(0, 0.6) for v in channel_out(f, x, pre)]
        assert rsse(y, f, pam, [], pre=pre) == dfe(y, f, pam, pre)


def test_ddfse_agrees_with_ml_on_most_blocks_at_high_snr() -> None:
    # 200 blocks of 50 BPSK symbols on f = (1, 0.6, 0.3), sigma = 0.35, seed 7703:
    # DDFSE with 2 states agrees with 4-state ML on 198 blocks, the DFE on 184
    rng = random.Random(7703)
    f = [1, 0.6, 0.3]
    agree_ddfse = agree_dfe = 0
    for _ in range(200):
        x = [rng.choice((1, -1)) for _ in range(50)]
        y = [v + rng.gauss(0, 0.35) for v in channel_out(f, x, [1, 1])]
        ml = rsse(y, f, [1, -1], ddfse_partitions(2, 2), pre=[1, 1])
        agree_ddfse += rsse(y, f, [1, -1], ddfse_partitions(2, 1), pre=[1, 1]) == ml
        agree_dfe += rsse(y, f, [1, -1], [], pre=[1, 1]) == ml
    assert agree_ddfse == 198 and agree_dfe == 184


def test_set_partition_beats_a_bad_partition_on_4pam() -> None:
    # 2 states on 4-PAM, f = (1, 0.7), sigma = 0.35, seed 7704, 200 blocks of 40 symbols:
    # the partition {3, -1} {1, -3} agrees with ML on all 200, {3, 1} {-1, -3} on 182, the DFE on 177
    rng = random.Random(7704)
    pam, f = [3, 1, -1, -3], [1, 0.7]
    good, bad = [0, 1, 0, 1], [0, 0, 1, 1]
    counts = [0, 0, 0]
    for _ in range(200):
        x = [rng.choice(pam) for _ in range(40)]
        y = [v + rng.gauss(0, 0.35) for v in channel_out(f, x, [3])]
        ml = rsse(y, f, pam, [list(range(4))], pre=[3])
        for i, parts in enumerate(([good], [bad], [])):
            counts[i] += rsse(y, f, pam, parts, pre=[3]) == ml
    assert counts == [200, 182, 177]


def test_noiseless_recovery_with_any_partition() -> None:
    rng = random.Random(7705)
    pam = [3, 1, -1, -3]
    f = [1, 0.5, -0.3]
    x = [rng.choice(pam) for _ in range(100)]
    y = channel_out(f, x, [1, 1])
    for parts in ([], [[0, 1, 0, 1]], [[0, 1, 2, 3]], [[0, 1, 2, 3], [0, 1, 0, 1]], [[0, 1, 0, 1], [0, 0, 0, 0]]):
        assert rsse(y, f, pam, parts, pre=[1, 1]) == x


def test_state_count_and_partition_checks() -> None:
    assert number_of_states([[0, 1, 2, 3], [0, 1, 0, 1]]) == 8
    assert check_partitions([[0, 1, 2, 3], [0, 1, 0, 1]], 4) == [4, 2]
    with pytest.raises(ValueError):
        check_partitions([[0, 1, 0, 1], [0, 0, 1, 1]], 4)  # {3, -1} is split by the next partition
    with pytest.raises(ValueError):
        check_partitions([[0, 2, 0, 2]], 4)
    with pytest.raises(ValueError):
        rsse([1.0], [1, 0.5], [1, -1], [[0, 1], [0, 1]], pre=[1])

History

The Viterbi equalizer of Forney (1972) has a number of states that grows exponentially with the channel memory. In 1988, Eyuboglu and Qureshi defined reduced-state sequence estimation with set partitions of the alphabet, as in Ungerboeck's trellis-coded modulation, and decision feedback on each survivor. In 1989, Duel-Hallen and Heegard published delayed decision-feedback sequence estimation, which keeps the first μ\mu taps in the trellis and feeds back the rest along each survivor. Per-survivor processing in the 1990s took the same idea to channel and phase estimation.

References

  1. M. Vedat Eyuboglu and Shahid U. H. Qureshi, Reduced-state sequence estimation with set partitioning and decision feedback, IEEE Transactions on Communications 36(1), 1988, pages 13 to 20, the subset trellis, the nesting condition on the partitions and the decision feedback per survivor
  2. Alexandra Duel-Hallen and Chris Heegard, Delayed decision-feedback sequence estimation, IEEE Transactions on Communications 37(5), 1989, pages 428 to 436, the trellis on the first mu channel taps with decision feedback per survivor for the rest

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • at least three sources
  • a scene preset for the example