We describe and analyze an algorithm for computing the homology (Betti numbers and torsion coefficients) of basic semialgebraic sets which works in weak exponential time. That is, out of a set of exponentially small measure in the space of data, the cost of the algorithm is exponential in the size of the data. All algorithms previously proposed for this problem have a complexity which is doubly exponential (and this is so for almost all data).
INTRODUCTIONSemialgebraic sets (that is, subsets of Euclidean spaces defined by polynomial equations and inequalities with real coefficients) come in a wide variety of shapes and this raises the problem of describing a given specimen, from the most primitive features, such as emptiness, dimension, or number of connected components, to finer ones, such as roadmaps, Euler-Poincaré characteristic, Betti numbers, or torsion coefficients.The Cylindrical Algebraic Decomposition (CAD) introduced by Collins [23] and Wüthrich [63] in the 1970's provided algorithms to compute these features that worked within time (sD) 2 O(n) where s is the number of defining equations, D a bound on their degree and n the dimension of the ambient space. Subsequently, a substantial effort was devoted to design algorithms for these problems with single exponential algebraic complexity bounds [4, and references therein], that is, bounds of the form (sD) n O(1) . Such algorithms have been found for deciding emptiness [6,37,49], for counting connected components [7,19,20,38,39], computing the dimension [9,41], the Euler-Poincaré characteristic [2], the first few Betti numbers [3], the top few Betti numbers [5] and roadmaps (embedded curves with certain topological properties) [11,21,50].As of today, however, no single exponential algorithm is known for the computation of the whole sequence of the homology groups (Betti numbers and torsion coefficients). For complex smooth projective varieties, Scheiblechner [52] has been able to provide an algorithm computing the Betti numbers (but not the torsion coefficients) in single exponential time relying on the algebraic De Rham cohomology. The same author provided a lower bound for this problem (assuming integer coefficients) in [51], where the problem is shown to be PS -hard.