Abstract
In this paper, we study the problem of computing the lattice point closure of a conjunction of Unit Two Variable Per Inequality (UTVPI) constraints. We accomplish this by adapting Johnson’s all pairs shortest path algorithm to UTVPI constraints. This problem has been extremely well-studied in the literature, inasmuch as it arises in a number of applications, including but not limited to, program verification and operations research. The complexity of solving this problem has steadily improved over the past several decades with the fastest algorithm for this problem running in time \(O(n^3)\) on a UTVPI constraint system with n variables and m constraints. For the same input parameters, we detail an algorithm that runs in time \(O(m\cdot n +n^2 \cdot \log n)\). It is clear that our algorithm is superior to the state of the art when the constraint system is sparse (\(m \in O(n)\)), and no worse than the state of the art when the constraint system is dense (\(m \in \varTheta (n^2)\)). It is worth noting that our algorithm is time optimal in the following sense: The best known running time for computing the closure of a conjunction of difference constraints (m constraints, n variables) is \(O(m\cdot n +n^2 \cdot \log n)\), and UTVPI constraints subsume difference constraints.
P. Wojciechowski—This research is supported in part by the National Science Foundation through Award CCF-1305054.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Bagnara, R., Hill, P.M., Zaffanella, E.: Weakly-relational shapes for numeric abstractions: improved algorithms and proofs of correctness. Formal Meth. Syst. Des. 35(3), 279–323 (2009)
Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms. MIT Press, Cambridge (2001)
Cousot, P., Cousot, R.: Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints. In: Proceedings of the 4th ACM Symposium on the Principles of Programming Languages (POPL), pp. 238–252. ACM Press (1977)
Gerber, R., Pugh, W., Saksena, M.: Parametric dispatching of hard real-time tasks. IEEE Trans. Comput. 44(3), 471–479 (1995)
Harvey, W., Stuckey, P.J.: A unit two variable per inequality integer constraint solver for constraint logic programming. In Proceedings of the 20th Australasian Computer Science Conference, pp. 102–111 (1997)
Jaffar, J., Maher, M.J., Stuckey, P.J., Yap, H.C.: Beyond finite domains. In: Borning, A. (ed.) PPCP 1994. LNCS, vol. 874, pp. 86–94. Springer, Heidelberg (1994)
Lahiri, S.K., Musuvathi, M.: An efficient decision procedure for UTVPI constraints. In: Gramlich, B. (ed.) FroCos 2005. LNCS (LNAI), vol. 3717, pp. 168–183. Springer, Heidelberg (2005)
Miné, A.: The octagon abstract domain. Higher-Order Symbolic Comput. 19(1), 31–100 (2006)
Sitzmann, I., Stuckey, P.J.: O-trees: a constraint-based index structure. In: Australasian Database Conference, pp. 127–134 (2000)
Subramani, K., Wojciechowski, P.: A graphical theorem of the alternative for UTVPI constraints. In: Leucker, M., Rueda, C., Valencia, F.D. (eds.) ICTAC 2015. LNCS, vol. 9399, pp. 328–345. Springer, Heidelberg (2015)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this paper
Cite this paper
Subramani, K., Wojciechowski, P. (2016). An Optimal Algorithm for Computing the Integer Closure of UTVPI Constraints. In: Kaykobad, M., Petreschi, R. (eds) WALCOM: Algorithms and Computation. WALCOM 2016. Lecture Notes in Computer Science(), vol 9627. Springer, Cham. https://doi.org/10.1007/978-3-319-30139-6_13
Download citation
DOI: https://doi.org/10.1007/978-3-319-30139-6_13
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-30138-9
Online ISBN: 978-3-319-30139-6
eBook Packages: Computer ScienceComputer Science (R0)