Ararat Harutyunyan, Michael Lampis, Nikolaos Melissinos
{"title":"有向图着色与到非环的距离","authors":"Ararat Harutyunyan, Michael Lampis, Nikolaos Melissinos","doi":"10.1007/s00224-022-10103-x","DOIUrl":null,"url":null,"abstract":"<p>In <i>k</i>-<span>Digraph Coloring</span> we are given a digraph and are asked to partition its vertices into at most <i>k</i> sets, so that each set induces a DAG. This well-known problem is NP-hard, as it generalizes (undirected) <i>k</i>-<span>Coloring</span>, but becomes trivial if the input digraph is acyclic. This poses the natural parameterized complexity question of what happens when the input is “almost” acyclic. In this paper we study this question using parameters that measure the input’s distance to acyclicity in either the directed or the undirected sense. In the directed sense perhaps the most natural notion of distance to acyclicity is directed feedback vertex set. It is already known that, for all <i>k</i> ≥ 2, <i>k</i>-<span>Digraph Coloring</span> is NP-hard on digraphs of directed feedback vertex set of size at most <i>k</i> + 4. We strengthen this result to show that, for all <i>k</i> ≥ 2, <i>k</i>-<span>Digraph Coloring</span> is already NP-hard for directed feedback vertex set of size exactly <i>k</i>. This immediately provides a dichotomy, as <i>k</i>-<span>Digraph Coloring</span> is trivial if directed feedback vertex set has size at most <i>k</i> − 1. Refining our reduction we obtain three further consequences: (i) 2-<span>Digraph Coloring</span> is NP-hard for oriented graphs of directed feedback vertex set at most 3; (ii) for all <i>k</i> ≥ 2, <i>k</i>-<span>Digraph Coloring</span> is NP-hard for graphs of feedback <i>arc</i> set of size at most <i>k</i><sup>2</sup>; interestingly, this leads to a second dichotomy, as we show that the problem is FPT by <i>k</i> if feedback arc set has size at most <i>k</i><sup>2</sup> − 1; (iii) <i>k</i>-<span>Digraph Coloring</span> is NP-hard for graphs of directed feedback vertex <i>k</i>, even if the maximum degree <i>Δ</i> is at most 4<i>k</i> − 1; we show that this is also <i>almost</i> tight, as the problem becomes FPT for digraphs of directed feedback vertex set of size <i>k</i> and <i>Δ</i> ≤ 4<i>k</i> − 3. Since these results imply that the problem is also NP-hard on graphs of bounded directed treewidth, we then consider parameters that measure the distance from acyclicity of the underlying graph. On the positive side, we show that <i>k</i>-<span>Digraph Coloring</span> admits an FPT algorithm parameterized by treewidth, whose parameter dependence is (tw!)<i>k</i><sup>tw</sup>. Since this is considerably worse than the <i>k</i><sup>tw</sup> dependence of (undirected) <i>k</i>-<span>Coloring</span>, we pose the question of whether the tw! factor can be eliminated. Our main contribution in this part is to settle this question in the negative and show that our algorithm is essentially optimal, even for the much more restricted parameter treedepth and for <i>k</i> = 2. Specifically, we show that an FPT algorithm solving 2-<span>Digraph Coloring</span> with dependence td<sup><i>o</i>(td)</sup> would contradict the ETH. Then, we consider the class of tournaments. It is known that deciding whether a tournament is 2-colorable is NP-complete. We present an algorithm that decides if we can 2-color a tournament in <span>\\(O^{*}({\\sqrt [3]{6}}^{n})\\)</span> time. Finally, we explain how this algorithm can be modified to decide if a tournament is <i>k</i>-colorable.</p>","PeriodicalId":22832,"journal":{"name":"Theory of Computing Systems","volume":null,"pages":null},"PeriodicalIF":0.6000,"publicationDate":"2022-12-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Digraph Coloring and Distance to Acyclicity\",\"authors\":\"Ararat Harutyunyan, Michael Lampis, Nikolaos Melissinos\",\"doi\":\"10.1007/s00224-022-10103-x\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>In <i>k</i>-<span>Digraph Coloring</span> we are given a digraph and are asked to partition its vertices into at most <i>k</i> sets, so that each set induces a DAG. This well-known problem is NP-hard, as it generalizes (undirected) <i>k</i>-<span>Coloring</span>, but becomes trivial if the input digraph is acyclic. This poses the natural parameterized complexity question of what happens when the input is “almost” acyclic. In this paper we study this question using parameters that measure the input’s distance to acyclicity in either the directed or the undirected sense. In the directed sense perhaps the most natural notion of distance to acyclicity is directed feedback vertex set. It is already known that, for all <i>k</i> ≥ 2, <i>k</i>-<span>Digraph Coloring</span> is NP-hard on digraphs of directed feedback vertex set of size at most <i>k</i> + 4. We strengthen this result to show that, for all <i>k</i> ≥ 2, <i>k</i>-<span>Digraph Coloring</span> is already NP-hard for directed feedback vertex set of size exactly <i>k</i>. This immediately provides a dichotomy, as <i>k</i>-<span>Digraph Coloring</span> is trivial if directed feedback vertex set has size at most <i>k</i> − 1. Refining our reduction we obtain three further consequences: (i) 2-<span>Digraph Coloring</span> is NP-hard for oriented graphs of directed feedback vertex set at most 3; (ii) for all <i>k</i> ≥ 2, <i>k</i>-<span>Digraph Coloring</span> is NP-hard for graphs of feedback <i>arc</i> set of size at most <i>k</i><sup>2</sup>; interestingly, this leads to a second dichotomy, as we show that the problem is FPT by <i>k</i> if feedback arc set has size at most <i>k</i><sup>2</sup> − 1; (iii) <i>k</i>-<span>Digraph Coloring</span> is NP-hard for graphs of directed feedback vertex <i>k</i>, even if the maximum degree <i>Δ</i> is at most 4<i>k</i> − 1; we show that this is also <i>almost</i> tight, as the problem becomes FPT for digraphs of directed feedback vertex set of size <i>k</i> and <i>Δ</i> ≤ 4<i>k</i> − 3. Since these results imply that the problem is also NP-hard on graphs of bounded directed treewidth, we then consider parameters that measure the distance from acyclicity of the underlying graph. On the positive side, we show that <i>k</i>-<span>Digraph Coloring</span> admits an FPT algorithm parameterized by treewidth, whose parameter dependence is (tw!)<i>k</i><sup>tw</sup>. Since this is considerably worse than the <i>k</i><sup>tw</sup> dependence of (undirected) <i>k</i>-<span>Coloring</span>, we pose the question of whether the tw! factor can be eliminated. Our main contribution in this part is to settle this question in the negative and show that our algorithm is essentially optimal, even for the much more restricted parameter treedepth and for <i>k</i> = 2. Specifically, we show that an FPT algorithm solving 2-<span>Digraph Coloring</span> with dependence td<sup><i>o</i>(td)</sup> would contradict the ETH. Then, we consider the class of tournaments. It is known that deciding whether a tournament is 2-colorable is NP-complete. We present an algorithm that decides if we can 2-color a tournament in <span>\\\\(O^{*}({\\\\sqrt [3]{6}}^{n})\\\\)</span> time. Finally, we explain how this algorithm can be modified to decide if a tournament is <i>k</i>-colorable.</p>\",\"PeriodicalId\":22832,\"journal\":{\"name\":\"Theory of Computing Systems\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.6000,\"publicationDate\":\"2022-12-07\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Theory of Computing Systems\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://doi.org/10.1007/s00224-022-10103-x\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q4\",\"JCRName\":\"COMPUTER SCIENCE, THEORY & METHODS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theory of Computing Systems","FirstCategoryId":"94","ListUrlMain":"https://doi.org/10.1007/s00224-022-10103-x","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
In k-Digraph Coloring we are given a digraph and are asked to partition its vertices into at most k sets, so that each set induces a DAG. This well-known problem is NP-hard, as it generalizes (undirected) k-Coloring, but becomes trivial if the input digraph is acyclic. This poses the natural parameterized complexity question of what happens when the input is “almost” acyclic. In this paper we study this question using parameters that measure the input’s distance to acyclicity in either the directed or the undirected sense. In the directed sense perhaps the most natural notion of distance to acyclicity is directed feedback vertex set. It is already known that, for all k ≥ 2, k-Digraph Coloring is NP-hard on digraphs of directed feedback vertex set of size at most k + 4. We strengthen this result to show that, for all k ≥ 2, k-Digraph Coloring is already NP-hard for directed feedback vertex set of size exactly k. This immediately provides a dichotomy, as k-Digraph Coloring is trivial if directed feedback vertex set has size at most k − 1. Refining our reduction we obtain three further consequences: (i) 2-Digraph Coloring is NP-hard for oriented graphs of directed feedback vertex set at most 3; (ii) for all k ≥ 2, k-Digraph Coloring is NP-hard for graphs of feedback arc set of size at most k2; interestingly, this leads to a second dichotomy, as we show that the problem is FPT by k if feedback arc set has size at most k2 − 1; (iii) k-Digraph Coloring is NP-hard for graphs of directed feedback vertex k, even if the maximum degree Δ is at most 4k − 1; we show that this is also almost tight, as the problem becomes FPT for digraphs of directed feedback vertex set of size k and Δ ≤ 4k − 3. Since these results imply that the problem is also NP-hard on graphs of bounded directed treewidth, we then consider parameters that measure the distance from acyclicity of the underlying graph. On the positive side, we show that k-Digraph Coloring admits an FPT algorithm parameterized by treewidth, whose parameter dependence is (tw!)ktw. Since this is considerably worse than the ktw dependence of (undirected) k-Coloring, we pose the question of whether the tw! factor can be eliminated. Our main contribution in this part is to settle this question in the negative and show that our algorithm is essentially optimal, even for the much more restricted parameter treedepth and for k = 2. Specifically, we show that an FPT algorithm solving 2-Digraph Coloring with dependence tdo(td) would contradict the ETH. Then, we consider the class of tournaments. It is known that deciding whether a tournament is 2-colorable is NP-complete. We present an algorithm that decides if we can 2-color a tournament in \(O^{*}({\sqrt [3]{6}}^{n})\) time. Finally, we explain how this algorithm can be modified to decide if a tournament is k-colorable.
期刊介绍:
TOCS is devoted to publishing original research from all areas of theoretical computer science, ranging from foundational areas such as computational complexity, to fundamental areas such as algorithms and data structures, to focused areas such as parallel and distributed algorithms and architectures.