We develop efficient methods for deterministic computations with semi-algeb
raic sets and apply them to the problem of counting points on curves and Ab
elian varieties over finite fields. For Abelian varieties of dimension g in
projective N space over F-q, we improve Pila's result and show that the pr
oblem can be solved in O((log q)(delta)) time where delta is polynomial in
g as well as in N. For hyperelliptic curves of genus g over F-q we show tha
t the number of rational points on the curve and the number of rational poi
nts on its Jacobian can be computed in (log q)(O(g 2 log g)) time. (C) 2001
Academic Press.