REVIEW
On the Parameterized Complexity of Capacitated Stack and Queue Layouts with Colored Edges
Data Structures and Algorithms · Submitted 13 Oct 2026 · 17 references
Pith's verdict: Solid complexity classification for a new variant of linear layouts; deserves a serious referee.
Why Pith says this
Highlight any text to comment on it.
Referee report
The paper
The paper claims
Adding per-color page budgets makes fixed-order stack and queue layouts NP-complete, even when conflict graphs are tiny.
The reading
What carries the argument
The edge conflict graph, which captures crossing (stack) or nesting (queue) relations between edges under the fixed vertex order, together with the novel per-color page budgets. For the FPT results, the paper partitions connected components of the conflict graph into equivalence classes based on edge colors and then solves an integer linear program with a bounded number of variables; for the hardness results, it reduces from Monotone Not All Equal 3SAT-E4 (for small components) and from Bin Packing (for monochromatic queue layouts).
Extended reading notes
Core claim
The central finding is that imposing per-color page budgets on already fixed-spine-order stack and queue layouts jumps the decision problem from polynomial time to NP-complete, sharply separating the capacitated from the ordinary case unless P=NP. Specifically, Fixed Order Capacitated 2-Page Stack Layout and Fixed Order Capacitated 2-Page Queue Layout are NP-complete even when every connected component of the conflict graph has at most five vertices and the instance is balanced and tight. For queue layouts, the problem remains NP-complete for monochromatic (single-color) instances with any number of pages, implying W[1]-hardness parameterized by the number of pages. The paper also provides matching fixed-parameter tractable algorithms for combinations of parameters such as number of pages, number of colors, and component size.
Load-bearing premise
The vertex order along the spine is fixed and given as part of the input; if the vertex order could be chosen freely, the problems would already be paraNP-hard from known results, and the fixed-order setting is the only regime where the capacitated version can be meaningfully distinguished from the uncapacitated one.
Editorial extensions
If this is right
- Fair-allocation constraints (per-color page budgets) turn a polynomial-time layout problem into an NP-complete one, so practical algorithms for capacitated layouts must rely on parameterized or heuristic approaches rather than exact polynomial-time methods.
- The NP-completeness for two-page stacks with tiny conflict components means that even very local coloring constraints can force global hardness.
- The monochromatic queue-layout hardness shows that the difficulty does not require multiple colors; capacity alone on a single color can be enough.
- The FPT algorithms for (ℓ, χ, γ) give a concrete route to solving instances where the conflict graph has small components and few colors, even if numbers of edges or vertices are large.
Reading between the lines
- The results suggest that any variant of linear layouts with per-page color constraints is likely NP-hard in the fixed-order setting, unless the constraint structure is extremely simple (e.g., constant number of colors and constant component size).
- The monochromatic queue-layout hardness reduces from Bin Packing; that connection may allow transfer of approximation and fixed-parameter results from bin packing to queue layouts with per-page capacities.
- The ILP-based FPT algorithm could be implementable in practice for conflict graphs with component size up to about 10–20 and a handful of colors, using modern integer programming solvers.
- The paper leaves open the complexity of capacitated queue layouts parameterized by both number of colors and component size (without also bounding number of pages), which would be the next natural target for FPT-or-XP classification.
Original abstract
Stack and queue layouts are two extensively studied and complementary linear representations of graphs. A stack (queue) layout $\langle \prec, \sigma \rangle$ of a graph $G$ consists of a total ordering $\prec$ of its vertices and of a partitioning $\sigma$ of its edges into pages, such that no two independent edges on the same page cross (nest). We propose a generalized model with colored edges (one color per edge) and capacitated pages. Namely, the input graph is equipped with colored edges and a prescribed budget for each page-color pair $(p,c)$ - this budget determines the maximum number of edges of color $c$ that page $p$ can accept. This model is motivated by fair allocation scenarios where budgets can be used to control the share of monochromatic edges on each page. Unfortunately, it is known that deciding whether a stack (queue) layout exists is NP-hard already with two (one) pages. Thus, we focus on the fixed-order setting - where the linear order $\prec$ is part of the input - for which an ordinary 2-page stack or $\ell$-page queue layout can be computed in polynomial time. Despite the restrictive setting, we show that both capacitated problems are NP-complete already for two pages. Furthermore, we study the complexity of the problems when parameterized by the number of pages, colors, and/or the structure of the edge conflict graph with respect to the fixed linear order $\prec$. Our analysis paints a detailed complexity landscape and uncovers a surprisingly intricate interplay between the considered parameters.
The compiled record
The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. Numbers in the tables are the authors', checked by code. No sentence in this record was written by a model.
The abstract, sentence by sentence
Stack and queue layouts are two extensively studied and complementary linear representations of graphs. A stack (queue) layout $\langle \prec, \sigma \rangle$ of a graph $G$ consists of a total ordering $\prec$ of its vertices and of a partitioning $\sigma$ of its edges into pages, such that no two independent edges on the same page cross (nest). We propose a generalized model with colored edges (one color per edge) and capacitated pages. Namely, the input graph is equipped with colored edges and a prescribed budget for each page-color pair $(p,c)$ - this budget determines the maximum number of edges of color $c$ that page $p$ can accept. This model is motivated by fair allocation scenarios where budgets can be used to control the share of monochromatic edges on each page. Unfortunately, it is known that deciding whether a stack (queue) layout exists is NP-hard already with two (one) pages. Thus, we focus on the fixed-order setting - where the linear order $\prec$ is part of the input - for which an ordinary 2-page stack or $\ell$-page queue layout can be computed in polynomial time. Despite the restrictive setting, we show that both capacitated problems are NP-complete already for two pages. Furthermore, we study the complexity of the problems when parameterized by the number of pages, colors, and/or the structure of the edge conflict graph with respect to the fixed linear order $\prec$. Our analysis paints a detailed complexity landscape and uncovers a surprisingly intricate interplay between the considered parameters.
background contribution method result interpretation main claim
| # | sentence | role | the authors' own work | states the main conclusion | strength |
|---|---|---|---|---|---|
| s0 | Stack and queue layouts are two extensively studied and complementary linear representations of graphs. | background 1.00 | 0.04 | 0.02 | asserted 1.00 |
| s1 | A stack (queue) layout $\langle \prec, \sigma \rangle$ of a graph $G$ consists of a total ordering $\prec$ of its vertices and of a partitioning $\sigma$ of its edges into pages, such that no two independent edges on the same page cross (nest). | background 1.00 | 0.05 | 0.02 | asserted 1.00 |
| s2 | We propose a generalized model with colored edges (one color per edge) and capacitated pages. | contribution 0.88 | 0.91 | 0.04 | asserted 0.99 |
| s3 | Namely, the input graph is equipped with colored edges and a prescribed budget for each page-color pair $(p,c)$ - this budget determines the maximum number of edges of color $c$ that page $p$ can accept. | method 0.72 | 0.52 | 0.04 | asserted 1.00 |
| s4 | This model is motivated by fair allocation scenarios where budgets can be used to control the share of monochromatic edges on each page. | interpretation 0.36 | 0.24 | 0.03 | asserted 0.85 |
| s5 | Unfortunately, it is known that deciding whether a stack (queue) layout exists is NP-hard already with two (one) pages. | background 0.98 | 0.04 | 0.04 | asserted 1.00 |
| s6 | Thus, we focus on the fixed-order setting - where the linear order $\prec$ is part of the input - for which an ordinary 2-page stack or $\ell$-page queue layout can be computed in polynomial time. | background 0.52 | 0.09 | 0.05 | asserted 1.00 |
| s7 | Despite the restrictive setting, we show that both capacitated problems are NP-complete already for two pages. | result 0.99 | 0.95 | 0.53 | asserted 1.00 |
| s8 | Furthermore, we study the complexity of the problems when parameterized by the number of pages, colors, and/or the structure of the edge conflict graph with respect to the fixed linear order $\prec$. | contribution 0.96 | 0.88 | 0.06 | asserted 0.87 |
| s9 | Our analysis paints a detailed complexity landscape and uncovers a surprisingly intricate interplay between the considered parameters. | interpretation 0.67 | 0.92 | 0.17 | asserted 0.98 |
What was examined, and what was not
- arXiv listing abstract v1
- full text
- figures and tables
- references and citing sentences
- relations to other papers
- P abstract
- S sections
- T body sentences
- C citations
- R cross-paper relations
Figures
Showing 8 of the paper's 11 figures. See all figures in the PDF ↗ Figures reproduced from arXiv:2610.18071 by the authors.
References
Discussion
Disagree with the review, or know something it missed? Leave a comment, highlight any passage above to comment on it, or challenge this review formally.