Let M be a
smooth 4-manifold which admits a Lefschetz fibration over
D2 or S2. We
develop an algorithm to compute the signature of M using the global monodromy of this
fibration. As a corollary we prove that there is no
hyperelliptic Lefschetz fibration over S2 with
only reducible singular fibers.