Algorithm Search⌘K

Algorithmcore

Hughes-Hartogs algorithm

Also called greedy bit loading.

Adds bits one at a time to the subcarrier where the next bit costs the least power. This gives the optimal integer loading when the incremental costs increase on each subcarrier.

Time
O(N + B log N) worst
Space
O(N) extra
Where
B = the number of bits loaded; N = the number of subcarriers
Properties
deterministicgreedyneeds csitoptimal
Origin
Dirk Hughes Hartogs, 1987

The Hughes-Hartogs algorithm solves bit loading by adding bits one at a time. At each step it finds the subcarrier where one more bit costs the least extra power and gives the bit to it. In the margin-adaptive form it stops at the target number of bits BB; in the rate-adaptive form it stops when the next bit would exceed the power budget PP. With the cost ei(b)=Γ(2b−1)/gie_i(b) = \Gamma(2^b - 1)/g_i of the SNR gap model, the next bit on a subcarrier always costs twice the last one, the incremental costs increase, and under that condition the greedy result is optimal. It is marginal allocation, which Fox analysed in 1966, applied to a modem. A binary heap of the next costs makes it run in O(N+Blog⁡N)O(N + B \log N) time.

In plain words

A modem has many tones and must put a whole number of bits on each. Each extra bit on a tone costs more power than the one before, and weak tones cost more than strong ones.

The method is simple. Look at every tone and ask what one more bit there would cost. Give the bit to the cheapest tone. Repeat until all the bits are placed or the power runs out. Because each tone gets more expensive as it fills, a cheap bit never hides behind an expensive one, so this simple rule finds the best answer.

The problem

Subcarrier ii has the gain gi>0g_i > 0, its SNR per unit of power. With the gap Γ\Gamma, it needs the power ei(b)=Γ(2b−1)/gie_i(b) = \Gamma(2^b - 1)/g_i for bb bits, so bit b+1b + 1 costs Δi(b)=Γ2b/gi\Delta_i(b) = \Gamma 2^{b}/g_i. Each subcarrier carries at most bmax⁡b_{\max} bits. The margin-adaptive (MA) form finds integers bib_i with ∑ibi=B\sum_i b_i = B that minimize ∑iei(bi)\sum_i e_i(b_i). The rate-adaptive (RA) form maximizes ∑ibi\sum_i b_i subject to ∑iei(bi)≤P\sum_i e_i(b_i) \le P. See bit loading for the full definition.

The algorithm

For the MA form set P=∞P = \infty; for the RA form set B=∞B = \infty.

  1. HUGHES-HARTOGS(g[1..N], Γ, b_max, B, P)
  2. 1b_i ← 0 for i = 1 .. N, E ← 0, k ← 0 ▷ bits, power, bit count
  3. 2H ← min-heap of (Γ / g_i, i) for i = 1 .. N ▷ the cost of each first bit
  4. 3while H is not empty do
  5. 4(c, i) ← the minimum of H
  6. 5if k = B or E + c > P then break ▷ target reached, or budget full
  7. 6remove (c, i) from H, b_i ← b_i + 1, E ← E + c, k ← k + 1
  8. 7if b_i < b_max then insert (Γ · 2^(b_i) / g_i, i) into H
  9. 8return (b, E)

The heap orders its entries by cost and then by index, so ties go to the lowest index. Without a cap, line L7 always inserts. A direct form scans all carriers at each step, which takes O(N)O(N) per bit; the heap gives the same choices faster.

Example

Take g=(20,9,5,1.5)g = (20, 9, 5, 1.5), Γ=1\Gamma = 1, no cap, and the MA target B=10B = 10. The cost of each step is the heap minimum at line L4.

step carrier cost of the bit bits after the step total power
1 1 1/20 = 0.05 (1, 0, 0, 0) 0.0500
2 1 1/10 = 0.1 (2, 0, 0, 0) 0.1500
3 2 1/9 = 0.111 (2, 1, 0, 0) 0.2611
4 1 1/5 = 0.2 (a tie with carrier 3) (3, 1, 0, 0) 0.4611
5 3 1/5 = 0.2 (3, 1, 1, 0) 0.6611
6 2 2/9 = 0.222 (3, 2, 1, 0) 0.8833
7 1 2/5 = 0.4 (a tie with carrier 3) (4, 2, 1, 0) 1.2833
8 3 2/5 = 0.4 (4, 2, 2, 0) 1.6833
9 2 4/9 = 0.444 (4, 3, 2, 0) 2.1278
10 4 2/3 = 0.667 (4, 3, 2, 1) 2.7944

At steps 4 and 7, carriers 1 and 3 have the same next cost; the lowest-index rule gives the bit to carrier 1 first, and carrier 3 gets its bit in the next step. The other order gives the same powers. The prefix of 8 steps is the MA answer for B=8B = 8, b=(4,2,2,0)b = (4, 2, 2, 0) with power 101/60101/60, and a search over every split of 8 bits confirms it. With the RA budget P=2P = 2, step 9 would bring the power to 2.1278, so line L5 stops after 8 bits with the same loading.

Correctness

Claim. If the next-bit costs on each subcarrier are positive and nondecreasing, the MA result has the least power among all loadings with BB bits, and the RA result has the most bits among all loadings within PP, with the least power for that number of bits.

Key steps. A loading is the same as a choice of a prefix of each list of next-bit costs, and its power is the sum of the chosen costs. Because each list is nondecreasing, the head of each list is its smallest unchosen element, and the heap holds exactly the heads, so each step takes the smallest unchosen cost of all. After tt steps the chosen set is the tt smallest costs, and no set of tt costs has a smaller sum. For the RA form, the least power E∗(t)E^*(t) for tt bits is strictly increasing in tt, so once E∗(k+1)>PE^*(k + 1) > P no larger tt fits. The full proof is in the proofs folder.

The condition matters. For next-bit costs (4,1)(4, 1) on one subcarrier and (3,3)(3, 3) on the other and B=2B = 2, the rule takes 3 and 3 for a power of 6, while both bits on the first subcarrier cost 5. Tables of measured SNR thresholds can have this shape, for example when a step from one constellation to the next costs less than the step before it.

Proof: The Hughes-Hartogs greedy rule gives an optimal integer loading when the incremental costs increasefull

Subcarrier ii has the list of next-bit costs di(1),di(2),…,di(mi)d_i(1), d_i(2), \ldots, d_i(m_i), where di(k)=ei(k)−ei(k−1)d_i(k) = e_i(k) - e_i(k-1) is the extra power of bit kk and mi=bmax⁡m_i = b_{\max} (or unbounded). A loading b=(b1,…,bN)b = (b_1, \ldots, b_N) with 0≤bi≤mi0 \le b_i \le m_i has the power

E(b)=∑i=1Nei(bi)=∑i=1N∑k=1bidi(k),E(b) = \sum_{i=1}^{N} e_i(b_i) = \sum_{i=1}^{N} \sum_{k=1}^{b_i} d_i(k),

since ei(0)=0e_i(0) = 0. So a loading is the same as a choice of a prefix of each list, and its power is the sum of the chosen elements. Call the union of all lists, with each element tagged by its pair (i,k)(i, k), the multiset DD.

Assumption. Each list is nondecreasing: di(1)≤di(2)≤⋯d_i(1) \le d_i(2) \le \cdots, and all costs are positive. For ei(b)=Γ(2b−1)/gie_i(b) = \Gamma(2^b - 1)/g_i we have di(k)=Γ2k−1/gid_i(k) = \Gamma 2^{k-1}/g_i, which is positive and strictly increasing in kk.

Order the elements of DD by cost, with ties broken by the index ii and then by kk. This is a total order, written ≺\prec, and it agrees with the order of the heap in lines L2 to L7, whose keys are (di(k),i)(d_i(k), i); within one list only the head is in the heap, so kk never needs to break a tie inside the heap.

Lemma 1 (the heap holds the heads). At the start of each pass of line L3, the heap holds exactly one entry (di(bi+1),i)(d_i(b_i + 1), i) for each ii with bi<mib_i < m_i, and no other entry.

Proof. Line L2 inserts (di(1),i)(d_i(1), i) for each ii, and all bi=0b_i = 0. Line L6 removes the entry of one ii and raises bib_i by 1. Line L7 inserts (di(bi+1),i)(d_i(b_i + 1), i) for the new bib_i if bi<mib_i < m_i. So the statement holds again. □\square

Lemma 2 (each step takes the smallest unchosen element). Let StS_t be the set of the first tt elements removed by line L6. Then StS_t consists of the tt smallest elements of DD in the order ≺\prec.

Proof. By induction on tt; the case t=0t = 0 is clear. Suppose it holds for tt. The unchosen elements of list ii are di(bi+1),…,di(mi)d_i(b_i + 1), \ldots, d_i(m_i), and because the list is nondecreasing, the head di(bi+1)d_i(b_i + 1) is the smallest of them in ≺\prec (a tie in cost is broken by kk, and the head has the smallest kk). By Lemma 1 the heap holds exactly these heads, so its minimum is the smallest unchosen element of DD. Adding it to the tt smallest elements gives the t+1t + 1 smallest. □\square

Lemma 3 (the sum of the smallest elements is least). Let TT be any set of tt elements of DD. Then the cost sum of TT is at least the cost sum of StS_t.

Proof. List the elements of TT in the order ≺\prec as y1≺⋯≺yty_1 \prec \cdots \prec y_t and those of StS_t as x1≺⋯≺xtx_1 \prec \cdots \prec x_t. Since StS_t holds the tt smallest elements of DD, exactly j−1j - 1 elements of DD come before xjx_j. The jj distinct elements y1,…,yjy_1, \ldots, y_j cannot all be among them, so yjy_j, the last of them, does not come before xjx_j, and the cost of yjy_j is at least the cost of xjx_j. Summing over jj gives the claim. □\square

Theorem 1 (margin-adaptive form). For a target B≤∑imiB \le \sum_i m_i, the greedy rule stops with ∑ibi=B\sum_i b_i = B, and its loading has the least power among all loadings with BB bits.

Proof. With no budget, line L5 stops the loop exactly when k=Bk = B, and the heap is not empty before that because fewer than ∑imi\sum_i m_i elements have been removed. By Lemma 2 the chosen set is SBS_B, and by construction it is a prefix of each list, so it is a loading with power E=∑SBE = \sum S_B. Any other loading with BB bits is a set of BB elements of DD, so by Lemma 3 its power is at least EE. □\square

Theorem 2 (rate-adaptive form). For a budget P≥0P \ge 0, the greedy rule returns a loading with the most bits among all loadings with power at most PP, and with the least power among those.

Proof. Let E∗(t)E^*(t) be the sum of the tt smallest elements of DD. Since all costs are positive, E∗E^* is strictly increasing in tt. By Theorem 1, E∗(t)E^*(t) is the least power of a loading with tt bits. The loop keeps E=E∗(k)E = E^*(k) by Lemma 2. It stops either when the heap is empty, so k=∑imik = \sum_i m_i and no loading has more bits, or when E∗(k)+c>PE^*(k) + c > P for the smallest unchosen cost cc, that is E∗(k+1)>PE^*(k + 1) > P. In the second case every loading with t≥k+1t \ge k + 1 bits has power at least E∗(t)≥E∗(k+1)>PE^*(t) \ge E^*(k+1) > P, so none fits. The returned loading has kk bits, fits the budget, and has the least power E∗(k)E^*(k) for kk bits. □\square

Remark (why the assumption is needed). Lemma 2 uses the fact that the head of each list is its smallest unchosen element. Without it the heap can miss a cheap element that lies behind an expensive head. For the lists (4,1)(4, 1) and (3,3)(3, 3) and B=2B = 2, the rule takes 33 and 33 for the power 6, while the loading that takes both bits of the first list costs 5.

Remark (cost). Line L2 builds the heap in O(N)O(N). Each pass of the loop does a constant number of heap operations, each O(log⁡N)O(\log N), and at most B+1B + 1 passes run in the MA form; in the RA form the number of passes is the number of bits returned plus one. The total time is O(N+Blog⁡N)O(N + B \log N).

Complexity

Line L2 builds the heap in O(N)O(N) time. Each pass of the loop does at most two heap operations of O(log⁡N)O(\log N) each, and there are at most B+1B + 1 passes, where BB is the number of bits returned. So the time is O(N+Blog⁡N)O(N + B \log N) in the worst case and the extra space is O(N)O(N). A direct form that scans all NN carriers per bit takes O(NB)O(NB) time. In the word RAM the bit counts are integers; the costs are real numbers, or exact rationals as in the test code.

Properties

  • Optimal under increasing increments. This is the condition of the theorem, and the gap model always satisfies it.
  • Every prefix is optimal. The first tt steps give the MA optimum for tt bits, for every tt. One run therefore gives the whole curve E∗(t)E^*(t) of least power against bits.
  • The gap does not change the MA answer. Multiplying all costs by Γ\Gamma keeps their order.
  • Water level. At the end, every loaded bit costs at most the cheapest unloaded bit; the last cost taken plays the part of the water level of water-filling.
  • Order free. The result does not depend on the order of the subcarriers, apart from the choice among ties, and every choice among ties has the same power.

Variants and improvements

  • Levin-Campello. Starts from any loading, for example rounded water-filling, and moves bits between subcarriers until no move saves power. It reaches the same optimum, often with far fewer steps than BB.
  • Chow-Cioffi-Bingham. Computes real-valued rates from the SNR and a margin, rounds them, and adjusts the margin; it is faster for large NN and BB but not exactly optimal.
  • Steps of β\beta bits. For loading in steps of two bits, to keep square QAM, each step adds β\beta bits with the cost ei(b+β)−ei(b)e_i(b + \beta) - e_i(b); these costs also increase.
  • Removing bits. To lower the rate, run the rule in reverse and remove the bit that saves the most power.
  • Tables from simulation. The rule works for any cost tables, but it is optimal only for tables with nondecreasing increments; check this before using it.

When to use it

Use it when BB is small or moderate, when the loading is computed once in a training phase, or as the reference that faster methods are tested against. When the loading must be updated often for a slowly changing channel, a Levin-Campello update from the current loading costs less. For thousands of tones with many bits each, as in VDSL, start from rounded water-filling and repair.

Pitfalls

  • Costs without increasing increments. With cost tables from measurements, the greedy rule can be wrong, as the example in Correctness shows.
  • Forgetting the cap. Real modems cap bib_i, for example at 15 bits in ADSL. Without the cap the rule can load a very strong tone beyond the largest constellation.
  • Linear and dB values. The gains and the gap must be linear. A gap of 9.8 dB is Γ≈9.55\Gamma \approx 9.55.
  • Using the sum of all bits in the loop. Computing ∑ibi\sum_i b_i in every pass instead of keeping a counter turns the time into O(NB)O(NB).
  • Floating ties. With floating point costs, two equal costs can compare unequal. This changes the loading but not its optimality, since the powers differ only by rounding.

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.

hughes_hartogs_algorithm.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/hughes-hartogs-algorithm/. The authors are listed in prov/YMENDP.jsonl.

"""Hughes-Hartogs greedy bit loading.

Subcarrier i has the gain g[i] (SNR per unit of power). With the SNR gap
Gamma it needs the power Gamma * (2**b - 1) / g[i] to carry b bits, so the
next bit costs Gamma * 2**b / g[i]. The algorithm adds one bit at a time to
the subcarrier whose next bit is cheapest. In the margin-adaptive form it
stops at the target number of bits; in the rate-adaptive form it stops when
the next bit does not fit in the power budget. A binary heap keeps the next
costs, so the time is O(N + B log N).

The arithmetic works with int, float or fractions.Fraction values, so the
tests can check exact optima.
"""

import heapq


def bit_power(gain, bits: int, gap=1):
    """The power Gamma * (2**b - 1) / g that carries b bits."""
    return gap * (2**bits - 1) / gain


def hughes_hartogs(gains, target_bits=None, budget=None, gap=1, b_max=None):
    """Greedy loading. Give exactly one of target_bits (MA form) or budget (RA form).

    Returns (bits, total_power). Ties go to the lowest index.
    """
    if (target_bits is None) == (budget is None):
        raise ValueError("give exactly one of target_bits and budget")
    if not gains or any(not g > 0 for g in gains):
        raise ValueError("need at least one subcarrier and positive gains")
    if b_max is not None and b_max < 0:
        raise ValueError("b_max must not be negative")
    n = len(gains)
    bits, total, count = [0] * n, 0, 0  # @line L1
    heap = [(gap / g, i) for i, g in enumerate(gains)] if b_max != 0 else []  # @line L2
    heapq.heapify(heap)
    while heap:  # @line L3
        cost, i = heap[0]  # @line L4
        if count == target_bits or (budget is not None and total + cost > budget):  # @line L5
            break
        heapq.heappop(heap)  # @line L6
        bits[i], total, count = bits[i] + 1, total + cost, count + 1
        if b_max is None or bits[i] < b_max:  # @line L7
            heapq.heappush(heap, (gap * 2 ** bits[i] / gains[i], i))
    if target_bits is not None and count < target_bits:
        raise ValueError("the target exceeds N * b_max bits")
    return bits, total  # @line L8


def greedy_from_increments(increments: list[list], target_bits: int) -> tuple[list[int], object]:
    """The same greedy rule on arbitrary tables of next-bit costs.

    increments[i][b] is the cost of bit b + 1 on subcarrier i. The result is
    optimal when every table is nondecreasing, and can be worse otherwise.
    """
    bits, total = [0] * len(increments), 0
    heap = [(t[0], i) for i, t in enumerate(increments) if t]
    heapq.heapify(heap)
    for _ in range(target_bits):
        if not heap:
            raise ValueError("not enough bits in the tables")
        cost, i = heapq.heappop(heap)
        bits[i], total = bits[i] + 1, total + cost
        if bits[i] < len(increments[i]):
            heapq.heappush(heap, (increments[i][bits[i]], i))
    return bits, total
test_hughes_hartogs_algorithm.py 152 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/hughes-hartogs-algorithm/. The authors are listed in prov/YMENDP.jsonl.

import itertools
import math
import random
from fractions import Fraction as F

import pytest

from hughes_hartogs_algorithm import bit_power, greedy_from_increments, hughes_hartogs

PAGE_GAINS = [F(20), F(9), F(5), F(3, 2)]


def power_of(gains, bits, gap=1):
    return sum(bit_power(g, b, gap) for g, b in zip(gains, bits))


def brute_ma(gains, target, b_max, gap=1):
    best = None
    for b in itertools.product(range(b_max + 1), repeat=len(gains)):
        if sum(b) == target:
            e = power_of(gains, b, gap)
            if best is None or e < best:
                best = e
    return best


def brute_ra(gains, budget, b_max, gap=1):
    best = (-1, None)
    for b in itertools.product(range(b_max + 1), repeat=len(gains)):
        e = power_of(gains, b, gap)
        if e <= budget and (sum(b) > best[0] or (sum(b) == best[0] and e < best[1])):
            best = (sum(b), e)
    return best


def test_page_example_trace() -> None:
    expected = [
        (1, 0, 0, 0), (2, 0, 0, 0), (2, 1, 0, 0), (3, 1, 0, 0), (3, 1, 1, 0),
        (3, 2, 1, 0), (4, 2, 1, 0), (4, 2, 2, 0), (4, 3, 2, 0), (4, 3, 2, 1),
    ]
    for k, b in enumerate(expected, start=1):
        bits, e = hughes_hartogs(PAGE_GAINS, target_bits=k)
        assert tuple(bits) == b
        assert e == power_of(PAGE_GAINS, b)
    bits, e = hughes_hartogs(PAGE_GAINS, target_bits=8)
    assert e == F(101, 60)
    assert brute_ma(PAGE_GAINS, 8, 8) == F(101, 60)


def test_page_example_rate_adaptive() -> None:
    assert hughes_hartogs(PAGE_GAINS, budget=2) == ([4, 2, 2, 0], F(101, 60))
    assert hughes_hartogs(PAGE_GAINS, budget=F(101, 60)) == ([4, 2, 2, 0], F(101, 60))
    bits, _ = hughes_hartogs(PAGE_GAINS, budget=F(101, 60) - F(1, 1000))
    assert sum(bits) == 7
    assert hughes_hartogs(PAGE_GAINS, budget=0) == ([0, 0, 0, 0], 0)


def test_margin_adaptive_matches_brute_force() -> None:
    rng = random.Random(21)
    for _ in range(150):
        n = rng.randint(1, 4)
        gains = [F(rng.randint(1, 60), rng.randint(1, 6)) for _ in range(n)]
        b_max = rng.randint(1, 6)
        target = rng.randint(0, n * b_max)
        bits, e = hughes_hartogs(gains, target_bits=target, b_max=b_max)
        assert sum(bits) == target and max(bits) <= b_max
        assert e == power_of(gains, bits)
        assert e == brute_ma(gains, target, b_max)


def test_rate_adaptive_matches_brute_force() -> None:
    rng = random.Random(22)
    for _ in range(150):
        n = rng.randint(1, 4)
        gains = [F(rng.randint(1, 60), rng.randint(1, 6)) for _ in range(n)]
        b_max = rng.randint(1, 6)
        gap = F(rng.randint(1, 9))
        budget = F(rng.randint(0, 400), 10)
        bits, e = hughes_hartogs(gains, budget=budget, gap=gap, b_max=b_max)
        assert e <= budget
        assert (sum(bits), e) == brute_ra(gains, budget, b_max, gap)


def test_gap_does_not_change_the_ma_allocation() -> None:
    rng = random.Random(23)
    gains = [rng.uniform(0.5, 40) for _ in range(32)]
    b1, e1 = hughes_hartogs(gains, target_bits=100)
    b7, e7 = hughes_hartogs(gains, target_bits=100, gap=7.0)
    assert b1 == b7
    assert abs(e7 - 7 * e1) < 1e-9 * e7


def water_filling_rate(gains, budget, gap=1.0):
    nu = [gap / g for g in gains]
    lo, hi = 0.0, max(nu) + budget
    for _ in range(200):
        mid = (lo + hi) / 2
        if sum(max(0.0, mid - v) for v in nu) < budget:
            lo = mid
        else:
            hi = mid
    return sum(max(0.0, math.log2(lo / v)) for v in nu)


def test_bound_against_water_filling() -> None:
    rng = random.Random(24)
    for _ in range(100):
        n = rng.randint(1, 64)
        gains = [rng.expovariate(1 / 30) + 0.01 for _ in range(n)]
        budget = rng.uniform(0.1, 50)
        bits, _ = hughes_hartogs(gains, budget=budget, gap=2.0)
        c = water_filling_rate(gains, budget, gap=2.0)
        assert c - n < sum(bits) <= c + 1e-9
    gains = [20, 9, 5, 1.5]
    assert abs(water_filling_rate(gains, 2) - 8.791781) < 1e-6


def test_greedy_needs_increasing_increments() -> None:
    bits, total = greedy_from_increments([[4, 1], [3, 3]], 2)
    assert bits == [0, 2] and total == 6
    assert min(4 + 1, 3 + 3, 4 + 3) == 5
    rng = random.Random(25)
    for _ in range(100):
        n = rng.randint(1, 4)
        tables = [sorted(rng.randint(1, 20) for _ in range(4)) for _ in range(n)]
        target = rng.randint(0, 4 * n)
        _, total = greedy_from_increments(tables, target)
        best = min(
            sum(sum(t[:k]) for t, k in zip(tables, ks))
            for ks in itertools.product(range(5), repeat=n)
            if sum(ks) == target
        )
        assert total == best


def test_caps_and_bad_input() -> None:
    assert hughes_hartogs([1, 100], target_bits=5, b_max=3)[0] == [2, 3]
    assert hughes_hartogs([1, 100], budget=10**9, b_max=3)[0] == [3, 3]
    assert hughes_hartogs([1, 100], budget=10**9, b_max=0)[0] == [0, 0]
    with pytest.raises(ValueError):
        hughes_hartogs([1, 2], target_bits=7, b_max=3)
    with pytest.raises(ValueError):
        hughes_hartogs([1, 2])
    with pytest.raises(ValueError):
        hughes_hartogs([1, 2], target_bits=1, budget=1)
    with pytest.raises(ValueError):
        hughes_hartogs([1, 0], target_bits=1)
    with pytest.raises(ValueError):
        hughes_hartogs([], budget=1)

History

Dirk Hughes-Hartogs filed the patent "Ensemble modem structure for imperfect transmission media" in May 1985, and it was issued in July 1987 and assigned to Telebit, a maker of high-speed dial-up modems that sent data on many carriers at once. Its loading procedure adds one unit of data at a time to the carrier that needs the least additional power. The same rule had appeared in operations research as marginal allocation, which Fox analysed in 1966 for separable problems with convex costs. In the 1990s the rule became the standard reference for DMT loading in DSL, and its cost for large BB motivated the faster methods of Chow, Cioffi and Bingham (1995) and the efficiency and tightness conditions of Campello and Levin.

References

  1. Dirk Hughes-Hartogs, Ensemble modem structure for imperfect transmission media, US Patent 4,679,227, filed May 20, 1985, issued July 7, 1987, the allocation of data bits and power to the carriers, one increment at a time, to the carrier that needs the least additional power
  2. Bennett Fox, Discrete optimization via marginal analysis, Management Science 13(3), 1966, pages 210 to 216, marginal allocation and its optimality for separable problems with convex costs
  3. Jorge Campello, Practical bit loading for DMT, IEEE International Conference on Communications (ICC), 1999, pages 801 to 805, the greedy loading as a baseline, and the efficiency condition that it satisfies

Where this leads

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
  • a scene preset for the example