13.12.2012 Views

Theoretical and Experimental DNA Computation (Natural ...

Theoretical and Experimental DNA Computation (Natural ...

Theoretical and Experimental DNA Computation (Natural ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

100 4 Complexity Issues<br />

Size(STI)=O(S(n)logS(n)); Depth(STI)=O(log S(n))<br />

We then cascade the R(n) combinational circuits produced in the preceding<br />

construction stage (Fig. 4.10) <strong>and</strong> transform this resulting circuit into one<br />

over the basis NAND. This completes the description of the translation of<br />

the program of instructions to a combinational circuit.<br />

In total, we have,<br />

Theorem 1. Let A be a CREW P-RAM algorithm using P (n) processors <strong>and</strong><br />

S(n) memory locations (where S(n) ≥ P (n)) <strong>and</strong> taking T (n) parallel time.<br />

Then there is a combinational logic circuit, C, computing exactly the same<br />

function as A <strong>and</strong> satisfying<br />

Size(C) =O(T (n)P (n)S(n)logS(n)); Depth(C) =O(T (n)logS(n)).<br />

Proof. The modification of the control program allows A to be simulated by<br />

at most R(n) blocks which simulate each parallel instantiation (c.f. Fig. 4.10).<br />

InoneblockthereareatmostP (n) different circuits that update the S(n)<br />

locations in the global memory. Each such circuit is a translation of a program<br />

comprising O(Tk(n)) instructions, where Tk(n) is the runtime of the program<br />

runoneachprocessorduringthekth cycle of the control program. Letting<br />

Ck(n) denote the circuit simulating a program in the kth cycle, we have<br />

R(n) �<br />

R(n) �<br />

Depth(C) ≤k=1<br />

Depth(Ck(n)) ≤ O(log S(n)) k=1 O(Tk(n))<br />

= O(T (n)logS(n))<br />

For the circuit size analysis,<br />

R(n) �<br />

Size(C) ≤ P (n) k=1 Size(Ck(n)) ≤ O(P (n)T (n)S(n)logS(n)). ⊓⊔<br />

Corollary 1: IfA is an NC algorithm, i.e., requires O(n k ) processors <strong>and</strong><br />

O(log r n) time, then the circuit generated by the translation above has polynomially<br />

many gates <strong>and</strong> polylogarithmic depth.<br />

Proof: Immediate from Theorem 1, given that S(n) mustbepolynomialinn.<br />

⊓⊔<br />

4.11 Assessment<br />

So far we have presented a detailed, full-scale translation from CREW P-<br />

RAM algorithms to operations on <strong>DNA</strong>. The volume of <strong>DNA</strong> required <strong>and</strong><br />

the running time of the <strong>DNA</strong> realization are within a factor log S of the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!