WorksComputer Science
Concave Run Budgets and Restart Width
Abstract
A source-to-target path in an edge-labelled DAG uses each label in some number of maximal runs, with a label used in runs charged according to a nondecreasing concave rational tariff . We seek a path of total charge at most , or a shortest such path. We parameterize by restart width , the maximum number of labels that have already appeared and can still begin a new run at some vertex. It is at most live width but can be arbitrarily smaller. Let denote the number of distinct marginal rates of up to horizon . A lazy-commitment dynamic program solves minimum charge and feasibility in J_f(T)^{\wr}\poly(N) time, allowing arbitrary per-label tariffs and unbounded charge magnitudes. Thus the problem is FPT whenever is effectively subpolynomial. Conversely, for every fixed tariff with eventually, feasibility is NP-complete and W[1]-hard in , even on planar bipartite DAGs of maximum degree three and treewidth two whose paths have equal length, and admits no algorithm under ETH. The reduction uses positive pairwise Jensen-gap charges, requires no denominator assumption, and covers harmonic, geometric, and power-law tariffs. A -colour clique instance has width at most , improved to for polynomially bounded denominators. We further exhibit arbitrarily close tariffs with opposite parameterized complexity, give an FPT budget-relaxing scheme and accuracy obstruction, establish few-label hardness and W[P]-membership, and identify separate hardness from binary-encoded lengths. Oscillating plan growth and non-effective subpolynomial bounds remain open.
Introduction
Many resources are paid for per episode of use rather than per unit of use, and repeated episodes are discounted. A transit pass prices the second boarding of a line lower than the first and caps the total; a machine has a set-up cost each time it is switched back on, and maintenance contracts make later set-ups cheaper; a licence is reactivated at a declining fee. The common structure is a sequence of activities, each carried out with one resource, in which staying with a resource is free, returning to it starts a new episode, and the charge of a resource is a concave function of its number of episodes.
We study the routing problem this structure defines. The input is a directed acyclic graph with a source and a target whose edges carry labels (the resources). On a source-to-target path , a run of a label is a maximal block of consecutive -labelled edges, and denotes the number of runs of . Given a nondecreasing concave tariff with , the path is charged
CONCAVE RUN BUDGET asks whether some path has ; its optimisation variant asks for a shortest such path with respect to independent nonnegative edge lengths. For the charge is the number of label changes plus one, and for it is the number of distinct labels used, so the problem interpolates between two classical objectives. Minimising the number of line changes is polynomial on a last-label product graph [8, 17], whereas minimising the number of distinct labels is the minimum-label path problem, which is NP-hard, hard to approximate [10, 33, 8] and W[2]-hard in the number of labels used [23]. The tariff expression is already encompassed by the crossing-cost frameworks of Blanco et al. [5, 6], as explained in § 1.3. Our contribution is a parameterized analysis of this family in terms of restart width and marginal-rate growth, with a delayed-commitment algorithm and positive-charge consistency reductions.
What makes the general problem hard is memory: the charge of the next run of depends on how many runs of the path has already made. Only some of this history matters at a given vertex. A label that cannot occur again may be forgotten, and so may a label that can occur again but only as a continuation of its current run. We call the number of labels whose history genuinely has to be remembered at a vertex its restart width and write for the maximum over all vertices (Definition 2.2). Restart width is bounded by the live width , the maximum number of labels that occur both on some prefix and on some continuation at a vertex, and both are small when resources are localised in time; § 2.3 lists simple structural conditions. The obvious dynamic program stores a run count for every remembered label and takes time , where is the largest number of edges on a path. The question of this paper is for which tariffs the exponent can be removed.
Results
Let be the marginal rates of and let be the number of distinct values among . We call effectively subpolynomial if there is a computable with for all integers and , and we write
so that means for some and all sufficiently large . Throughout, is the input size and a fixed tariff is assumed to be rational and exactly computable up to horizon in time polynomial in .
Theorem 1.1 (Main theorem). Let be a fixed nondecreasing concave rational tariff with .
CONCAVE RUN BUDGET can be solved in time w_r$ if is effectively subpolynomial. The same holds for shortest feasible paths with polynomially bounded integer lengths, and for per-label tariffs with .
If , then CONCAVE RUN BUDGET is NP-complete and W[1]-hard parameterized by , and also by , even on simple planar bipartite DAGs of maximum degree three and treewidth at most two in which all source-to-target paths have the same number of unit-length edges. A -colour instance of MULTICOLORED CLIQUE is mapped to an instance with . Unless ETH fails, there is no algorithm with running time for any computable .
If moreover all values lie in for a polynomially bounded , the reduction in (2) can be made to have .
Part (1) is Theorem 3.2, part (2) is Theorem 4.6 and part (3) is Theorem 5.1. Neither (1) nor (2) depends on the numerical size of the charges: the algorithm compares exact rationals and the reduction uses tariff values only as they come. The two conditions are complementary up to oscillation. Since , a tariff has exactly when , and the only tariffs not classified are those with , whose plan count is polynomial along some horizons and subpolynomial along others, together with non-effective instances of (§ 10).
The growth of the value of the tariff is irrelevant; what matters is the number of distinct rates. § 6 exhibits a strictly concave tariff of logarithmic growth and, for every integer , a tariff with
such that the problem is W[1]-hard for and fixed-parameter tractable for every (Proposition 6.3). Tariffs on a fixed monetary grid, finite menus of plans and caps are always on the tractable side (Proposition 3.6); hardness needs marginal rates of ever finer resolution.
We complement the main theorem in three directions.
Budget relaxation. For arbitrary per-label tariffs and arbitrary rational lengths, a path no longer than the optimum and of charge at most can be found in time (Theorem 7.2). For hard tariffs with inverse-polynomial separation the dependence on cannot be made polynomial unless FPT = W[1] (Corollary 7.3).
Few labels. The total number of labels is a weaker parameter than width. For tariffs with on a polynomial grid the problem remains W[1]-hard in under disjunctive truth-table reductions, with labels, and for arbitrary per-label tariffs it belongs to W[P] (§ 8).
Binary lengths. With a length bound in binary, the harmonic tariff is NP-hard already at live width one, by a number-theoretic encoding unrelated to width (Proposition 9.1); tariffs on a polynomial grid do not show this effect.
Techniques
Algorithm. A concave tariff is the lower envelope of the affine functions that support it; each is a charging plan with a set-up fee and a per-run rate. This representation of concave costs is standard [37, 38]. A path may guess, for each label, the plan that will be tight for its final run count, and pay according to that plan. We observe that the guess can be postponed: a label pays the default rate until it commits, and committing late never undercuts the tariff (Lemma 3.1). The state of a label is then its committed plan or “default”, and unused labels and uncommitted labels are indistinguishable. Together with forgetting outside the restart set this gives states per vertex and last label.
Hardness. We reduce from Multicolored Clique. A selection gadget picks a vertex in each colour class and an edge for each pair of classes; the budget must force every picked edge to end at the picked vertices. Encode the index of a vertex by a run count . If two gadgets give a shared label and runs respectively, its charge is , and concavity gives
Equality holds if , and for it fails as soon as has a strict change of rate between and . So we use two shared labels for the pair of gadgets, and let each gadget pay, on private labels, a constant minus . The latter needs no subtraction: with candidate indices, the gadget selecting runs through private labels with runs for every , which costs up to a constant. All charges are tariff values, so no arithmetic assumption on is needed. Codes of polynomial size with a rate change between consecutive doubled values exist exactly when (Lemma 4.3). Checking each colour along a chain of its gadgets keeps two shared labels per colour alive at any time, whence width .
With a single shared label per colour and gadgets one would use the -point Jensen inequality instead and must realise the charge , which is not a combination of tariff values. On polynomial grids this can still be done with positive charges after restricting the code to one residue class modulo (§ 5); this is how part (3) of the main theorem saves a factor of two in the width.
Related work
Labels, colours and changes on paths. The two extreme tariffs are classical. Paths with few distinct labels are studied in [10, 33], with parameterized results for the number of used labels and for graph width measures in [23]. Böhmová et al. [8] consider routes in transit networks whose colours are lines: a route with fewest line changes is found in polynomial time, while minimising the number of distinct lines is hard to approximate; the same two constraints define the interchange- and colour-constrained shortest paths of [17], and the number of boardings is the standard second criterion of transit routing [18]. Davot, Giroudeau and König [16] study both objectives when every arc carries a list of colours and obtain W[2]-hardness and an algorithm that is fixed-parameter in the total number of colours. Bentert, Kellerhals and Niedermeier [4] bound the number of occurrences of each colour on a short path and prove W[1]-hardness in the number of colours by a reduction from MULTICOLORED CLIQUE with parallel-path selection gadgets, a template that our reductions share. Their separate study of balance-fair shortest paths [3] classifies several structural parameterizations. These colour-count constraints differ from a single budget on a sum of concave run tariffs.
Reload and changeover costs. These costs depend on the two colours involved in a transition [42, 26, 29]. A last-colour product graph handles nonnegative transition costs for walks, and for paths in a DAG. It does not in general enforce simplicity in a cyclic graph or solve spanning-tree and arborescence variants. The latter include minimum changeover cost arborescence, with distinct tractability and hardness results in treewidth and degree [31, 30]. Our additional source of history is that entering a label costs an amount depending on its earlier run count.
Crossing costs. The general model of Blanco et al. [6], Section 2.1 contains our tariff expression. Extend each tariff linearly between integers, take each label’s edges as a region, and use the discrete metric. Every nonempty DAG run has distinct endpoints, so its regional charge is . Their arc weights are for a positive constant ; hence their full objective is
Consequently, minimum charge is recovered on equal-length instances. More generally, if all tariff values up to lie in , choose : the additive perturbation is smaller than any positive charge gap, so every minimizer of minimizes . This is a deduction from their model. Our SHORTEST BUDGETED PATH, with independent lengths and a hard charge budget, is not a direct special case of that scalar objective.
The earlier ZIB report [5] studies linear, constant and piecewise-constant regional functions. Its Theorem 1 treats disjoint linear regions, Theorem 3 treats laminar linear regions, and Proposition 2 allows at most two linear regions per arc; Proposition 3 concerns flat fees, and Theorem 2 gives an FPTAS for one nontrivial piecewise-constant region measured by additive distance. Appendix A.2 retains entry vertices of currently traversed regions. Our label regions are disjoint, but nonlinear run charges require remembering a label after leaving it; simultaneous region overlap does not bound that history. These results do not give the restart-width and marginal-growth criteria studied here. The 2017 polynomial case assumes linear functions and pairwise disjoint regions [6 Section 2.2].
Fares and resource-constrained shortest paths. Our optimisation variant is a shortest path problem with one non-additive resource. Labelling algorithms for such problems are surveyed in [34], and Parmentier [39] treats non-linear resources in a lattice-ordered monoid. Fare structures of public transport are modelled by monoids of tickets and conditional fare networks by Euler, Lindner and Borndörfer [21, 22], and Schöbel and Urban [40] classify the cheapest ticket problem for distance- and zone-based fares into polynomial and NP-complete cases. These works address dominance, modelling power and classical complexity. We ask when one specific history, the run counts, can be compressed to a number of states that is fixed-parameter bounded. The numerical side of the two-criteria problem is that of restricted shortest paths [32, 36, 41], from which the budget-relaxing scheme takes its rounding.
Concave costs and plans. Goel, Tripathi and Wang [28] study combinatorial problems with concave discounted prices, including shortest paths in undirected graphs: selected edges are allocated to agents, each applying a concave function to its total assigned cost. Our labels are fixed and their charges depend on maximal runs. Zhang, Shen and Song [43] study a bi-attribute shortest-path objective with a concave function of an aggregate path attribute. Count-dependent concave penalties also occur in degree-constrained orientation [1] and set cover [12]; formal-language constraints [2] and nonadditive traffic-assignment costs [25] are further relatives.
Writing a concave cost as a minimum of fixed-charge affine pieces is standard [37, 38], as is approximating it by a small piecewise-linear menu [37]. Our algorithm uses this representation with delayed commitment, merges unused and default states, and forgets plans outside the restart set. Bredereck et al. [9 Section 2, Theorem 2] obtain fixed-parameter algorithms for mixed integer programs with few integer variables and constraints of the form , with convex and concave . Each such inequality defines a convex continuous feasible set. An upper bound on a sum of concave costs has the opposite orientation and is generally nonconvex, so their theorem does not directly apply to our budget constraint. Theorem 1.1 instead relates the growth of the plan count to tractability in restart width.
Width parameters. Live width is a cut measure on label occurrences. On a single path, associate with each label the interval of internal cuts after its first edge and before its last, omitting empty intervals. Then live width is the clique number of the auxiliary interval graph on these label lifetimes and, when this graph is nonempty, one more than its pathwidth. This is an observation about the auxiliary graph, not the underlying path; Kinnersley [35] establishes the general equality between vertex separation and pathwidth. The vertex-interval-membership width of temporal graphs, introduced by Bumpus and Meeks [11] and developed further in [20], uses the related idea of vertices active between their first and last time-edge. In a branching DAG, liveness is taken over all prefixes and continuations of a vertex, as in the live-variable analysis of compilers, and restart width refines it further. Our contribution is the use of these label-history sets in the plan algorithm and hardness classification. Live width is incomparable with the treewidth of the underlying graph: the path with label word has live width , and an acyclic tournament with pairwise distinct edge labels has live width zero. Our hardness results hold on graphs of treewidth two.
Organisation
§ 2 fixes the model, defines the two width parameters and proves the forgetting lemma. § 3 gives the plan algorithm, § 4 the lower bound and § 5 its refinement on polynomial grids. § 6 discusses concrete tariffs and separation gaps. Sections 7, 8 and 9 treat budget relaxation, few labels and binary lengths, and § 10 lists open problems.
Model and width parameters
Tariffs and problems
A tariff is a function with whose marginals , , satisfy ; that is, is nondecreasing and concave. An integer is a drop of if , and denotes the size of the decrement at . For a horizon ,
and denotes the least positive integer with . We say that lies on a polynomial grid if for a constant and all .
An instance consists of a DAG with a source and a target , a label for every edge, and a budget . We assume that is trimmed: every vertex and edge lies on an – path. A path is an – path unless said otherwise, a prefix at is an – path and a continuation at is a – path. For a walk we write for its set of labels, for the label of its last edge, and for its number of maximal runs of . We let be the largest number of edges of a path and the number of labels.
In the common-tariff model one tariff is fixed in advance and is not part of the input. We assume that can be computed in time polynomial in ; in particular these numbers have polynomially many bits, although may be exponential. In the per-label model every label has its own tariff , given in the input by a representation from which can be computed in time polynomial in the input size, such as a table of marginals, a finite menu of affine plans, or a cap with binary coefficients. The charge of a path is . All algorithms are stated for the per-label model and all lower bounds for the common-tariff model. In both, denotes the total bit length of the input.
CONCAVE RUN BUDGET: decide whether some path has .
SHORTEST BUDGETED PATH: given in addition nonnegative rational edge lengths , find a path minimising subject to .
We refer to the first problem as feasibility. Hardness results always concern feasibility. For we distinguish unit lengths, integer lengths bounded by a given , and arbitrary rational lengths in binary.
By a fixed-parameter algorithm we mean one with running time for a computable ; this is the reason for the word “effectively” in the definition of effectively subpolynomial tariffs. If only is known, the algorithm of § 3 still runs in time for some function , which need not be computable; in the terminology of Downey and Fellows [19 Chapter 2, Definitions 2.1.1 and 2.2.1(i)] the problem is then uniformly but perhaps not strongly uniformly fixed-parameter tractable.
Remark 2.1 (Cyclic networks and policies). Deleting symbols from a word does not increase any run count: map each -run of the remaining word to the -run of the original word that contains its first symbol; two runs with the same image would be separated by a remaining symbol different from inside one run of . Hence, in a cyclic network, possibly in product with a finite automaton restricting the admissible label sequences [2], closed subwalks can be removed without increasing charge or length, and it suffices to consider walks with fewer edges than the product has vertices. Unrolling the product to that horizon gives a DAG to which our algorithms apply. Unrolling may increase the width considerably, since every label of a strongly connected component can be live in the middle layers; the parameters are meaningful primarily for acyclic or time-expanded inputs.
Live width and restart width
For a vertex let be the set of labels occurring on some prefix at and the set of labels occurring on some continuation at .
The restart set can be derived directly from the run-count update rule. Keep the last label to decide whether the next edge starts a run. A label’s older history can affect a future payment only if it has already occurred and some continuation can start another run of it. Taking this condition over all prefixes and continuations gives the following graph-defined set; the projection construction below proves that it is sufficient for exact dynamic programming.
Definition 2.2. The live set of is , and the live width of the instance is . The restart set of is
and the restart width is .
Both definitions quantify over all paths of the graph, irrespective of the budget. Clearly and . A label that occurs on a single edge is never live, because a prefix and a continuation at concatenate to a path. Hence , where is the number of labels occurring on at least two edges.
Lemma 2.3. (i) Let be a prefix at and a continuation at . Whether an edge of starts a new run in depends only on and .
(ii) The sets can be computed in polynomial time.
(iii) For every there is a simple DAG with and .
Proof. (i) An edge starts a new run exactly if the edge preceding it on carries a different label or does not exist.
(ii) For a label let hold if some prefix at contains and ends with a label other than , and let hold if some continuation at contains a -edge immediately preceded, within the continuation, by an edge with another label. By (i), a run of is started in after either at the first edge of , which requires , or at a later edge, and conversely if and then the first -edge of starts a run. Therefore
Each predicate is a reachability question in the product of with a three-state automaton and is computed by one pass in topological order.
(iii) Take internally disjoint two-edge paths from to a vertex and internally disjoint two-edge paths from to ; label both edges of the -th path on either side with . Then . Every path has the word , in which no label starts a second run, so all restart sets are empty.
We now define the projection explicitly. For each label , let be a state set with initial state , let be the admissible choices in state , and let and be the updated state and payment. The full process starts with for every . At a run start of it chooses , pays and replaces by . On a continuation edge it pays zero and changes no history state. Other labels are unchanged at every step.
The projected key at is , where is the last label (or an initial symbol ) and is stored for . Given an edge of label , set
If , choose , pay and let equal except that . If , pay zero and set . The next key is
Initially all stored states are . Thus admissible choices, payment and next key are functions only of the current key, edge and choice; no unrecorded prefix is consulted.
Lemma 2.4 (Projection). For every source-to-target path, the full and projected processes have the same admissible choice sequences and the same payments along each such sequence.
Proof. Couple the processes along a path. For every prefix ending at and every maintain
The invariant holds initially. Suppose has label and starts a run. If , the second alternative is impossible, since a continuation through starts a run of ; hence . If , then , for otherwise and a continuation through would witness membership in . Again . The choices, payment and update therefore agree. On a continuation edge both processes do nothing.
To propagate the invariant, fix . If starts a run of , both updated states agree by the preceding argument. Otherwise neither process updates . If , equal old states remain equal; the second alternative, when applicable, persists because every continuation at gives the continuation at . If and , both old states are . If but , no continuation at can restart after ; applying this to proves the second alternative at . This completes the induction. At every run start the state consulted by either process is the same, proving admissibility and equality of payments in both directions.
A dynamic program on these keys is therefore exact. Lemma 2.3(i) determines run starts from the last label, and the explicit transition rule determines the next key and payment. The last label is stored even when it is outside the restart set.
Proposition 2.5 (Count-state baseline). For per-label tariffs, a path of minimum charge can be computed in time . If , then every used label has exactly one run, is additive over run starts, and minimum-charge computation and feasibility are polynomial.
Proof. Apply Lemma 2.4 with and cost at a run start, and keep the minimum accumulated charge for each key. There are at most keys. If two runs of occurred on a path, would be in the restart set of the tail of the edge starting the second run.
Structural sources of small width
Since , any bound on live width is a bound on the parameter. Three simple situations give such bounds.
Temporal localisation. Suppose vertices carry times that do not decrease along edges, and all endpoints of -labelled edges have times in an interval . A label that is live at has an edge before and an edge after , so contains the time of . If no point of time lies in more than intervals, then . Validity windows of contracts in a time-expanded network are of this form.
Bounded recurrence. In a layered DAG in which the edges leaving each layer use at most labels and the first and last layers in which a label is used are at most apart, a label live in layer is used in one of the preceding layers, so .
Sessions. If the DAG is a series composition of sessions, at most labels are used in more than one session and each session has at most further labels occurring on more than one edge, then , regardless of the number and size of the sessions.
Trips that cannot be re-boarded. This example is intended in the per-label tariff model, so trips and contracts may have different tariffs. Consider a time-expanded timetable with the following single-label assignment. Movement and dwell arcs aboard trip carry its trip label , so staying aboard through a stop continues the same run. Other arcs representing separately billed access or transfer services carry one of at most persistent contract labels, distinct from all trip labels; any remaining arcs have fresh labels. Thus each arc carries exactly one label, and a contract label never interrupts an on-vehicle trip segment. Suppose that, after leaving a trip, no feasible continuation can catch that trip again. Then trip labels never belong to a restart set, although they can be live along their routes. Only the contract labels can restart, giving regardless of the number of live trip labels. This hypothesis is substantive: walking shortcuts or faster connecting services can make re-boarding possible.
A stylised pulse-transfer hub illustrates the separation in Lemma 2.3(iii), with longer route segments and a shared source and target. Let through trips meet at one transfer event , with one incoming and one outgoing route segment for each trip and no further interchanges. Collapse the transfer event to one vertex, so staying aboard keeps the same label. Every route has label word for positive . Each trip label occurs on a prefix and a continuation at , giving , but no route uses any trip in two runs, giving . The segments may have arbitrarily many stops.
These bounds refer to the labels as given. Splitting a persistent resource into one label per session changes the charge, because is in general strict; it is legitimate only if the contract itself resets.
Plan growth
The following elementary reformulation of is used in § 4. Let , with if no such exists.
Lemma 2.6. if and only if is bounded by a polynomial in .
Proof. If for , then . Conversely, if for all , then for large and we get , since is nondecreasing.
Exact compression by charging plans
Supports and delayed commitment
Fix a label with tariff , marginals and horizon . For the support at is the affine function
Because the marginals are nonincreasing, for all , with equality at and . Supports with the same rate coincide, so there are distinct supports, and for . The support at 1 is the default . We regard a support as a plan with set-up fee and rate . More generally, a menu for is any finite set of plans with and that contains the default, dominates on and attains for every . The canonical menu of supports need not be the smallest one: for a cap the two plans and form a menu, while there are three distinct marginals when is not an integer.
Lemma 3.1 (Delayed commitment). Let a label pay as follows. At each new run it pays the default rate , until at the start of some run it commits to a non-default plan of its menu; at that run it pays , and at each later run it pays . Then every such strategy pays at least over runs, and for every some strategy pays exactly .
Proof. Never committing costs . Committing to after default runs costs
For exactness, commit at the first run to a plan attaining , or never commit if the default attains it.
The state of a label under such a strategy is either one of the non-default plans or “default”. A label that has not been used and a label that has been used at the default rate are in the same state, which is what makes the state space independent of run counts.
The algorithm
For per-label tariffs let for canonical menus, or the largest size of the supplied menus after deleting redundant plans. For a supplied menu, retain the default and one attaining plan for each integer ; this preserves exactness and ensures .
Let be a common denominator of every retained plan fee and rate, including the default rates, and let . For canonical supports it suffices to clear the tariff values , since their fees and rates are integer linear combinations of these values. For supplied menus the coefficients can require a finer grid. This distinction affects only part (3) below; parts (1) and (2) use exact rational arithmetic without forming .
Theorem 3.2 (Plan compression). For per-label tariffs the following hold.
(1) A path of minimum charge can be computed in time .
(2) With integer lengths at most , Shortest Budgeted Path can be solved in time .
(3) With arbitrary rational lengths, it can be solved in time .
Proof. Consider the process of Lemma 2.4 in which , where means default. At an edge starting a run of with the process either stays in and pays , or commits to a plan and pays its fee and rate; with it pays . Call the total payment along a path, for some choices, a certificate of the path. By Lemma 3.1, applied to each label, every certificate of is at least and some certificate equals . Hence the minimum certificate over all paths and choices equals .
By Lemma 2.4 the same certificates are produced by the projected process, whose keys consist of a vertex , the last label, and a state for every label in . There are at most keys, and each has at most transitions per outgoing edge.
Process the keys in topological order of their vertices and keep for each key the minimum certificate of a prefix reaching it. A path performs at most additions of fees and rates, each a rational number with polynomially many bits, so all numbers stay polynomially long and no common denominator is ever formed.
Extend the key by the accumulated length in and keep the minimum certificate for each extended key. The answer is the least length for which some key at has certificate at most .
Extend the key instead by the integer times the accumulated payment and keep the minimum length. Since payments are nonnegative and an exact certificate of a feasible path is at most , payments above are discarded, which leaves at most values.
In all three cases two records with the same extended key have the same transitions and future payments, so the dominated one can be discarded.
Corollary 3.3. Let be a class of per-label inputs for which there is a computable with whenever . On , feasibility and SHORTEST BUDGETED PATH with polynomially bounded integer lengths are fixed-parameter tractable in . For rational lengths the same holds if in addition is polynomially bounded in . In particular this applies to every fixed effectively subpolynomial tariff, and for rational lengths if it also lies on a polynomial grid.
Proof. Let . If then , and otherwise .
For example, gives , and so does , because for .
Example 3.4 (Huge denominators are harmless). Let . Then , while . The numerators and denominators of all values up to each have at most bits, so Theorem 3.2(1),(2) apply and the problem is fixed-parameter tractable, although no polynomial grid exists.
Example 3.5 (Per-label caps). If every label has a cap tariff with its own binary-encoded coefficients, the two-plan menus give time for feasibility, whereas run counting needs up to states per label. For rational lengths the per-label magnitudes matter: already linear tariffs on a graph in which every label occurs once (, ) encode the restricted shortest path problem, which is NP-hard [27]. This is why part (3) involves .
Fixed monetary resolution
Proposition 3.6. For a tariff the following are equivalent: (a) all marginals lie in for some integer ; (b) is eventually linear; (c) is bounded. In this case SHORTEST BUDGETED PATH is fixed-parameter tractable in even for rational lengths.
Proof. If (a) holds, the marginals form a nonincreasing sequence in , which has at most drops; this gives (c), and (c) implies that the marginals are eventually constant, which is (b). If (b) holds, there are finitely many distinct marginals and their common denominator serves as . Under (a) both and are bounded by constants, and Theorem 3.2(3) applies.
Thus every tariff quoted in a fixed currency unit is tractable, and so is every finite family of such tariffs from which labels choose. For an eventually linear fixed tariff one could equally clip run counts at the point of linearity; plans are needed for input-dependent menus such as Example 3.5 and for tariffs that never become linear. If per-label marginals lie on a grid supplied with the input, then , and feasibility is fixed-parameter tractable in .
For a fixed tariff with , , Theorem 3.2 still improves the exponent of the baseline from to . The next section shows that it cannot be removed.
Hardness for polynomial plan growth
Throughout this section is a fixed tariff in the common-tariff model.
Jensen gaps and strict codes
Lemma 4.1 (Gap identity). Let and let be integers whose mean is an integer. Put and . Then
where unless , and for . In particular the left-hand side is nonnegative, and it vanishes if and only if has no drop with . If , it is at least ; if , it is zero.
Proof. From we get for every integer . The linear terms cancel in the left-hand side, which gives the identity. If then all positive parts equal their arguments and ; if all terms vanish. Let . If then . If then . If , all coefficients are zero. Otherwise , which gives the stated lower bound.
Definition 4.2. Let . A sequence of positive integers is a -strict code for if for every there is a drop of with . Its size is the number .
By Lemma 4.1 with , a -strict code satisfies, for all indices ,
We need codes whose size, and not merely bit length, is polynomial, because run counts are realised by explicit paths. For instance, the tariff with has the 2-strict codes , but none of polynomial size.
Lemma 4.3 (Codes and plan growth). The following are equivalent.
(a) .
(c) There are constants such that for all and a -strict code of length and size at most exists and can be computed in time polynomial in and .
Proof. (c) implies (b) trivially. Assume (b). The drops witnessing strictness for are distinct and smaller than , so and ; Lemma 2.6 gives (a).
Assume (a). By Lemma 2.6 there are constants with for . Given and , let and compute marginals until distinct values have been seen; this happens at horizon and takes polynomial time. There are at least drops below . Let be the -th, -th, , -th of them, so that , and set . Then , so the sequence is increasing and the drop lies strictly between and . The size is . □
No bound on denominators enters this lemma. The algorithm in (c) need not know the constants: it simply scans until enough drops are found.
Building blocks
A label is fresh if it is used on exactly one edge of the constructed graph. A fresh label is never live and contributes to the charge of every path through its edge. A label is private to a subpath if all its occurrences are on that subpath.
Lemma 4.4 (Normalised block). For integers and a label there is a word of length that contains occurrences of , forming exactly runs, and fresh labels, the last of which is its final symbol.
Proof. Write copies of , then times a fresh label followed by , then fresh labels.
Whenever such a block is preceded by a symbol other than , it gives exactly new runs, and the other labels of the block are charged regardless of .
Lemma 4.5 (Selection gadget). Let , with , be label words of common length , and put . There is a two-terminal series-parallel DAG with terminals , of size , such that every – path spells fresh labels, some , and fresh labels, and every is spelled by some path. The terminals have degree at most two and all other vertices have degree at most three.
Proof. Repeat words to obtain a list of exactly words. For one word take a path spelling it. For a list of words, , take the gadgets of its two halves, new terminals , a fresh-labelled edge from to the first terminal of each half and a fresh-labelled edge from the second terminal of each half to . Inner terminals receive one edge on the outside and have at most two on the inside. □
A chain of selection gadgets joins the second terminal of each gadget to the first terminal of the next by a fresh-labelled bridge. If the words within each gadget have equal length, then all source-to-target paths of the chain have the same number of edges, so the DAG is layered and hence bipartite. It is simple, series-parallel, hence planar and of treewidth at most two [7], and its maximum degree is three. All paths contain the same number of fresh selector and bridge edges.
Figure 1. The modules of one colour , in the order in which a path meets them. Consecutive modules share two check labels. The check between positions and contributes above a constant, with equality exactly if . At any vertex at most two check labels of the colour are live.
The reduction
Multicolored Clique asks, for a graph whose vertex set is partitioned into colour classes , whether has a clique with one vertex in each class. It is W[1]-hard parameterized by [24]. We assume , write , and put . Let be the set of edges between and ; if some or is empty the answer is no.
Theorem 4.6. Let be a fixed tariff with . There is a polynomial-time algorithm that maps an instance of Multicolored Clique to an equivalent instance of Concave Run Budget for with whose graph is a simple planar bipartite DAG of maximum degree three and treewidth at most two in which all paths have the same number of edges. Consequently Concave Run Budget for is NP-complete and W[1]-hard parameterized by or by on this class of graphs, and unless ETH fails it has no algorithm with running time for any computable .
Proof. Since , we have : otherwise all marginals would vanish. If some colour class or some set is empty, output the one-edge – graph with budget zero. Its unique path has charge , and its live width is zero. We may therefore assume that all these sets are nonempty. Code entries not used as vertex indices are allowed in the compensating private blocks.
Code. By Lemma 4.3 we compute a 2-strict code of size polynomial in . For indices let
so with equality exactly if , by (2).
Gadgets and positions. The graph is a chain of selection gadgets: a vertex gadget for each colour , followed by an edge gadget for each pair . Colour is involved in and in the gadgets , ; we number these gadgets in chain order and call the number the position of the gadget for colour . For every colour and every there are two check labels and .
Parts and modules. For a colour , a check and an index , the part is the word
where are new labels private to their blocks. It has length . Apart from the two check labels, its labels are charged
where does not depend on . The module for position is , where and are empty. Its length depends only on .
Payloads. The words of are the modules for , where is the position of for colour . The words of are for all edges , with the positions of for and . Private and fresh labels are new in every word, including repeated copies. The budget is
where is the number of selector and bridge edges on a path.
Charge of a path. A path selects one word in every gadget and thus, for each colour , an index at each position . Every block either starts the path or is preceded by a fresh label, possibly the final label of another block, so runs never merge across blocks. The label occurs only in the parts at positions and and therefore has runs; the same holds for . A path traverses parts, two for each check, and by (3)
Hence , with equality if and only if for every , that is, if and only if every selected edge in joins the selected vertices of and . Such a path exists exactly if has a multicoloured clique.
Width. Write for the gadgets in chain order. For a colour , let be the indices of its involved gadgets, and put for and . Labels in occur only in and .
First consider a vertex in a gadget that does not involve . If exactly involved gadgets precede it, all check labels other than those in have both occurrence gadgets on the same side, so only can be live there. The same argument applies at both endpoints of a bridge: take to be the number of involved gadgets up to and including the gadget before that bridge. The bridge itself is a single fresh edge and has no internal vertices.
Now let lie in the involved gadget . Only the labels in can be live at . View the selection gadget as a splitting tree, internally disjoint payload paths, and a merging tree. At a vertex of the splitting tree, including a payload start, every prefix traverses only selector edges within this gadget. Since labels in first occur in this gadget, . At a vertex of the merging tree, including a payload end, every continuation traverses only selector edges within this gadget. Since labels in last occur in this gadget, . These statements also cover the gadget terminals and the case of a single payload, for which the selector trees have depth zero.
If is strictly inside a payload path, every prefix and continuation through uses that same payload path inside the gadget. In this word all occurrences of precede all occurrences of , because the module is ; any module of another colour is wholly before or after it. If the payload prefix up to contains no edge labelled from , then . Otherwise all occurrences of in this payload precede , and this check has no later occurrence gadget, so . Thus at most one of the two check pairs can contribute live labels, and at most two check labels of colour are live at every vertex.
Fresh labels are never live. A private label is confined to one block on one payload copy. If it is live at , a prefix and a continuation witnessing this concatenate to a path through two occurrences of that label, forcing to be an internal vertex of its block. Distinct private blocks have disjoint interiors, so at most one private label is live at a vertex. Consequently , and by definition.
Size and graph class. Every payload has at most symbols. Each gadget has at most candidate words before padding and fewer than payload copies after padding.
There are gadgets, so the numbers of vertices and edges are . Since is polynomial in , this is polynomial in and , with an exponent independent of . The values of up to have polynomial bit length and can be computed in polynomial time. The budget is a sum of polynomially many such rational values with polynomially bounded integer coefficients, so it too has polynomial bit length and is exactly computable in polynomial time. Encoding vertex and label identifiers therefore gives . The graph properties were established after Lemma 4.5.
Consequences. The reduction is polynomial and maps to a width of at most ; this proves NP-hardness and W[1]-hardness. Membership in NP holds because the charge of a given path is computed in polynomial time. Under ETH, MULTICOLORED CLIQUE has no algorithm for computable [15 Corollary 14.23] (see also [13]). Suppose feasibility had running time for , with . Put and . Then is computable and : for any , the finitely many values before contribute only a fixed constant to the maximum. For a constant the constructed instance has and , so the target running time is at most . Here , and the factor depending only on is bounded by a computable function, since . Including the polynomial reduction time therefore gives a algorithm with computable , contradicting the cited lower bound because .
Up to constant factors in the exponent the lower bound matches the count-state algorithm of Proposition 2.5, whose running time is .
Remark 4.7 (Separation gap). In the constructed instances every path has charge exactly or at least , where by Lemma 4.1
If lies on a polynomial grid, all charges and are multiples of , so is inverse-polynomial. In general may be exponentially small, as for geometric marginals.
Remark 4.8. The construction uses private labels generously. The number of labels occurring more than once is polynomial in and , so the theorem says nothing about the parameters and , which are treated in Section 8.
Width on polynomial grids
The reduction of Section 4 keeps two check labels per colour alive. With a single shared label per colour, receiving runs in each of the gadgets that involve the colour, the charge of is , and (2) with shows that consistency is detected if each of these gadgets additionally pays a constant minus . This quantity is not a sum of tariff values. We show that on a polynomial grid it can nevertheless be paid by positive charges, after a suitable choice of the code. The result is the following refinement.
Theorem 5.1. Let be a fixed tariff on a polynomial grid with . Then the statement of Theorem 4.6 holds with in place of .
Lemma 5.2 (Positive padding). Let , let , let be a positive integer with , and put
where ranges over .
(i) for all .
(ii) Every integer is a sum of at most numbers from , and such a representation can be computed in time polynomial in , and .
(iii) For every integer and every integer , one can construct in time polynomial in , , a word of length exactly and charge exactly in which no label has more than runs, all labels are new, and at most one label is live at any position.
Proof. (i) .
(ii) The are positive integers with greatest common divisor one. Let and consider the digraph on with an arc of weight from to for all and . The residues reachable from form a subsemigroup of a finite group, hence a subgroup, which is the whole group because the are coprime. A shortest path from to the residue of uses at most arcs and has weight at most ; adding copies of gives . Shortest paths are found by Dijkstra’s algorithm.
(iii) For a term write a new label followed by times a fresh label and . This word has charge . Concatenate the words of all terms of a representation of , with new labels in each; consecutive words begin and end with different labels. The only labels with more than one occurrence are the labels , each confined to its word. There are at most terms and each block has length , so the concatenation has length at most . Repeating its first symbol reaches any prescribed without adding a run.
Lemma 5.3 (Residue-selected modules). Let lie on a polynomial grid and . For all and one can compute, in time polynomial in and , a -strict code of size , a rational and an integer such that for every and every label there is a word of length that consists of followed by a word in new labels, has at most one live label other than at any position, and whose labels other than are charged exactly
All charges of labels with at most runs are multiples of for an integer bounded by a polynomial in and , and .
Proof. By Lemma 4.3(c) compute a -strict code of length ; let , and , which are polynomially bounded, and define , and as in Lemma 5.2. As in the proof of Theorem 4.6, . By Lemma 5.2(i) the numbers are nonnegative integers. Some residue class modulo contains at least of them; keep such candidates and call them . A subsequence of a -strict code is -strict. The integers
satisfy
Put . Since , Lemma 5.2(iii) constructs, for every , a padding word of length exactly and charge . Let be followed by this word, set , and set . The block ends with a fresh label, so no runs merge. Since and , the numbers and are polynomial. Finally .
The role of the residue class is to make congruent, for all retained , to one fixed element modulo the lattice of realisable charges. The pool of candidates and the numbers and are fixed before the selection, so there is no circular dependence between the code and its lattice.
Proof of Theorem 5.1. Apply Lemma 5.3 with . Use the chain of gadgets of Theorem 4.6, one shared label per colour, the words in and the words in , with new private labels in every word. Each colour is involved in exactly gadgets, so a path selecting indices for colour has charge
because is charged and the other labels of its words are charged . By (2) the budget is met exactly by the paths that encode a multicoloured clique. At most the shared labels and one private label are live at a vertex. The remaining assertions are proved as in Theorem 4.6. Every label has at most runs, so all charges and lie in , and inconsistent paths exceed the budget by at least .
Concrete tariffs, close tariffs and separation
Hard tariffs
A tariff is strictly concave if every is a drop; then , , and is a -strict code for every . Theorem 4.6 therefore applies to the harmonic tariff , to the reciprocal-power tariffs with for a fixed integer , and to the bounded geometric tariff with . None of these lies on a polynomial grid. The following tariffs do.
Let and define and, for a fixed integer , by
Proposition 6.1. (i) is a strictly concave tariff with for all , and .
(ii) is a tariff whose drops are exactly the perfect -th powers; , , and for .
Proof. (i) Within a dyadic range consecutive marginals differ by . The last marginal of the range is and the first of the next range is , which again differ by . All marginals up to have denominators dividing , and the marginals of a dyadic range sum to . (ii) The index map is nondecreasing and increases exactly after perfect -th powers; the remaining claims follow from (i), and .
Corollary 6.2. CONCAVE RUN BUDGET is NP-complete and W[1]-hard in on the graph class of Theorem 4.6, with the ETH bound stated there, for every strictly concave tariff with polynomial-time evaluation, in particular for , for reciprocal powers and for geometric marginals, and for and every . For and the instances can be taken of width at most , and SHORTEST BUDGETED PATH with rational lengths is in XP for these two families. For every there is a hard tariff with . Proof. Theorems 4.6 and 5.1 and Proposition 6.1. For the XP statement extend the keys of Proposition 2.5 by the scaled charge as in Theorem 3.2(3). The last claim is with .
Arbitrarily close tariffs of different complexity
For a fixed integer let be the tariff with marginals
Proposition 6.3. For every , is a tariff with , and . Consequently SHORTEST BUDGETED PATH for is fixed-parameter tractable in , even with rational lengths, whereas feasibility for is W[1]-hard.
Proof. Within a dyadic range with the numbers decrease and lie in , so their ceilings are nonincreasing and take at most values. The first marginal of the next range is exactly , which is at most the last rounded marginal of the current one. Hence is a tariff with the stated plan count, and its denominators divide . Moreover , because . The algorithmic claim is Corollary 3.3, and hardness of is Corollary 6.2.
Since , a shortest path for with budget is no longer than the optimum for with budget and exceeds the budget by a factor of at most with respect to . This is the principle behind the budget-relaxing scheme of § 7, and Corollary 7.3 shows that the price of this relaxation cannot be made polynomial in .
Separation
Definition 6.4. A fixed tariff with is polynomially separated if there are constants , , and an algorithm which, for every integer , runs in time at most and outputs a 2-strict code with and
The constants and algorithm may depend on , but not on , the clique parameter, or the graph instance.
Lemma 6.5. A tariff with is polynomially separated if it lies on a polynomial grid, or if there are constants and with for all .
Proof. On a polynomial grid, is a positive multiple of . In the second case is strictly concave, is a 2-strict code, and by Remark 4.7, .
Thus , , and the reciprocal powers are polynomially separated, the latter two with . The class is stable under perturbations that preserve a polynomial lower bound on the decrements; for example with rational has . Geometric marginals have but are not polynomially separated: there , which is exponentially small in for some pair of any code of length .
Budget relaxation
With rational lengths, Theorem 3.2(3) depends on the numerical range of the charges, and plan counts may be large. Both dependencies disappear if the budget may be exceeded slightly.
The construction combines piecewise-linear approximation of concave costs [37] with the scaling and rounding used for restricted shortest paths [32, 36, 41]. The additional point is that the approximate plans retain the delayed-commitment property and can be stored only on the restart set.
Lemma 7.1 (Value-spaced menus). Let and . One can compute a set of at most supports of , including the default, whose minimum satisfies for .
Proof. Start with . Given , let be largest with , add the support at and continue with . For we have . The values at consecutive starting points grow by a factor larger than and lie between and .
Theorem 7.2 (Budget-relaxing scheme). For per-label tariffs, rational lengths and , one can compute in time , where , either a path with
where is the least length of a path of charge at most , or a correct statement that no path has charge at most . The running time is of the form .
Proof. If , only labels with can be used; their tariffs vanish identically, and a shortest path in the corresponding subgraph is the answer. Let and . Labels with have the zero tariff and a single plan. For every other label take the menu of Lemma 7.1 with , and round all fees and rates up to multiples of . Run the projected plan process of Theorem 3.2 with these rounded plans, extend the key by the accumulated rounded payment divided by , an integer that is kept only up to , and store the minimum length for each extended key.
The proof of Lemma 3.1 applies verbatim to the plans of Lemma 7.1: every strategy pays at least , and committing at the first run to the plan attaining pays exactly . Rounding up only increases payments, so every path found has .
Conversely let be a path of length and charge at most . Its exact strategies for the pay at most before rounding, and involve at most rates and at most fees, so rounding adds at most . All prefixes of this trajectory survive, and the algorithm returns a path of length at most .
There are at most extended keys. Finally for , which gives the form .
Corollary 7.3 (Accuracy obstruction). Let be a fixed polynomially separated tariff. Unless , no algorithm achieves the guarantee of Theorem 7.2 in time , even on unit-length instances that have a feasible path and whose graphs are simple planar bipartite DAGs of maximum degree three and treewidth at most two.
Proof. First decide any source instance with an empty colour class or an empty edge set as a no-instance, without constructing a fallback. For the remaining sources, take the instance of Theorem 4.6, built from a polynomially separated code, and let be the common length of its paths. Here . Add a fallback path of edges from to , all carrying one new label. Its charge is , so the instance is feasible. The parities of and agree, so the graph remains bipartite; it remains series-parallel and of maximum degree three, and the new label is live only on the fallback path. Let . Since is at most the number of edges of a path times , and is inverse-polynomial, is polynomially bounded. If has a multicoloured clique, then and the algorithm must return a path of length . Otherwise every path other than the fallback has charge at least by Remark 4.7, and the algorithm returns the fallback, of length . This decides MULTICOLOURED CLIQUE in fixed-parameter time.
The same fallback construction gives a standard gap statement for the length objective under the exact budget.
Corollary 7.4. Let be a fixed tariff with and . Unless FPT = W[1], there is no algorithm with running time that, on feasible unit-length instances, returns a path of charge at most and length at most .
Proof. First decide any source instance with an empty colour class or an empty edge set as a no-instance, without constructing a fallback. For the remaining sources, let be the size of the instance of Theorem 4.6, with common path length , and add a fallback of edges bearing one new label, for an odd with . Here , so the fallback is feasible, and the width is at most . Since , the number of added edges is ; allowing for binary vertex and label identifiers gives the coarse bound . For all sufficiently large ,
If the source graph has a multicoloured clique, then and the approximation guarantee forces the returned path to have length less than ; it must therefore lie in the original branch. Conversely, any exactly budget-feasible path in that branch encodes a clique by Theorem 4.6. If no clique exists, the fallback is the only feasible branch. Inspecting the returned branch thus decides MULTICOLOURED CLIQUE in fixed-parameter time. The finitely many smaller values of can be handled by exhaustive search.
Few labels
The total number of labels and the number of labels occurring on more than one edge are upper bounds on live width. They are easier to interpret but much more restrictive, and the reduction of § 4 does not bound them. For constraints on the number of occurrences of each colour, W[1]-hardness in the number of colours is known by a many-one reduction [4]; that reduction prescribes a separate bound for every colour, whereas here a single budget bounds a sum of concave charges.
Proposition 8.1. For per-label tariffs and rational lengths, SHORTEST BUDGETED PATH can be solved in time . In the common-tariff model it can be solved in time .
Proof. Store the last label and the run counts of all labels; the charge is a function of this vector, so it suffices to keep the minimum length for each vector. In the common-tariff model store the counts of the repeated labels and the number of edges traversed whose label occurs on no other edge; the charge is determined by these and equals the charge of the repeated labels plus .
For the lower bound we use a weaker reducibility. A disjunctive reduction maps an instance in polynomial time to a list of instances with for a computable , such that is a yes-instance if and only if some is. A fixed-parameter algorithm for the target yields one for the source, and if , an algorithm with running time for the target contradicts ETH when the source is MULTICOLORED CLIQUE.
Theorem 8.2. Let be a fixed tariff on a polynomial grid with . There is a disjunctive reduction from MULTICOLORED CLIQUE with colours to CONCAVE RUN BUDGET for on instances with at most labels. The number of queries, their individual bit sizes, and their construction time are polynomial in the source input size, with exponents depending only on and independent of . Hence feasibility is W[1]-hard in and in under disjunctive reductions, and has no algorithm unless ETH fails.
Proof. Use the source notation of § 4, with . If any colour class or edge set is empty, output the single query consisting of one – edge and budget zero; this is a no-instance because implies . Otherwise let be a -strict code from Lemma 4.3, and put . In particular, for constants depending only on . The labels are for each colour and one separator . For a colour and an index let
Build the chain of gadgets of Theorem 4.6 with the words in and in , and label all selector and bridge edges with . On a path that selects the indices for colour , the label has runs, has runs, and has exactly runs, since the symbols other than are isolated and the path begins and ends with . With and ,
Indeed is the sum of and of the Jensen gap of at the points ; both are nonnegative by Lemma 4.1, and the first is positive unless all indices agree. So exactly for the paths that encode a multicoloured clique.
The value depends on the clique, which is why a single budget does not suffice. Give the first edge of every word the length , where , and all other edges length zero, so that . Let . All lengths and all values are multiples of , and . For each of the polynomially many multiples of in this range consider the two-budget question
A path satisfying both has and therefore encodes a clique; conversely a clique path satisfies the question for .
It remains to express each two-budget question as an instance of feasibility without new labels. Let ; if the question is discarded. Form the DAG with vertices , an integer, an edge from to with the label of for every edge whose two endpoints lie in this range, source , and a new target joined by a -labelled edge from every , and trim it. Its paths correspond to the paths of the original graph with , with the same label word followed by one , which prolongs the final run of . The budget is .
For the size bound, write . There are at most queries, and gives . Since and concavity gives , both bounds are at most . The polynomial-grid hypothesis bounds by a fixed polynomial in , and . Before layering, the selection gadgets have vertices and edges; the layered construction multiplies this by at most and adds a target. Rational arithmetic and label identifiers have polynomial bit length, including the value . Thus the number of queries, each query’s bit size, and the total construction time are , with an exponent independent of .
A many-one reduction would have to combine the queries, whose budgets differ, over a bounded alphabet; we do not know how to do this. For membership, the plan representation gives a short certificate.
Proposition 8.3. For per-label tariffs, CONCAVE RUN BUDGET parameterized by , and also by , belongs to W[P].
Proof. We use the characterisation of W[P] by nondeterministic algorithms that run in fixed-parameter time and make nondeterministic binary choices [14]. Guess for every label either “off” or one of its at most supports ; this takes bits. Delete the edges with labels that are off, and compute a path that minimises the sum of over its run starts, by a shortest path computation on the product with the last label. Accept if this minimum plus over all labels that are not off is at most . If the algorithm accepts, the path found has , since supports dominate the tariffs and fees are nonnegative. Conversely, for a feasible path guess “off” for unused labels and a support attaining for the used ones. For , guess only for repeated labels; a label on a single edge is charged on that edge.
Whether the problem is in W[P], or in W[1], when parameterized by is open; the XP algorithms do not provide short certificates.
Binary lengths: a numerical source of hardness
All hardness results so far concern feasibility, where numbers play no role beyond the tariff itself. SHORTEST BUDGETED PATH with rational lengths in binary has a second, purely numerical source of hardness, which appears already at width one for tariffs without a polynomial grid.
Proposition 9.1. For the harmonic tariff , deciding whether a path with and exists is NP-complete on series-parallel DAGs of maximum degree three with live width one and nonnegative rational lengths in binary.
Proof. We reduce from EXACT COVER BY 3-SETS [27]: given a set of elements and triples , is the disjoint union of of the triples? Assign to each a distinct prime of polynomial magnitude. A harmonic block with runs is a new private label in runs separated by fresh labels; its charge is . For each triple build two parallel branches: the exclude branch is the concatenation of harmonic blocks with runs for , the include branch that of blocks with runs. Join the gadgets of consecutive triples by fresh bridges. Including adds
to the charge. Give one edge of each exclude branch the length , one edge of each include branch the length , and all other edges length zero. If is the charge of the all-exclude path and the set of included triples, then and . With , and , both bounds hold if and only if . If denotes the number of included triples containing , this reads
| Fixed common tariff | Feasibility | Shortest path, rational lengths in binary |
| Bounded (fixed monetary grid, caps, finite menus) | FPT in (Prop. 3.6) | FPT in (Prop. 3.6) |
| Effectively subpolynomial | FPT in (Cor. 3.3) | FPT in on a polynomial grid (Cor. 3.3) |
| Rounded twins | FPT in (Prop. 6.3) | FPT in (Prop. 6.3) |
| W[1]-hard in , in XP (Thm. 4.6) | W[1]-hard in | |
| on a polynomial grid, e.g. , | W[1]-hard in ; hard in under disjunctive reductions (Thms. 5.1, 8.2) | W[1]-hard in , in XP (Cor. 6.2) |
| Harmonic | W[1]-hard in , in XP | NP-hard at (Prop. 9.1) |
Table 1. Complexity for a fixed tariff shared by all labels. Feasibility results extend to unit and polynomially bounded integer lengths.
Multiplying by and reducing modulo gives , hence since . So is an exact cover, and conversely an exact cover satisfies the equation. Only the private label of the current block is live at any vertex. Block sizes and bit lengths are polynomial.
This is the knapsack mechanism of restricted shortest paths, carried by the arithmetic of harmonic numbers; the lengths have a common denominator of exponential size. It disappears with unary lengths, where Theorem 3.2(2) with the baseline keys is polynomial at bounded width, and it does not occur for tariffs on a polynomial grid, for which rational lengths are in XP (Corollary 6.2). Table 1 summarises the picture for a fixed common tariff.
Open problems
The oscillating regime. Theorem 1.1 leaves open the tariffs with . For such a tariff is not polynomially bounded (Lemma 2.6), so strict codes of polynomial size exist only for infinitely many, sparsely placed lengths , and padding a source instance to the next good length may cost superpolynomial size. On the other hand the plan algorithm is slow at the horizons where . We do not know whether such tariffs can be fixed-parameter tractable, or whether hardness can be shown by a reduction that does not rely on a single uniform code.
Effectiveness. The remaining cases are those without an effective subpolynomial bound. Can the effectiveness requirement be weakened, or can a different algorithm yield a computable parameter dependence for these tariffs? Together with the oscillating regime, this prevents Theorem 1.1 from being a complete dichotomy.
Classes. Is Concave Run Budget, for a hard tariff, complete for W[1] when parameterized by , or does it lie higher? We do not even know membership in W[P].
Few labels. Is feasibility W[1]-hard in under many-one reductions, and is the grid hypothesis of Theorem 8.2 necessary? The harmonic tariff is a natural test case.
Width constants. Theorem 4.6 gives width and Theorem 5.1 gives on polynomial grids. Can be achieved without a grid? This would require paying , or a substitute, with tariff values only.
Accuracy. Corollary 7.3 separates from for polynomially separated tariffs. The best joint dependence on and , and the case of exponentially small separation such as geometric marginals, remain open.
Code availability
Source code is available at https://github.com/ndehouche/concave-run-tariffs.
References
- [1]Y. Asahiro, J. Jansson, E. Miyano, H. Ono. Upper and lower degree-constrained graph orientation with minimum penalty. Theoretical Computer Science 900:53–78, 2022.DOI
- [2]C. Barrett, R. Jacob, M. Marathe. Formal-language-constrained path problems. SIAM Journal on Computing 30(3):809–837, 2000. doi:10.1137/S0097539798337716.DOI
- [3]M. Bentert, L. Kellerhals, R. Niedermeier. The structural complexity landscape of finding balance-fair shortest paths. Theoretical Computer Science 933:149–162, 2022. doi:10.1016/j.tcs.2022.08.023.DOI
- [4]M. Bentert, L. Kellerhals, R. Niedermeier. Fair short paths in vertex-colored graphs. Theoretical Computer Science 1085:116201, 2026. doi:10.1016/j.tcs.2026.116201. Conference version: AAAI 2023, 37(10):12346–12354, 2023. doi:10.1609/aaai.v37i10.26455.
- [5]M. Blanco, R. Borndörfer, N. D. Hoàng, A. Kaier, T. Schlechte, S. Schlobach. The shortest path problem with crossing costs. ZIB-Report 16-70, Zuse Institute Berlin, 2016. Report PDF; urn:nbn:de:0297-zib-61240.
- [6]M. Blanco, R. Borndörfer, N. D. Hoàng, A. Kaier, P. Maristany de las Casas, T. Schlechte, S. Schlobach. Cost projection methods for the shortest path problem with crossing costs. In ATMOS 2017, OASIcs 59, 15:1–15:14, 2017. doi:10.4230/OASIcs.ATMOS.2017.15.DOI
- [7]H. L. Bodlaender. A tourist guide through treewidth. Acta Cybernetica 11(1–2):1–21, 1993.
- [8]K. Böhmová, L. Häfliger, M. Mihalák, T. Pröger, G. Sacomoto, M.-F. Sagot. Computing and listing st-paths in public transportation networks. Theory of Computing Systems 62(3):600–621, 2018. doi:10.1007/s00224-016-9747-4.DOI
- [9]R. Bredereck, P. Faliszewski, R. Niedermeier, P. Skowron, N. Talmon. Mixed integer programming with convex/concave constraints: fixed-parameter tractability and applications to multicovering and voting. Theoretical Computer Science 814:86–105, 2020. doi:10.1016/j.tcs.2020.01.017.DOI
- [10]H. Broersma, X. Li, G. J. Woeginger, S. Zhang. Paths and cycles in colored graphs. Australasian Journal of Combinatorics 31:299–311, 2005.
- [11]B. M. Bumpus, K. Meeks. Edge exploration of temporal graphs. Algorithmica 85(3):688–716, 2023. doi:10.1007/s00453-022-01018-7.DOI
- [12]J. Cardinal, C. Dumeunier. Set covering problems with general objective functions. Preprint, arXiv:0802.2184, 2008.arxiv.org/abs/0802.2184
- [13]J. Chen, X. Huang, I. A. Kanj, G. Xia. Strong computational lower bounds via parameterized complexity. Journal of Computer and System Sciences 72(8):1346–1367, 2006. doi:10.1016/j.jcss.2006.04.007.DOI
- [14]Y. Chen, J. Flum, M. Grohe. Machine-based methods in parameterized complexity theory. Theoretical Computer Science 339(2–3):167–199, 2005. doi:10.1016/j.tcs.2005.02.003.DOI
- [15]M. Cygan, F. V. Fomin, Ł. Kowalik, D. Lokshtanov, D. Marx, M. Pilipczuk, M. Pilipczuk, S. Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.DOI
- [16]T. Davot, R. Giroudeau, J.-C. König. On the shared transportation problem: computational hardness and exact approach. International Journal of Foundations of Computer Science 35(6):741–756, 2024. doi:10.1142/S0129054123410058.DOI
- [17]N. Dehouche. The k-interchange-constrained diameter of a transit network: a connectedness indicator that accounts for travel convenience. Transportation Letters 12(3):197–201, 2020. doi:10.1080/19427867.2018.1564987.DOI
- [18]D. Delling, T. Pajor, R. F. Werneck. Round-based public transit routing. Transportation Science 49(3):591–604, 2015. doi:10.1287/trsc.2014.0534.DOI
- [19]R. G. Downey, M. R. Fellows. Fundamentals of Parameterized Complexity. Springer, 2013. doi:10.1007/978-1-4471-5559-1.DOI
- [20]J. Enright, S. D. Hand, L. Larios-Jones, K. Meeks. Families of tractable problems with respect to vertex-interval-membership width and its generalisations. In SAND 2026, LIPIcs 373, 4:1–4:17, 2026. doi:10.4230/LIPIcs.SAND.2026.4.DOI
- [21]R. Euler, R. Borndörfer. A graph- and monoid-based framework for price-sensitive routing in local public transportation networks. In ATMOS 2019, OASIcs 75, 12:1–12:15, 2019. doi:10.4230/OASIcs.ATMOS.2019.12.DOI
- [22]R. Euler, N. Lindner, R. Borndörfer. Price optimal routing in public transportation. EURO Journal on Transportation and Logistics 13:100128, 2024. doi:10.1016/j.ejtl.2024.100128.DOI
- [23]M. R. Fellows, J. Guo, I. Kanj. The parameterized complexity of some minimum label problems. Journal of Computer and System Sciences 76(8):727–740, 2010. doi:10.1016/j/jcss.2010.02.012.
- [24]M. R. Fellows, D. Hermelin, F. Rosamond, S. Vialette. On the parameterized complexity of multiple-interval graph problems. Theoretical Computer Science 410(1):53–61, 2009. doi:10.1016/j.tcs.2008.09.065.DOI
- [25]S. A. Gabriel, D. Bernstein. The traffic equilibrium problem with nonadditive path costs. Transportation Science 31(4):337–348, 1997. doi:10.1287/trsc.31.4.337.DOI
- [26]I. Gamvros, L. Gouveia, S. Raghavan. Reload cost trees and network design. Networks 59(4):365–379, 2012. doi:10.1002/net.20443.DOI
- [27]M. R. Garey, D. S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979.
- [28]G. Goel, P. Tripathi, L. Wang. Combinatorial problems with discounted price functions in multi-agent systems. In FSTTCS 2010, LIPIcs 8, pp. 436–446, 2010. doi:10.4230/LIPIcs.FSTTCS.2010.436.DOI
- [29]L. Gourvès, A. Lyra, C. A. Martinhon, J. Monnot. The minimum reload s–t path, trail and walk problems. Discrete Applied Mathematics 158(13):1404–1417, 2010. doi:10.1016/j.dam.2010.03.009.DOI
- [30]D. Gözüpek, S. Özkan, C. Paul, I. Sau, M. Shalom. Parameterized complexity of the MinCCA problem on graphs of bounded decomposability. Theoretical Computer Science 690:91–103, 2017. doi:10.1016/j.tcs.2017.06.013.DOI
- [31]D. Gözüpek, H. Shachnai, M. Shalom, S. Zaks. Constructing minimum changeover cost arborescences in bounded treewidth graphs. Theoretical Computer Science 621:22–36, 2016. doi:10.1016/j.tcs.2016.01.022.DOI
- [32]R. Hassin. Approximation schemes for the restricted shortest path problem. Mathematics of Operations Research 17(1):36–42, 1992. doi:10.1287/moor.17.1.36.DOI
- [33]R. Hassin, J. Monnot, D. Segev. Approximation algorithms and hardness results for labeled connectivity problems. Journal of Combinatorial Optimization 14(4):437–453, 2007. doi:10.1007/s10878-007-9044-x.DOI
- [34]S. Irnich, G. Desaulniers. Shortest path problems with resource constraints. In Column Generation, pp. 33–65. Springer, 2005.
- [35]N. G. Kinnersley. The vertex separation number of a graph equals its path-width. Information Processing Letters 42(6):345–350, 1992. doi:10.1016/0020-0190(92)90234-M.DOI
- [36]D. H. Lorenz, D. Raz. A simple efficient approximation scheme for the restricted shortest path problem. Operations Research Letters 28(5):213–219, 2001. doi:10.1016/S0167-6377(01)00069-4.DOI
- [37]T. L. Magnanti, D. Stratila. Separable concave optimization approximately equals piecewise linear optimization. In IPCO 2004, LNCS 3064, pp. 234–243. Springer, 2004. doi:10.1007/978-3-540-25960-2_18. Full version: arXiv:1201.3148, 2012.DOI
- [38]T. L. Magnanti, D. Stratila. Strongly polynomial primal-dual algorithms for concave cost combinatorial optimization problems. Preprint, arXiv:1202.2654, 2012.arxiv.org/abs/1202.2654
- [39]A. Parmentier. Algorithms for non-linear and stochastic resource constrained shortest path. Mathematical Methods of Operations Research 89(2):281–317, 2019. doi:10.1007/s00186-018-0649-x.DOI
- [40]A. Schöbel, R. Urban. The cheapest ticket problem in public transport. Transportation Science 56(6):1432–1451, 2022. doi:10.1287/trsc.2022.1138.DOI
- [41]G. Tsaggouris, C. Zaroliagis. Multiobjective optimization: improved FPTAS for shortest paths and non-linear objectives with applications. Theory of Computing Systems 45(1):162–186, 2009. doi:10.1007/s00224-007-9096-4.
- [42]H.-C. Wirth, J. Steffan. Reload cost problems: minimum diameter spanning tree. Discrete Applied Mathematics 113(1):73–85, 2001. doi:10.1016/S0166-218X(00)00392-9.DOI
- [43]Y. Zhang, Z.-J. M. Shen, S. Song. Parametric search for the bi-attribute concave shortest path problem. Transportation Research Part B: Methodological 94:150–168, 2016. doi:10.1016/j.trb.2016.09.009.DOI
