arXiv:2611.02481cs.DSNov 2026

Manuscript Offprint

arXiv:2611.02481

Generalized Flows over Time: Complexity, Structure and Algorithm

Siyuan Chen, Shengminjie Chen, Suixiang Gao, Zheyu Jiang, Dun Ma, Wenguo Yang

Abstract

Generalized flows over time constitute a general network flow model that incorporates both transit times and flow losses or gains. We study their complexity, structure, and approximation. We prove that the generalized maximum flow over time problem remains NP-hard under standard binary encoding, even on lossy two-terminal series-parallel networks. The maximum temporally repeated restriction is APX-hard with general gains and NP-hard on lossy networks. We then consider the minimum source supply needed to satisfy a fixed sink demand within a given horizon, and prove that an opti-

*An earlier version of this paper appeared at COCOON 2026 [4]. *Corresponding author. Email addresses: chensiyuan221@mails.ucas.ac.cn (Siyuan Chen), csmj@ict.ac.cn (Shengminjie Chen), sxgao@ucas.ac.cn (Suixiang Gao), jiangzheyu24@mails.ucas.ac.cn (Zheyu Jiang), madun21@mails.ucas.ac.cn (Dun Ma), yangwg@ucas.ac.cn (Wenguo Yang)

Preprint submitted to Theoretical Computer Science

November 3, 2026 mal solution always exists without intermediate storage. On lossy networks, such a solution can additionally use only simple source-sink paths. These structural properties yield a fully polynomial-time approximation scheme via time condensation, with analogous schemes for generalized maximum flows over time and quickest flows with a source-supply budget.

Keywords: Generalized flows, Flows over time, Computational complexity, Structural property, Approximation algorithms

1. Introduction

Network flow is a fundamental class of problems in combinatorial optimization, with widespread applications across logistics, transportation, and telecommunications (see, e.g., [2, 29]). Classical network flow models typically assume flow invariance along arcs and instantaneous transmission. However, in practical scenarios such as the long-distance pipeline transmission of oil or gas, the transportation process incurs not only physical losses or leakages but also transit times—characteristics that classical models fail to capture. To address these limitations, two significant generalizations have been established: generalized flows, which characterize physical flow changes, and flows over time, which account for the temporal dynamics of transmission. While research on these two extensions has historically proceeded in parallel, accurately modeling scenarios like pipeline transmission necessitates the integration of both frameworks.

Groß and Skutella [15] initiated the study of generalized flows over time. In their model, each arc aa is associated with a gain factor γa\gamma_{a} and a transit time τa\tau_{a}. Specifically, xx units of flow entering arc aa at time tt will result in

γax\gamma_a x units exiting at time t+τat + \tau_a. Within this framework, they investigated the generalized maximum flow over time problem (GMFP), which seeks to maximize the total flow reaching the sink within a fixed time horizon TT.

Groß and Skutella [15] established that the GMFP is NP-hard and even inapproximable. However, the gain factors in their reduction are implicitly encoded through the transit times, and their ordinary binary representations may have exponential length. Groß [14, Section 7.1.1] therefore left open whether the hardness persists under binary encoding. This leads to our first question:

Is the GMFP still NP-hard under standard binary encoding?

The authors [15] also designed a fully polynomial time approximation scheme (FPTAS) for the GMFP on lossy networks with proportional losses. Groß [14, Chapter 5] subsequently developed time-condensation algorithms for general lossy networks, where all gain factors are at most 1. However, their model and algorithms allow flow to be stored at intermediate nodes. In many practical scenarios such as traffic networks, limited space or time resources make intermediate stops undesirable or even prohibited. This naturally raises a second question:

Does the GMFP always admit a storage-free optimal solution?

This work considers these two questions and gives affirmative answers to both.

Our contributions. We first establish the NP-hardness of the GMFP under standard binary encoding via a reduction from the NP-complete problem Ex-

ACT COVER BY 3-SETS (X3C). This holds even on lossy two-terminal series-parallel (TTSP) networks with unit capacities, resolving the open question raised by Groß [14].

We then examine whether the GMFP admits a temporally repeated optimal solution, as such flows require no intermediate storage. A TTSP network with only three arcs shows that it does not. Furthermore, finding a generalized maximum temporally repeated flow is APX-hard with general gains and remains NP-hard on lossy TTSP networks.

These negative results compel us to adopt a direct proof approach. We consider the optimal generalized flow over time problem (OGFP), which minimizes the total source supply for a fixed sink demand and time horizon. We prove that it always admits an optimal solution without intermediate storage; taking the demand to be the optimal GMFP value gives the same conclusion for the GMFP. Our proof builds on the time-shift framework used by Fleischer and Skutella [7] to show that the minimum-cost flow over time problem admits a storage-free optimal solution. We extend this framework to accommodate gains and losses.

Further, we prove that in lossy networks, an optimal OGFP solution can simultaneously avoid storage and use only simple source-sink paths. This property allows us to apply the time-condensation framework of Fleischer and Skutella [7] and Groß [14] to obtain a storage-free FPTAS for the OGFP. Binary search gives the corresponding storage-free approximation for the GMFP and an FPTAS for the quickest-flow problem with a prescribed demand and source-supply budget.

Related work. Generalized flows were introduced by Kantorovich [18]; each arc is associated with a gain factor to model flow gain or loss. We refer the reader to Wayne [28] and Lin [21] for a comprehensive overview of generalized flow problems and related algorithms. The generalized maximum flow problem is the most classic and extensively studied subproblem. Goldberg, Plotkin, and Tardos [13] presented polynomial-time combinatorial algorithms, and Fleischer and Wayne [9] designed fast approximation schemes for generalized flow problems. Végh [27] presented the first strongly polynomial time algorithm for generalized flow maximization and subsequently, with Olver [23], proposed a simpler and faster strongly polynomial time algorithm. Krumke and Zeck [20] studied generalized max flow on series-parallel graphs.

Parallel to the study of physical flow changes, Ford and Fulkerson [10] pioneered the investigation of flows over time (also known as dynamic flows), associating transit times with arcs. For thorough surveys on flows over time, we refer to Aronson [3] and Skutella [25]. The time-expanded network [11] is a fundamental tool for solving such problems, transforming a dynamic flow problem into an equivalent static flow problem on a larger network. However, since network size depends linearly on the time horizon TT, algorithms based on it typically exhibit pseudopolynomial time complexity. To overcome this limitation, Fleischer and Skutella [7] introduced the time-condensation technique, which reduces the network size to polynomial scale at the cost of slightly relaxing the time horizon. Leveraging this technique, they designed FPTASs for numerous dynamic flow problems. Fleischer and Tardos [8] studied the relation between discrete- and continuous-time flows and developed efficient continuous-time algorithms. Klinz and Woeginger [19] established the complexity of minimum cost dynamic flows on TTSP networks.

The study of generalized flows over time was initiated by Groß and Skutella [15] and developed further in Groß's thesis [14]. More recent work considers generalized maximum flows over time with intermediate storage [6] and generalized flows with excess storage on TTSP lossy networks [1]. These models allow stored excess flow to contribute to the objective. Chen et al. [5] study the existence and approximability of generalized earliest arrival flows, which impose the delivery objective simultaneously over time.

Although existing results show that most single-commodity flow over time problems admit storage-free optimal solutions, the landscape differs in the multicommodity setting. In certain instances, allowing intermediate storage can indeed strictly improve the optimal solution, although this improvement is bounded, as discussed in detail by Groß and Skutella [17]. They also designed approximation schemes for maximum multicommodity flows over time without intermediate storage using sequence condensation [16].