Skip to main content
Log in

Counting Integer Points in Parametric Polytopes Using Barvinok's Rational Functions

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

Many compiler optimization techniques depend on the ability to calculate the number of elements that satisfy certain conditions. If these conditions can be represented by linear constraints, then such problems are equivalent to counting the number of integer points in (possibly) parametric polytopes. It is well known that the enumerator of such a set can be represented by an explicit function consisting of a set of quasi-polynomials, each associated with a chamber in the parameter space. Previously, interpolation was used to obtain these quasi-polynomials, but this technique has several disadvantages. Its worst-case computation time for a single quasi-polynomial is exponential in the input size, even for fixed dimensions. The worst-case size of such a quasi-polynomial (measured in bits needed to represent the quasi-polynomial) is also exponential in the input size. Under certain conditions this technique even fails to produce a solution. Our main contribution is a novel method for calculating the required quasi-polynomials analytically. It extends an existing method, based on Barvinok's decomposition, for counting the number of integer points in a non-parametric polytope. Our technique always produces a solution and computes polynomially-sized enumerators in polynomial time (for fixed dimensions).

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Sven Verdoolaege, Rachid Seghir, Kristof Beyls, Vincent Loechner or Maurice Bruynooghe.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Verdoolaege, S., Seghir, R., Beyls, K. et al. Counting Integer Points in Parametric Polytopes Using Barvinok's Rational Functions. Algorithmica 48, 37–66 (2007). https://doi.org/10.1007/s00453-006-1231-0

Download citation

  • Received:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-006-1231-0

Keywords

Navigation