Parallel RAM from Cyclic Circuits

09/10/2023
by   David Heath, et al.
0

Known simulations of random access machines (RAMs) or parallel RAMs (PRAMs) by Boolean circuits incur significant polynomial blowup, due to the need to repeatedly simulate accesses to a large main memory. Consider two modifications to Boolean circuits: (1) remove the restriction that circuit graphs are acyclic and (2) enhance AND gates such that they output zero eagerly. If an AND gate has a zero input, it 'short circuits' and outputs zero without waiting for its second input. We call this the cyclic circuit model. Note, circuits in this model remain combinational, as they do not allow wire values to change over time. We simulate a bounded-word-size PRAM via a cyclic circuit, and the blowup from the simulation is only polylogarithmic. Consider a PRAM program P that on a length n input uses an arbitrary number of processors to manipulate words of size Θ(log n) bits and then halts within W(n) work. We construct a size-O(W(n)·log^4 n) cyclic circuit that simulates P. Suppose that on a particular input, P halts in time T; our circuit computes the same output within T · O(log^3 n) gate delay. This implies theoretical feasibility of powerful parallel machines. Cyclic circuits can be implemented in hardware, and our circuit achieves performance within polylog factors of PRAM. Our simulated PRAM synchronizes processors by simply leveraging logical dependencies between wires.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset