Logarithmic Approximation for Road Pricing on Grids

Andrei Constantinescu, Andrzej Turko, Roger WattenhoferarXiv 2025 · DOI

Abstract

Setting optimal tolls on city grids is a fundamental challenge in algorithmic game theory. This paper introduces the first polynomial-time algorithm that achieves an $O(\log m)$ approximation for the road pricing problem on fixed-width grid graphs. The approach utilizes a novel "assume-implement" dynamic programming technique and structural grid compression to manage the complex dependencies inherent in grid-like road networks.

Introduction

In urban planning and traffic management, the "State" often seeks to maximize revenue by placing tolls on road networks. This problem is complicated by the behavior of drivers, each of whom has a specific origin, destination, and budget. A driver will only utilize the network if the cheapest path—including tolls—falls within their budget. While solutions exist for simple topologies like trees, real-world "Manhattan-style" grids present significant challenges due to their overlapping cycles and high connectivity.

The Road Pricing Problem

The objective is to assign prices to edges in a grid graph to maximize total revenue from a set of potential buyers (drivers). Each buyer $i$ has a budget $b_i$ and a desired path from $s_i$ to $t_i$. If the shortest path distance $d(s_i, t_i)$ under the chosen pricing is $\le b_i$, the buyer pays the toll; otherwise, the revenue is zero. This problem is NP-hard on general graphs and even on grids, necessitating approximation algorithms.

Methodology

The researchers focus on width-$\omega$ grid graphs—grids that are $m$ units long but restricted to a constant width $\omega$. Their solution involves several integrated algorithmic layers:

1. Price Rounding and Recursive Decomposition

To handle the continuous space of possible prices, the algorithm rounds tolls to a discrete set of values, incurring only a constant factor loss in revenue. The grid is then decomposed into a hierarchy of blocks. Drivers are categorized based on the smallest block that fully contains their path.

2. Assume-Implement Dynamic Programming (DP)

The core innovation is the "assume-implement" DP. Standard DP approaches struggle with global path dependencies. In this framework, the algorithm "assumes" certain shortest-path properties for regions outside the current subgrid. As the DP scales to larger sections, it "implements" these assumptions by constraining edge prices to validate previous guesses.

Figure 1: Recursive decomposition and DP state representation for grid pricing, showing how buyer endpoints are managed across upper and lower matrices.

3. Grid Compression

To maintain a polynomial runtime, the authors prove that any long section of a grid can be compressed into a much shorter segment (depth $O(\omega^5)$). This compression preserves the shortest-path distances between boundary vertices, preventing the DP state space from expanding uncontrollably.

Key Theoretical Insights

  • Future-Proofing via Assumptions: The "assume-implement" technique allows for local decision-making that accounts for global network effects. By decoupling the revenue calculation of a driver from the final pricing of the entire grid, the algorithm manages complex dependencies.
  • Structural Simplicity: Despite the density of paths in a grid, the number of ways a shortest path can traverse a narrow strip is limited. This structural property is exploited by the compression lemma.
  • Driver Partitioning: By grouping drivers into $O(\log m)$ sets based on the recursive structure, the authors can solve for each group independently. The best solution among these groups provides a guaranteed $O(\log m)$ approximation of the global optimum.

Results

The primary result is a polynomial-time algorithm for width-$\omega$ grids that finds a pricing function yielding revenue at least $\Omega(1 / \log m)$ of the optimal. While the runtime is exponential in the width $\omega$, it remains polynomial in the length $m$ and the number of drivers $n$. Additionally, the authors provide a simpler algorithm for general graphs achieving an $O(\log |E| + \log |B|)$ approximation.

Limitations and Future Work

The current model is restricted to constant-width grids; extending these results to "square" grids (where width equals length) remains a significant open problem. Furthermore, the model assumes drivers only seek the cheapest path, ignoring factors like travel time and congestion. Future research could incorporate latency functions to better reflect real-world traffic dynamics and extend the "assume-implement" DP to broader graph classes like those with bounded treewidth.

Summary updated

Abstract

Consider a graph $G = (V, E)$ and some commuters, each specified by a tuple $(u, v, b)$ consisting of two nodes in the graph $u, v \in V$ and a non-negative real number $b$, specifying their budget. The goal is to find a pricing function $p$ of the edges of $G$ that maximizes the revenue generated by the commuters. Here, each commuter $(u, v, b)$ either pays the lowest-cost of a $u$-$v$ path under the pricing $p$, or 0, if this exceeds their budget $b$. We study this problem for the case where $G$ is a bounded-width grid graph and give a polynomial-time approximation algorithm with approximation ratio $O(\log |E|)$. Our approach combines existing ideas with new insights. Most notably, we employ a rather seldom-encountered technique that we coin under the name 'assume-implement dynamic programming.' This technique involves dynamic programming where some information about the future decisions of the dynamic program is guessed in advance and 'assumed' to hold, and then subsequent decisions are forced to 'implement' the guess. This enables computing the cost of the current transition by using information that would normally only be available in the future.
BibTeX
@misc{constantinescu2025logarithmic,
  author = {Andrei Constantinescu and Andrzej Turko and Roger Wattenhofer},
  title = {{Logarithmic Approximation for Road Pricing on Grids}},
  year = {2025},
  eprint = {2502.11979},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.11979},
}
Figure