Spira showed that any Boolean formula of size s can be simulated in depth O(logs). We generalize Spira's theorem and show that any Boolean circuit of size s with segregators of size f(s) can be simulated in depth O(f(s)logs). If the segregator size is at least s for some constant 0">0, then we can obtain a simulation of depth O(f(s)). This improves and generalizes a simulation of polynomial-size Boolean circuits of constant treewidth k in depth O(k2logn) by Jansen and Sarma. Since the existence of small balanced separators in a directed acyclic graph implies that the graph also has small segregators, our results also apply to circuits with small separators. Our results imply that the class of languages computed by non-uniform families of polynomial-size circuits that have constant size segregators equals non-uniform NC1.
Considering space bounded Turing machines to generate the circuits, for f(s)log2s-space uniform families of Boolean circuits our small-depth simulations are also f(s)log2s-space uniform. As a corollary, we show that the Boolean Circuit Value problem for circuits with constant size segregators (or separators) is in deterministic SPACE(log2n). Our results also imply that the Planar Circuit Value problem, which is known to be P-Complete, is in SPACE(nlogn) . We also show that the Layered Circuit Value and Synchronous Circuit Value problems, which are both P-complete, are in SPACE(n) .