{"title":"Anti-factor is FPT Parameterized by Treewidth and List Size (but Counting is Hard)","authors":"Dániel Marx, Govind S. Sankar, Philipp Schepper","doi":"10.1007/s00453-024-01265-w","DOIUrl":null,"url":null,"abstract":"<div><p>In the general <span>AntiFactor</span> problem, a graph <i>G</i> and, for every vertex <i>v</i> of <i>G</i>, a set <span>\\(X_v\\subseteq {\\mathbb {N}}\\)</span> of forbidden degrees is given. The task is to find a set <i>S</i> of edges such that the degree of <i>v</i> in <i>S</i> is <i>not</i> in the set <span>\\(X_v\\)</span>. Standard techniques (dynamic programming plus fast convolution) can be used to show that if <i>M</i> is the largest forbidden degree, then the problem can be solved in time <span>\\((M+2)^{{\\operatorname {tw}}}\\cdot n^{{\\mathcal {O}}(1)}\\)</span> if a tree decomposition of width <span>\\({\\operatorname {tw}}\\)</span> is given. However, significantly faster algorithms are possible if the sets <span>\\(X_v\\)</span> are sparse: our main algorithmic result shows that if every vertex has at most <span>\\(x\\)</span> forbidden degrees (we call this special case <span>AntiFactor</span><sub>x</sub>), then the problem can be solved in time <span>\\((x+1)^{{\\mathcal {O}}({\\operatorname {tw}})}\\cdot n^{{\\mathcal {O}}(1)}\\)</span>. That is, <span>AntiFactor</span><sub>x</sub> is fixed-parameter tractable parameterized by treewidth <span>\\({\\operatorname {tw}}\\)</span> and the maximum number <span>\\(x\\)</span> of excluded degrees. Our algorithm uses the technique of representative sets, which can be generalized to the optimization version, but (as expected) not to the counting version of the problem. In fact, we show that #<span>AntiFactor</span><sub>1</sub> is already #<span>W</span> <span>\\([1]\\)</span>-hard parameterized by the width of the given decomposition. Moreover, we show that, unlike for the decision version, the standard dynamic programming algorithm is essentially optimal for the counting version. Formally, for a fixed nonempty set <span>\\(X\\)</span>, we denote by <span>\\(X\\)</span>-<span>AntiFactor</span> the special case where every vertex <i>v</i> has the same set <span>\\(X_v=X\\)</span> of forbidden degrees. We show the following lower bound for every fixed set <span>\\(X\\)</span>: if there is an <span>\\(\\epsilon >0\\)</span> such that #<span>\\(X\\)</span>-<span>AntiFactor</span> can be solved in time <span>\\((\\max X+2-\\epsilon )^{{\\operatorname {tw}}}\\cdot n^{{\\mathcal {O}}(1)}\\)</span> given a tree decomposition of width <span>\\({\\operatorname {tw}}\\)</span>, then the counting strong exponential-time hypothesis (#SETH) fails.\n</p></div>","PeriodicalId":50824,"journal":{"name":"Algorithmica","volume":"87 1","pages":"22 - 88"},"PeriodicalIF":0.9000,"publicationDate":"2024-10-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://link.springer.com/content/pdf/10.1007/s00453-024-01265-w.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Algorithmica","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s00453-024-01265-w","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
In the general AntiFactor problem, a graph G and, for every vertex v of G, a set \(X_v\subseteq {\mathbb {N}}\) of forbidden degrees is given. The task is to find a set S of edges such that the degree of v in S is not in the set \(X_v\). Standard techniques (dynamic programming plus fast convolution) can be used to show that if M is the largest forbidden degree, then the problem can be solved in time \((M+2)^{{\operatorname {tw}}}\cdot n^{{\mathcal {O}}(1)}\) if a tree decomposition of width \({\operatorname {tw}}\) is given. However, significantly faster algorithms are possible if the sets \(X_v\) are sparse: our main algorithmic result shows that if every vertex has at most \(x\) forbidden degrees (we call this special case AntiFactorx), then the problem can be solved in time \((x+1)^{{\mathcal {O}}({\operatorname {tw}})}\cdot n^{{\mathcal {O}}(1)}\). That is, AntiFactorx is fixed-parameter tractable parameterized by treewidth \({\operatorname {tw}}\) and the maximum number \(x\) of excluded degrees. Our algorithm uses the technique of representative sets, which can be generalized to the optimization version, but (as expected) not to the counting version of the problem. In fact, we show that #AntiFactor1 is already #W\([1]\)-hard parameterized by the width of the given decomposition. Moreover, we show that, unlike for the decision version, the standard dynamic programming algorithm is essentially optimal for the counting version. Formally, for a fixed nonempty set \(X\), we denote by \(X\)-AntiFactor the special case where every vertex v has the same set \(X_v=X\) of forbidden degrees. We show the following lower bound for every fixed set \(X\): if there is an \(\epsilon >0\) such that #\(X\)-AntiFactor can be solved in time \((\max X+2-\epsilon )^{{\operatorname {tw}}}\cdot n^{{\mathcal {O}}(1)}\) given a tree decomposition of width \({\operatorname {tw}}\), then the counting strong exponential-time hypothesis (#SETH) fails.
期刊介绍:
Algorithmica is an international journal which publishes theoretical papers on algorithms that address problems arising in practical areas, and experimental papers of general appeal for practical importance or techniques. The development of algorithms is an integral part of computer science. The increasing complexity and scope of computer applications makes the design of efficient algorithms essential.
Algorithmica covers algorithms in applied areas such as: VLSI, distributed computing, parallel processing, automated design, robotics, graphics, data base design, software tools, as well as algorithms in fundamental areas such as sorting, searching, data structures, computational geometry, and linear programming.
In addition, the journal features two special sections: Application Experience, presenting findings obtained from applications of theoretical results to practical situations, and Problems, offering short papers presenting problems on selected topics of computer science.