12.01.2015 Views

Download - Academy Publisher

Download - Academy Publisher

Download - Academy Publisher

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.

Theorem 2: If the number of the element in A is n and<br />

the sum of the elements in A is S in the partition problem<br />

can be solved with O(n+(0.25S 2 +2.5S)) biological<br />

operations, O(2 n ) strands, the logest strands is O(n+S)<br />

and O(S) test tubes.<br />

Proof:. Algorithm 1 includes four main steps. From<br />

the algorithm, Line(1), it is very obvious that it takes n<br />

amplify operations, 2n append operations, n merge<br />

operations and three test tubes to construct sticker-based<br />

solution space. From the algorithm, Line(2), it takes n<br />

extract operations, n detect operations, S append<br />

operations, n merge operations, and three test tubes to<br />

construct sticker-based solution space for elements of 2 n<br />

possible subsets to a n-element set A. From the algorithm,<br />

Parallel_Searcher (T 01 , S/2), it takes S(S+2)/8 exact<br />

operations, S(S+2)/8 merge operations, one detect<br />

operation, one discard operation and S/2+2 test tubes.<br />

The length of a DNA strand has never been changed, is<br />

15(n+S).In Line(4), it takes one detect operation and it<br />

takes one read operation in Line(5).<br />

Hence, from the statements mentioned above, it is at<br />

once inferred that the time complexity of Algorithm 1 is<br />

O(n+(0.25S 2 +2.5S).After Line(1) of Algorithm1, the<br />

solution is constructed and there is 2 n strands in it.<br />

Referring to the Michael’s algorithm [8, 9], the number<br />

of the tube used in Algorithm 1 is O(n). The longest<br />

strand in Algorithm 1 is O(n+S).<br />

Ⅳ . EXPERIMENTAL RESULTS BY<br />

SIMULATED DNAS COMPUTING<br />

Consider that a finite set A is {1, 2, 3 } as an example.<br />

S is denoted to represent the sum of the elements in A So<br />

S is 6. The partition problem is to find a subset of A in<br />

which the sum is one half of S. Table 1 shows the strands<br />

pool and every step in T 0 .<br />

After Line(4) in Table 1, we will get the full<br />

solution space of the partition problem above. The<br />

DNA strands are {x 1<br />

0<br />

x 2<br />

0<br />

x 3<br />

0<br />

y 1,1<br />

0<br />

y 2,1<br />

0<br />

y 2,2<br />

0<br />

y 3,1<br />

0<br />

y 3,2<br />

0<br />

y 3,3 0 ;<br />

x 1<br />

0<br />

x 2<br />

0<br />

x 3<br />

1<br />

y 1,1<br />

0<br />

y 2,1<br />

0<br />

y 2,2<br />

0<br />

y 3,1<br />

1<br />

y 3,2<br />

1<br />

y 3,3 1 ; x 1<br />

0<br />

x 2<br />

1<br />

x 3<br />

0<br />

y 1,1<br />

0<br />

y 2,1<br />

1<br />

y 2,2<br />

1<br />

y 3,1<br />

0<br />

y 3,2<br />

0<br />

y 3,3 0 ; x 1<br />

0<br />

x 2<br />

1<br />

x 3<br />

1<br />

y 1,1<br />

0<br />

y 2,1<br />

1<br />

y 2,2<br />

1<br />

y 3,1<br />

1<br />

y 3,2<br />

1<br />

y 3,3 1 ; x 1<br />

1<br />

x 2<br />

0<br />

x 3<br />

0<br />

y 1,1<br />

1<br />

y 2,1<br />

0<br />

y 2,2<br />

0<br />

y 3,1<br />

0<br />

y 3,2 0 , y 3,3 0 ; x 1<br />

1<br />

x 2<br />

0<br />

x 3<br />

1<br />

y 1,1<br />

1<br />

y 2,1<br />

0<br />

y 2,2<br />

0<br />

y 3,1<br />

1<br />

y 3,2<br />

1<br />

y 3,3 1 ; x 1<br />

1<br />

x 2<br />

1<br />

x 3<br />

0<br />

y 1,1<br />

1<br />

y 2,1<br />

1<br />

y 2,2<br />

1<br />

y 3,1<br />

0<br />

y 3,2<br />

0<br />

y 3,3 0 ; x 1<br />

1<br />

x 2<br />

1<br />

x 3<br />

1<br />

y 1,1<br />

1<br />

y 2,1<br />

1<br />

y 2,2<br />

1<br />

y 3,1<br />

1<br />

y 3,2<br />

1<br />

y 3,3 1 }.<br />

Searching the union of the DNA strands by the algorithm<br />

Parallel_Searcher(T 0, S/2) showing in Table 2, we will<br />

get the legal strands of the partition problem. Reading<br />

the DNA sequence in tube T 3, we could get the answer<br />

is {1, 2} and {3}.<br />

Table 1<br />

Every steps of the improved algorithm based on DNA computing<br />

tube T 0<br />

1 { x 0 1 x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1 2,1 y 1 2,2 y 1 3,1 y 1 3,2 y 1 3,3 ; x 1 1 x 0 2 x 0 3 y 1 1,1 y 0 2,1 y 0 2,2 y 0 3,1 y 0 3,2 , y 0 3,3 ; x 1 1 x 0 2 x 1 1<br />

3 y 1,1 y 0 0 1 1<br />

2,1 y 2,2 y 3,1 y 3,2 y 1 3,3 ; x 1 1 x 1 2 x 0 3 y 1 1,1 y 1 2,1 y 1 2,2 y 0 0<br />

3,1 y 3,2<br />

y 0 3,3 ; x 1 1 x 1 2 x 1 3 y 1 1,1 y 1 2,1 y 1 2,2 y 1 3,1 y 1 3,2 y 1 3,3 . }<br />

Table 2<br />

Search the solution space of the element<br />

Tube T 0 T 1 T 2 T 3 T 4<br />

Inital<br />

pool<br />

1<br />

000000;000111<br />

011000;011111<br />

100000;100111<br />

111000;111111<br />

000000;000111<br />

011000;011111<br />

100000;100111 ;<br />

111000; 111111<br />

2 000000;000111<br />

100000;100111 ;<br />

011000;011111<br />

111000; 111111<br />

3 000000;000111 100000;100111 011000; 011111 111000; 111111<br />

4 000000 100000;000111<br />

011000;100111<br />

111000<br />

111000; 011111 111111<br />

5 100000 011000; 000111 111000; 100111<br />

011111;100111 ;<br />

111111<br />

6 011000 000111; 111000<br />

52

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

Saved successfully!

Ooh no, something went wrong!