Papers
Topics
Authors
Recent
Search
2000 character limit reached

Edge Waterfilling Algorithm

Updated 6 July 2026
  • Edge Waterfilling Algorithm is a boundary-driven technique that initiates flooding from known drainage points, ensuring all cells in a DEM or network optimize flow or power allocation.
  • It utilizes a priority queue to systematically update cell or channel values, maintaining minimal drainage levels and achieving efficient computational performance.
  • In wireless communications, a variant employs CVaR-based waterfilling to balance power allocation among terminals, yielding improved percentile-rate performance over classical methods.

In the cited literature, an edge waterfilling algorithm most directly denotes either a boundary-driven flooding procedure or a waterfilling-type resource-allocation rule at the wireless edge. In digital elevation model preprocessing, the canonical instance is Priority-Flood, which floods inward from the DEM boundary in order of lowest currently reachable spill level and raises enclosed low areas to the minimum elevation required for drainage. In wireless communications, the exact phrase appears in “Waterfilling at the Edge” for percentile-rate optimization, while related works use nearby formulations such as backhaul-aware, tail, sequential, or asynchronous waterfilling (Barnes et al., 2015, Yaylali et al., 14 Jul 2025).

1. Terminology and scope

In DEM hydrology, the relevant terminology is “flooding inward from the DEM edges,” “depression filling,” and “Priority-Flood.” The paper states that Priority-Flood is, in substance, exactly an “edge waterfilling” algorithm for DEMs, even though that phrase is not used in the paper itself. The central idea is that the correct place to begin filling is not at local pits, but at the boundary, because edge cells are the only cells that are trivially known to drain: each edge cell already has a path to the outside of the DEM (Barnes et al., 2015).

In graph morphology, related papers speak of flooding on edge-weighted or node-weighted graphs, watersheds, waterfalls, flooding adjunction, and flooding graphs. There, “edge” refers to edge-weighted graphs and pass-point altitudes rather than wireless edge service or boundary-initialized DEM flooding (Meyer, 2013, Meyer, 2012).

In communications, several papers use classical waterfilling structure without the exact phrase. One paper explicitly names an “Edge Waterfilling Algorithm” for cell-edge percentile resource allocation, while others study backhaul-aware waterfilling at the wireless edge, tail waterfilling under fading risk, capture aware sequential waterfilling for LoRaWAN, and distributed asynchronous iterative waterfilling for interference channels (Yaylali et al., 14 Jul 2025, Ahmad, 2015, Yaylali et al., 2023, Bianchi et al., 2019, 0801.2480).

2. Priority-Flood as boundary-driven edge waterfilling

For a DEM ZZ, the filled DEM WW is required to satisfy three conditions: W(c)Z(c)W(c)\ge Z(c) for every cell cc; for each cell cc of WW, there exists a path from cc to the boundary that descends by at least ϵ\epsilon at each step; and WW is the lowest surface satisfying those two properties. With ϵ=0\epsilon=0, this is ordinary depression filling. The result has no undrainable depressions and no digital dams; every cell is guaranteed to drain to the edge (Barnes et al., 2015).

The basic algorithm initializes a priority queue Open, a boolean array Closed, pushes every edge cell into Open with priority equal to its elevation, and marks those cells closed. Then, while Open is not empty, it pops the cell WW0 with minimum priority and processes each unclosed neighbor WW1 by the update

WW2

If WW3 is lower than the current flood level at WW4, it is raised to that level; otherwise it is left unchanged. The paper emphasizes that Closed is set when the cell is enqueued, not when later popped, preventing duplicate insertions. NoData can be treated as less than any real elevation, which allows irregularly shaped DEMs to be handled naturally as if surrounded by a sea lower than all terrain (Barnes et al., 2015).

The boundary-first ordering supplies the correctness intuition. When the minimum-priority cell WW5 is popped, it is the lowest known cell that drains to the edge. Any unprocessed neighbor WW6 lower than WW7 cannot have a lower outlet to the edge than WW8, so the least elevation to which WW9 can be raised while preserving eventual drainage is W(c)Z(c)W(c)\ge Z(c)0. This is why the method corresponds so closely to edge waterfilling: the fill height assigned to each depression cell is exactly its lowest spill elevation encountered from the outside (Barnes et al., 2015).

3. Correctness, complexity, and DEM variants

Priority-Flood is described as optimal for both integer and floating-point data, working in W(c)Z(c)W(c)\ge Z(c)1 and W(c)Z(c)W(c)\ge Z(c)2 time, respectively. For integer data, queue operations can be W(c)Z(c)W(c)\ge Z(c)3 with an integer-key structure such as a hierarchical queue or calendar queue, so the whole algorithm is W(c)Z(c)W(c)\ge Z(c)4. For floating-point data, comparison-based priority queues give W(c)Z(c)W(c)\ge Z(c)5. The paper also notes an W(c)Z(c)W(c)\ge Z(c)6 complexity when floating-point values are binned by unique levels using the mapped-queue method of Liu et al. (Barnes et al., 2015).

The improved Priority-Flood variant uses a plain FIFO queue Pit inside depressions and a priority queue Open only for the normal flood frontier. If a neighbor W(c)Z(c)W(c)\ge Z(c)7 is lower than W(c)Z(c)W(c)\ge Z(c)8, and thus raised to W(c)Z(c)W(c)\ge Z(c)9, the algorithm pushes cc0 into Pit rather than into the priority queue. This yields cc1, where cc2, and is presented as the lowest known time complexity for a floating-point depression-filling algorithm. In testing, the improved variation performed up to cc3 faster than the original, and an older parallel algorithm required six processors to match the run time of the improved single-processor variant (Barnes et al., 2015).

The same framework extends beyond flat filling. Priority-Flood+cc4 uses NextAfter to create strictly descending paths while perturbing the DEM as little as possible; Priority-Flood+FlowDirs computes flow directions directly without changing elevations and is described as a depression-carving formulation; and a watershed-labeling variant propagates outlet labels inward. The method applies to 4-connected, 6-connected, 8-connected, and general cc5-connected grids, as well as irregular meshes, provided a boundary can be identified and neighbors can be enumerated (Barnes et al., 2015).

4. Edge- and node-weighted graph flooding

In edge-weighted graph flooding, nodes carry flood levels cc6 and edges carry pass or pipe altitudes cc7. The hydrostatic law is local: if cc8 is higher than the pipe cc9, then levels equalize. The paper gives the flooding criterion in equivalent forms,

cc0

cc1

and

cc2

With a ceiling function cc3, the highest flooding under cc4 satisfies

cc5

If cc6, then necessarily cc7; this is the equalization rule across a sufficiently low barrier (Meyer, 2013).

The same paper shows that flooding on edge-weighted graphs admits a shortest-path interpretation with path altitude

cc8

and flooding distance

cc9

By adding a dummy source WW0 and edges WW1, the highest flooding under WW2 becomes the shortest ultrametric distance to WW3. This yields a minimax Dijkstra relaxation

WW4

as well as hierarchical-queue and minimum-spanning-tree formulations (Meyer, 2013).

A companion watershed paper develops the flooding adjunction and flooding graphs, with

WW5

and defines a flooding graph by the mutual consistency conditions WW6 and WW7. It also introduces pruning operators of increasing steepness and a scissor operator that keeps one flooding edge per node outside minima, producing nonoverlapping watershed partitions. This makes explicit that edge-weighted and node-weighted formulations are treated as equivalent rather than hierarchically ordered (Meyer, 2012).

5. Explicit “Edge Waterfilling” in percentile resource allocation

The paper “Waterfilling at the Edge” studies deterministic resource allocation in a point-to-point multi-terminal AWGN channel with no inter-terminal interference. Terminal WW8 has rate

WW9

with total power constraint cc0. The objective is not sum-rate, but the sum of the smallest cc1-quantile rates, written as the sum-least-cc2-quantile utility. Using a pseudo-stochastic interpretation over the set of terminal noise variances, the paper establishes an exact equivalence between that utility and a lower-tail CVaR of the rate distribution (Yaylali et al., 14 Jul 2025).

This reformulation yields a convex program and a closed-form waterfilling-type policy

cc3

The first term is classical waterfilling with water level cc4; the second is a CVaR- or VaR-induced cap. The paper interprets this as a policy that flattens rates among sufficiently good terminals while redirecting saved power toward weaker users. As cc5, the method reduces to classical waterfilling or sum-rate maximization (Yaylali et al., 14 Jul 2025).

The proposed Edge Waterfilling Algorithm is an inexact dual subgradient descent. At each iteration it computes cc6 by bisection to tolerance cc7, evaluates the closed-form cc8, and updates the scalar dual variable cc9 using the power-constraint residual. The paper states a per-iteration complexity of

ϵ\epsilon0

and gives a finite-budget ϵ\epsilon1-type bound when ϵ\epsilon2 and ϵ\epsilon3. In the reported experiments, Edge Waterfilling attains higher SLϵ\epsilon4Q values than proportional fairness and classical waterfilling in both scenarios listed in Table 1, including ϵ\epsilon5 versus ϵ\epsilon6 and ϵ\epsilon7 in one case, and ϵ\epsilon8 versus ϵ\epsilon9 and WW0 in the other (Yaylali et al., 14 Jul 2025).

The broader literature uses waterfilling structure in several edge-adjacent ways rather than under a single uniform name. In online basestation allocation, the optimal mutual-information value of classical waterfilling over a subset of parallel Gaussian channels is proved to be a monotone submodular set function, which yields an online greedy allocation algorithm with competitive ratio at most WW1 for the sum-rate objective under per-basestation waterfilling (Thekumparampil et al., 2014). In multi-connectivity with constrained backhaul, a UE allocates power across multiple AP uplinks using path-state feedback and the update

WW2

with convergence to within WW3 bps of the topology-aware optimum under the stated condition on WW4 (Ahmad, 2015).

Distributed interference-channel formulations replace centralized control by asynchronous best-response waterfilling. For Gaussian frequency-selective interference channels, the asynchronous iterative waterfilling algorithm updates each user with possibly outdated interference measurements and converges to the unique Nash equilibrium under the sufficient condition WW5 (0801.2480). The MIMO extension develops a fully distributed asynchronous iterative waterfilling algorithm for arbitrary channel matrices, together with uniqueness and convergence conditions and a modified game with milder sufficient conditions (0812.2324).

Risk-aware formulations use the language of tail waterfilling rather than edge waterfilling. In one paper, the CVaR-optimal policy for stochastic fading channels is

WW6

and the optimal quantile threshold is available in closed form from the fading quantile WW7; a later paper develops a purely dual tail waterfilling scheme to compute the dual variables more rapidly and assuredly than the earlier primal-dual method (Yaylali et al., 2023, Yaylali et al., 2023).

Other specialized variants retain the waterfilling structure but target different operating points. “Approaching Waterfilling Capacity of Parallel Channels by Higher Order Modulation and Probabilistic Amplitude Shaping” uses classical waterfilling and mercury-waterfilling as reference allocations and approaches them via PAS and product distribution matching (Steiner et al., 2018). “Capture Aware Sequential Waterfilling for LoraWAN Adaptive Data Rate” equalizes Time-on-Air load across spreading factors and reports up to WW8 capacity improvement over legacy ADR in multi-gateway settings (Bianchi et al., 2019). “Data-Importance-Aware Waterfilling for Adaptive Real-Time Communication in Computer Vision Applications” derives a task-weighted power law for semantic-region and bit-plane sub-streams and reports more than WW9 dB and ϵ=0\epsilon=00 dB gains in normalized IMSE over margin-adaptive waterfilling and equal power allocation at high SNRs ϵ=0\epsilon=01 (Xu et al., 28 Feb 2025). “Energy Efficient Iterative Waterfilling for the MIMO Broadcasting Channels” uses uplink-downlink duality and block-coordinate ascent to obtain an energy-efficiency-maximizing eigenmode waterfilling scheme for MIMO BCs (Xu et al., 2012).

Domain Representative formulation Paper
DEM preprocessing Boundary flooding from edge cells with ϵ=0\epsilon=02 (Barnes et al., 2015)
Edge-weighted graph flooding Minimax flooding with ϵ=0\epsilon=03 (Meyer, 2013)
Cell-edge percentile allocation CVaR-based ϵ=0\epsilon=04 (Yaylali et al., 14 Jul 2025)
Backhaul-aware wireless edge Dynamic-subset waterfilling under path-state feedback (Ahmad, 2015)
Distributed interference networks Asynchronous iterative waterfilling with stale interference information (0801.2480)

The resulting picture is not a single algorithmic lineage but a family resemblance. In DEMs, edge waterfilling is literally boundary flooding from the outside in. In graph morphology, it is flooding over edge barriers and ultrametric pass heights. In wireless systems, it names or approximates several thresholded resource-allocation laws, with the 2025 percentile-rate method being the clearest explicit use of the term “Edge Waterfilling Algorithm” (Yaylali et al., 14 Jul 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Edge Waterfilling Algorithm.