arXiv:2610.24316cs.CCOct 2026

Manuscript Offprint

arXiv:2610.24316

Computational Complexity and Exact Algorithms for Pressure-Driven Hydrogen Charging

Nanase Sato, Wei Wu, Mutsunori Yagiura

Abstract

We study the problem of deciding the feasibility of pressure-driven hydrogen charging from supply cylinders to demand cylinders without replenishment, asking whether an order of transfers allows every demand cylinder to reach its target pressure. Hydrogen can be transferred from a cylinder to another only when the supply cylinder has higher pressure than the demand cylinder. The charging to each demand cylinder must be completed before starting another, and each transfer continues until the connected cylinders reach equal pressures or the demand cylinder reaches its target. We consider equal-capacity supply cylinders and arbitrary positive rational demand cylinder capacities.

Let nn be the number of demand cylinders and LL the binary input length. With one supply cylinder, feasibility is decidable in polynomial time; with two, it is NP-complete even with cylinder capacities equal to 1 and nonnegative integer pressures. We prove that feasibility is preserved even if the supply cylinders are always used in non-decreasing order of their current pressures when filling each demand cylinder. We also show that majorization of residual supply cylinder pressure states justifies discarding majorized states in dynamic programming over sets of completed demand cylinders without losing any feasible remaining demand cylinder order. Using these structural results, we design exact algorithms for deciding feasibility and analyze their running times; we also establish complexity bounds for the problem. With two supply cylinders, one state per completed demand cylinder set suffices, yielding 2n2^n poly(LL) time and space. With three, the exponential time hypothesis (ETH) excludes deterministic 2o(nlog⁡n)2^{o(n\log n)} poly(LL)-time algorithms. This lower bound is tight in the exponent because the rule for order of supply cylinders allows feasibility to be decided in n!poly(L)n!\text{poly}(L) time by enumerating only demand cylinder orders.

2012 ACM Subject Classification Theory of computation → Design and analysis of algorithms; Theory of computation → Problems, reductions and completeness

Keywords and phrases hydrogen charging, cascade filling, computational complexity, majorization, exact exponential algorithms, exponential time hypothesis

Complexity and Exact Algorithms for Hydrogen Charging

1 Introduction

Hydrogen refueling stations fill vehicle tanks using several supply cylinders at different pressures. Research on these systems has examined filling control and storage configurations, focusing on refueling time and energy consumption [1]. A common filling method uses lower-pressure supply cylinders before higher-pressure ones. Studies have also examined when to switch between these cylinders to improve refueling performance [6, 18].

We study the problem of deciding the feasibility of pressure-driven hydrogen charging under an isothermal ideal-gas model without replenishment. Each cylinder has a specified capacity and initial pressure; each demand cylinder also has a target pressure. To reflect station operations in which vehicles are filled one at a time [2, 5, 16], we require each demand cylinder to reach its target pressure before starting to charge another demand cylinder. Hydrogen flows only from a higher-pressure supply cylinder to a lower-pressure demand cylinder. Each transfer continues until the pair reaches equal pressures or the demand cylinder reaches its target pressure, whichever occurs first. We ask whether a transfer sequence fills every demand cylinder to its target.

Completing the same set of demand cylinders consumes a fixed total amount of hydrogen, but different filling orders can leave different supply cylinder pressure distributions. These distributions affect whether all remaining demand cylinders can reach their target pressures. This dependence on the residual pressure distribution complicates this problem.

References (69)