English

Degrees and Gaps: Tight Complexity Results of General Factor Problems Parameterized by Treewidth and Cutwidth

Computational Complexity 2021-10-20 v1 Data Structures and Algorithms

Abstract

For the General Factor problem we are given an undirected graph GG and for each vertex vV(G)v\in V(G) a finite set BvB_v of non-negative integers. The task is to decide if there is a subset SE(G)S\subseteq E(G) such that degS(v)Bvdeg_S(v)\in B_v for all vertices vv of GG. The maxgap of a finite integer set BB is the largest d0d\ge 0 such that there is an a0a\ge 0 with [a,a+d+1]B={a,a+d+1}[a,a+d+1]\cap B=\{a,a+d+1\}. Cornu\'ejols (1988) showed that if the maxgap of all sets BvB_v is at most 1, then the decision version of General Factor is poly-time solvable. Dudycz and Paluch (2018) extended this result for the minimization and maximization versions. Using convolution techniques from van Rooij (2020), we improve upon the previous algorithm by Arulselvan et al. (2018) and present an algorithm counting the number of solutions of a certain size in time O((M+1)k)O^*((M+1)^k), given a tree decomposition of width kk, where M=maxvmaxBvM=\max_v \max B_v. We prove that this algorithm is essentially optimal for all cases that are not polynomial time solvable for the decision, minimization or maximization versions. We prove that such improvements are not possible even for BB-Factor, which is General Factor on graphs where all sets BvB_v agree with the fixed set BB. We show that for every fixed BB where the problem is NP-hard, our new algorithm cannot be significantly improved: assuming the Strong Exponential Time Hypothesis (SETH), no algorithm can solve BB-Factor in time O((maxB+1ϵ)k)O^*((\max B+1-\epsilon)^k) for any ϵ>0\epsilon>0. We extend this bound to the counting version of BB-Factor for arbitrary, non-trivial sets BB, assuming #SETH. We also investigate the parameterization of the problem by cutwidth. Unlike for treewidth, a larger set BB does not make the problem harder: Given a linear layout of width kk we give a O(2k)O^*(2^k) algorithm for any BB and provide a matching lower bound that this is optimal for the NP-hard cases.

Keywords

Cite

@article{arxiv.2105.08980,
  title  = {Degrees and Gaps: Tight Complexity Results of General Factor Problems Parameterized by Treewidth and Cutwidth},
  author = {Dániel Marx and Govind S. Sankar and Philipp Schepper},
  journal= {arXiv preprint arXiv:2105.08980},
  year   = {2021}
}

Comments

Full version of the paper accepted for ICALP 2021

R2 v1 2026-06-24T02:15:07.223Z