Skip to main content

A Bit-Scaling Algorithm for Integer Feasibility in UTVPI Constraints

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9843))

Abstract

In this paper, we discuss a new model-generating algorithm for integer feasibility in a system of Unit Two Variable Per Inequality (UTVPI) constraints (IF). Recall that a UTVPI constraint is a linear constraint of the form: \(a\cdot x+b \cdot y \le c\), where \(a, b \in \{0,1,-1\}\) and \(c \in \mathbb {Z}\). These constraints arise in a number of application domains including but not limited to program verification (array bounds checking and abstract interpretation), operations research (packing and covering) and logic programming. Over the years, several algorithms have been proposed for the IF problem. Most of these algorithms are based on two inference rules, viz. the transitive rule and the tightening rule. None of these algorithms are bit-scaling, i.e., the running times of these algorithms are parameterized only by the number of variables and the number of constraints in the UTVPI system. We introduce a novel algorithm for the IF problem, which is based on a collection of new insights. These insights areused to design a new bit-scaling algorithm for IF that runs in \(O(\sqrt{n}\cdot m \cdot \log C)\) time, where n denotes the number of variables, m denotes the number of constraints and C denotes the largest absolute values of all the constants defining the system.

K. Subramani—This work was supported by the Air Force Research Laboratory under US Air Force contract FA8750-16-3-6003. The views expressed are those of the authors and do not reflect the official policy or position of the Department of Defense or the U.S. Government.

P. Wojciechowski—This research was supported in part by the National Science Foundation through Award CCF-1305054.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Ahuja, R.K., Magnanti, T.L., Orlin, J.B.: Network Flows: Theory, Algorithms and Applications. Prentice-Hall, New Jersey (1993)

    MATH  Google Scholar 

  2. Tarjan, R.E., Aspvall, B., Plass, M.F.: A linear time algorithm for testing the truth of certain quantified boolean formulas. Inform. Process. Lett. 8(3), 121–123 (1979)

    Article  MathSciNet  MATH  Google Scholar 

  3. 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)

    Article  MATH  Google Scholar 

  4. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms. MIT Press, Cambridge (2001)

    MATH  Google Scholar 

  5. Dantzig, G.B., Eaves, B.C.: Fourier-Motzkin elimination and its dual. J. Comb. Theory (A) 14, 288–297 (1973)

    Article  MathSciNet  MATH  Google Scholar 

  6. Goldberg, A.V.: Scaling algorithms for the shortest paths problem. SIAM J. Comput. 24(3), 494–504 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  7. Hochbaum, D.S., Seffi-Naor, J.: Simple, fast algorithms for linear, integer programs with two variables per inequality. SIAM J. Comput. 23(6), 1179–1192 (1994)

    Article  MathSciNet  MATH  Google Scholar 

  8. 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)

    Google Scholar 

  9. Jaffar, J., Maher, M.J., Stuckey, P.J., Yap, H.C.: Beyond Finite Domains. In: Proceedings of the Second International Workshop on Principles and Practice of Constraint Programming (1994)

    Google Scholar 

  10. 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)

    Chapter  Google Scholar 

  11. Miné, A.: The octagon abstract domain. Higher-Order Symbolic Comput. 19(1), 31–100 (2006)

    Article  MATH  Google Scholar 

  12. Nieuwenhuis, R., Oliveras, A., Tinelli, C.: Abstract DPLL and abstract DPLL modulo theories. In: Baader, F., Voronkov, A. (eds.) LPAR 2004. LNCS (LNAI), vol. 3452, pp. 36–50. Springer, Heidelberg (2005)

    Chapter  Google Scholar 

  13. Pitassi, T., Urquhart, A.: The complexity of the hajós calculus. In: 33rd Annual Symposium on Foundations of Computer Science, Pittsburgh, Pennsylvania, USA, 24–27, October 1992, pp. 187–196 (1992)

    Google Scholar 

  14. Schutt, A., Stuckey, P.J.: Incremental satisfiability and implication for UTVPI constraints. INFORMS J. Comput. 22(4), 514–527 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  15. Seshia, S.A., Subramani, K., Bryant, R.E.: On solving boolean combinations of UTVPI constraints. J. Satisfiability Boolean Model. Comput. 3(12), 67–90 (2007)

    MathSciNet  MATH  Google Scholar 

  16. Subramani, K., Wojciechowski, P.: An optimal certifying algorithm for lattice point feasibility in a system of UTVPI constraints. Algorithmica (Accepted, 2016 in press)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Piotr Wojciechowski .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Subramani, K., Wojciechowski, P. (2016). A Bit-Scaling Algorithm for Integer Feasibility in UTVPI Constraints. In: Mäkinen, V., Puglisi, S., Salmela, L. (eds) Combinatorial Algorithms. IWOCA 2016. Lecture Notes in Computer Science(), vol 9843. Springer, Cham. https://doi.org/10.1007/978-3-319-44543-4_25

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-44543-4_25

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-44542-7

  • Online ISBN: 978-3-319-44543-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics