Abstract
We prove a general reduction theorem which allows us to extend bounds for certain graph parameters on cubic graphs to bounds for general graphs taking into account the individual vertex degrees. As applications, we give an algorithm for Max \(2\)-CSP whose complexity matches the algorithm of Scott and Sorkin in the case of \(d\)-regular graphs, \(d \le 5\), but is otherwise faster. It also improves on the previously fastest known algorithm in terms of the average degree, given by Golovnev and Kutzkov. Also from the general theorem, we derive a bound for the pathwidth of a general graph which equals that of Fomin et al. and Gaspers for graphs of degree at most \(6\), but is smaller otherwise, and use this to give an improved exponential-space algorithm for Max \(2\)-CSP. Finally we use the general result to give a faster algorithm for Max \(2\)-CSP on claw-free graphs.
Similar content being viewed by others
Notes
There is also a technical report, due to Robson [26], which makes use of a detailed analysis done by computer to solve maximum independent set in \(O^{\star }(2^{.25n})\) time and exponential space.
References
Arnborg, S., Proskurowski, A., Corneil, D.G.: Forbidden minors characterization of partial 3-trees. Discret. Math. 80, 1–19 (1990)
Bansal, N., Raman, V.: Upper bounds for MAXSAT: further improved, in Algorithms and computation Chennai. Lecture Notes in Computer Science, vol. 1741, pp. 247–258. Springer, Berlin (1999)
Bodlaender, H.L.: A partial \(k\)-arboretum of graphs with bounded treewidth. Theor. Comput. Sci. 209, 1–45 (1998)
Cheng, C., McDermid, E., Suzuki, I.: Planarization and acyclic colorings of subcubic claw-free graphs. In: Kolman, P., Kratochvíl, J. (eds.) Graph-Theoretic Concepts in Computer Science, WG 2011 (Czech Republic, June 2011). Lecture Notes in Computer Science, vol. 6986, pp. 107–118. Springer, Berlin (2011)
de Fraysseix, H., Ossona de Mendez, P.: A characterization of DFS cotree critical graphs. In: Mutzel, P., Jünger, M., Leipert, S. (eds.) Graph Drawing 2001 (Vienna, 23–26 Sept. 2001), Lecture Notes in Computer Science, vol. 2265, pp. 84–95. Springer, Berlin (2002)
Della Croce, F., Kaminski, M.J., Paschos, V.T.H.: An exact algorithm for MAX-CUT in sparse graphs. Oper. Res. Lett. 35, 403–408 (2007)
Edwards, K.J., Farr, G.F.: Fragmentability of graphs. J. Combin. Theory 82, 30–37 (2001)
Edwards, K.J., Farr, G.E.: Improved upper bounds for planarization and series-parallelization of average degree bounded graphs. Electron. J. Comb. 19(2), #P25 (2010)
Edwards, K.J., Farr, G.E.: Graph fragmentability. In: Beineke, L.W., Wilson, R.J. (eds.) Topics in Structural Graph Theory, Encyclopedia of Mathematics and its Applications No. 147, pp. 203–218, Cambridge University Press, Cambridge (2013). ISBN 978-0-521-80231-4
Fomin, F.V., Gaspers, S., Saurabh, S., Stepanov, A.A.: On two techniques of combining branching and treewidth. Algorithmica 54, 181–207 (2009)
Fomin, F.V., Grandoni, F., Kratsch, D.: A measure & conquer approach for the analysis of exact algorithms. J. ACM 56, 1–32 (2009)
Fomin, F.V., Høie, K.: Pathwidth of cubic graphs and exact algorithms. Inf. Process. Lett. 97, 191–196 (2006)
Fomin, F.V., Kratsch, D.: Exact Exponential Algorithms. Springer, Texts in Theoretical Computer Science (2010). ISBN 978-3-642-16533-7
Gaspers, S.: Exponential Time Algorithms: Structures, Measures, and Bounds. VDM Verlag Dr. Mueller e.K., 2010. ISBN 978-3-639-21825-1
Gaspers, S., Sorkin, G.B.: A universally fastest algorithm for Max 2-Sat, Max 2-CSP, and everything in between. J. Comput. Syst. Sci. 78, 305–335 (2012)
Golovnev, A.: New upper bounds for MAX-2-SAT and MAX-2-CSP w.r.t. the average variable degree. In: Parameterized and exact computation, Lecture Notes in Computer Science, vol. 7112, pp. 106–117. Springer, Heidelberg (1973)
Golovnev, A., Kutzkov, K.: New exact algorithms for the 2-constraint satisfaction problem. Theor. Comput. Sci. 526, 18–27 (2014)
Gramm, J., Hirsch, E.A., Niedermeier, R., Rossmanith, P.: Worst-case upper bounds for MAX-2-SAT with an application to MAX-CUT. Discret. Appl. Math. 130, 139–155 (2003)
Haxell, P., Pikhurko, O., Thomason, A.: Maximum acyclic and fragmented sets in regular graphs. J. Graph Theory 57, 149–156 (2008)
Hirsch, E.A.: A new algorithm for MAX-2-SAT, in: STACS 2000 (Lille), Lecture Notes in Computer Science, vol. 1770, pp. 65–73. Springer, Berlin (2000)
Kneis, J., Mölle, D., Richter, S., Rossmanith, P.: A bound on the pathwidth of sparse graphs with applications to exact algorithms. SIAM J. Discret. Math. 23, 407–427 (2009)
Kojevnikov, A., Kulikov, A.S.: A new approach to proving upper bounds for MAX-2-SAT. In: Proceedings of the Seventeenth Annual ACM-SIAM Symposium on Discrete Algorithms 2006, pp. 11–17. ACM, New York (2006)
Kulikov, A.S., Kutzkov, K.: New bounds for MAX-SAT by clause learning, in: Proceedings of the 2nd International Symposium on Computer Science in Russia (CSR 2007), Lecture Notes in Computer Science, vol. 4649, pp. 194–204. Springer (2007)
Niedermeier, R., Rossmanith, P.: New upper bounds for maximum satisfiability. J. Algorithms 36, 63–88 (2000)
Raible, D., Fernau, H.: A new upper bound for Max-2-SAT: a graph-theoretic approach. In: Mathematical foundations of computer science 2008, Lecture Notes in Computer Science, vol. 5162, pp. 551–562. Springer, Berlin, (2008)
Robson, J.M.: Finding a maximum independent set in time \(O(2^{n/4})\). Technical Report 1251–01, LaBRI, Université Bordeaux I (2001)
Scott, A.D., Sorkin, G.B.: Linear-programming design and analysis of fast algorithms for Max 2-CSP. Discret. Optim. 4, 260–287 (2007)
Scott, A.D., Sorkin, G.B.: Polynomial constraint satisfaction problems, graph bisection, and the Ising partition functio. ACM Trans. Algorithms 5, 45 (2009)
Williams, R.: A new algorithm for optimal constraint satisfaction and its implications. In: J. Díaz et al. (eds.), Proc. 31st International Colloquium on Automata, Languages and Programming (ICALP) (Turku, Finland, 2004), Lecture Notes in Computer Science, vol. 3142, pp. 1227–1237. Springer (2004)
Woeginger, G.J.: Exact algorithms for NP-hard problems: a survey. In: Combinatorial optimization–Eureka, you shrink!, Lecture Notes in Computer Science vol. 2570, pp. 185–207. Springer (2003)
Woeginger, G.J.: Open problems around exact algorithms. Discret. Appl. Math. 156, 397–405 (2008)
Xiao, M., Nagamochi, H.: Exact algorithms for maximum independent set. In: L. Cai, S.-W. Cheng, and T.-W. Lam (eds.), ISAAC2013, Lecture Notes in Computer Science, vol. 8283, pp. 328–338. Springer (2013)
Acknowledgments
We would like to thank David Wood for reminding us of the connection between planarization and Max 2-CSP, and the anonymous referees for their helpful comments and for drawing to our attention some recent work which we were unaware of.
Author information
Authors and Affiliations
Corresponding author
Appendix
Appendix
In this section we prove the properties of the functions \(g_{\alpha }\) and \(g_{\alpha }'\) which are listed in Sect. 3.1. First recall the definition of the functions concerned:
For any \(n \ge 2\), and \(\alpha \) with \(0 \le \alpha \le 1\), define the function \(g_{\alpha }(n)\) by setting \(g_{\alpha }(2)=0\), \(g_{\alpha }(3)=\alpha \), and for any \(n \ge 4\),
We extend \(g_{\alpha }\) to all real numbers at least \(2\) by linear interpolation, i.e., if \(r = n + x\), where \(n \ge 2\) is an integer, and \(0 \le x \le 1\), then we set \(g_{\alpha }(r) = (1-x)g_{\alpha }(n) + xg_{\alpha }(n+1)\).
Also, for any \(n \ge 3\), define \(g_{\alpha }'(n) = g_{\alpha }(n) - g_{\alpha }(n-1)\).
Lemma 7.1
For any integer \(n \ge 2\),
where \(A(n)\) is the alternating factorial function given by
Proof
Let \(h(n) = 1-g_{\alpha }(n)\). Then from the recurrence (6) above we obtain, for \(n \ge 4\),
or
from which
Thus \(nh(n) + h(n-1)\) is a constant, \(K\) say, for all \(n \ge 3\). Multiplying through by \((n-1)!\), we obtain
or (replacing \(n\) by \(n+1\))
for \(n \ge 2\). Setting \(j(n) = (n+1)!h(n+1)/K\) for \(n \ge 1\), we obtain
for all \(n \ge 2\). The alternating factorial function \(A(n)\) satisfies
so that
Hence \(j(n) - A(n) = C(-1)^n\) for some constant \(C\). Thus
or
Thus
Recall that \(K = (n+1)h(n+1) + h(n)\), so setting \(n=2\) gives \(K = 3(1-\alpha )+1 = 4 - 3\alpha \). Also \(C = A(1) - j(1) = 1 - 2h(2)/K\), so \(KC = K - 2h(2) = 4 - 3\alpha -2 = 2 - 3\alpha \). So finally,
as required. \(\square \)
Lemma 7.2
For all real \(d \ge 2\),
Proof
We have, for \(n \ge 2\),
The extension to non-integer arguments is straightforward. \(\square \)
Lemma 7.3
If \(\alpha \le 1/2\), then \(g_{\alpha }\) is non-decreasing, i.e.,
for all integers \(n \ge 2\).
Proof
This is proved by induction, exactly as for the function \(g = g_{1/4}\) in [8]. First a very easy induction shows that \(g_{\alpha } < 1\) for all \(n\). Then we show by induction that for all \(n \ge 3\),
This is true for \(n = 3\), so suppose it is true for some \(n\). Then firstly,
and secondly
so that
since \(n \ge 1\) and \(g_{\alpha }(n) < 1\). \(\square \)
Note that if \(\alpha > 1/2, g_{\alpha }\) is not non-decreasing, since \(g_{\alpha }(4) = (1 + 2\alpha )/4 < \alpha = g_{\alpha }(3)\).
Lemma 7.4
If \(1/6 \le \alpha \le 3/10\), then \(g_{\alpha }'\) is non-increasing, i.e.,
for all integers \(n \ge 3\).
Proof
We have
from which we obtain
for \(n \ge 5\). Then it is easily shown by an induction similar to the one above that
for all \(n \ge 4\). The base case requires that \(g_{\alpha }'(3) \ge g_{\alpha }'(4) \ge g_{\alpha }'(3)/3\), or \(\alpha \ge (1-2\alpha )/4 \ge \alpha /3\), which is true since \(1/6 \le \alpha \le 3/10\). \(\square \)
Lemma 7.5
If \(1/6 \le \alpha \le 3/10, g_{\alpha }(n)/n\) is strictly decreasing for \(n \ge 5\).
Proof
First note that \(g_{\alpha }(6) = (50\alpha +53)/120 > 1/2\). Now \(g_{\alpha }(n+1)/(n+1) < g_{\alpha }(n)/n\) if and only if \(ng_{\alpha }(n+1) < (n+1)g_{\alpha }(n)\). Since
we have
so \(ng_{\alpha }(n+1) < (n+1)g_{\alpha }(n)\) if and only if
or
which is true since \(g_{\alpha }(n+1) \ge g_{\alpha }(6) > 1/2\) and \(g_{\alpha }'\) is non-increasing. In fact \(g_{\alpha }(n)/n\) attains its maximum at \(n=5\) for all \(\alpha \) in this range. \(\square \)
Rights and permissions
About this article
Cite this article
Edwards, K., McDermid, E. A General Reduction Theorem with Applications to Pathwidth and the Complexity of MAX 2-CSP. Algorithmica 72, 940–968 (2015). https://doi.org/10.1007/s00453-014-9883-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-014-9883-7