# Coding theory approaches to nucleic acid design

DNA code construction refers to the application of coding theory to the design of nucleic acid systems for the field of DNA–based computation.

## Introduction

DNA sequences are known to appear in the form of double helices in living cells, in which one DNA strand is hybridized to its complementary strand through a series of hydrogen bonds. For the purpose of this entry, we shall focus on only oligonucleotides. DNA computing involves allowing synthetic oligonucleotide strands to hybridize in such a way as to perform computation. DNA computing requires that the self-assembly of the oligonucleotide strands happen in such a way that hybridization should occur in a manner compatible with the goals of computation.
The field of DNA computing was established in Leonard M. Adelman's seminal paper. His work is significant for a number of reasons:
* It shows how one could use the highly parallel nature of computation performed by DNA to solve problems that are difficult or almost impossible to solve using the traditional methods.
* It's an example of computation at a molecular level, on the lines of nanocomputing, and this potentially is a major advantage as far as the information density on storage media is considered, which can never be reached by the semiconductor industry.
* It demonstrates unique aspects of DNA as a data structure.
This capability for massively parallel computation in DNA computing can be exploited in solving many computational problems on an enormously large scale such as cell-based computational systems for cancer diagnostics and treatment, and ultra-high density storage media.
This selection of codewords (sequences of DNA oligonucleotides) is a major hurdle in itself due to the phenomenon of secondary structure formation (in which DNA strands tend to fold onto themselves during hybridization and hence rendering themselves useless in further computations. This is also known as self-hybridization). The Nussinov-Jacobson algorithm is used to predict secondary structures and also to identify certain design criteria that reduce the possibility of secondary structure formation in a codeword. In essence this algorithm shows how the presence of a cyclic structure in a DNA code reduces the complexity of the problem of testing the codewords for secondary structures.
Novel constructions of such codes include using cyclic reversible extended generalized Hadamard matrices, and a binary approach. Before diving into these constructions, we shall revisit certain fundamental genetic terminology. The motivation for the theorems presented in this article, is that they concur with the Nussinov - Jacobson algorithm, in that the existence of cyclic structure helps in reducing complexity and thus prevents secondary structure formation. i.e. these algorithms satisfy some or all the design requirements for DNA oligonucleotides at the time of hybridization (which is the core of the DNA computing process) and hence do not suffer from the problems of self - hybridization.

## Definitions

A DNA code is simply a set of sequences over the alphabet ${\mathcal {Q}}=\{{\mathit {A}},{\mathit {T}},{\mathit {C}},{\mathit {G}}\}$.
Each purine base is the Watson-Crick complement of a unique pyrimidine base (and vice versa) – adenine and thymine form a complementary pair, as do guanine and cytosine. This pairing can be described as follows – ${\bar {A}}=T,{\bar {T}}=A,{\bar {C}}=G,{\bar {G}}=C$.
Such pairing is chemically very stable and strong. However, pairing of mismatching bases does occur at times due to biological mutations.
Most of the focus on DNA coding has been on constructing large sets of DNA codewords with prescribed minimum distance properties. For this purpose let us lay down the required groundwork to proceed further.
Let ${\mathit {q}}={\mathit {q}}_{1}{\mathit {q}}_{2}\dots {\mathit {q}}_{n}$ be a word of length ${\mathit {n}}$ over the alphabet ${\mathcal {Q}}$. For $1\leqslant i\leqslant j\leqslant n$, we will use the notation ${\mathit {q}}_{[i,j]}$ to denote the subsequence ${\mathit {q}}_{i}{\mathit {q}}_{i+1}\dots {\mathit {q}}_{j}$. Furthermore, the sequence obtained by reversing ${\mathit {q}}$ will be denoted as ${\mathit {q}}^{R}$. The Watson-Crick complement, or the reverse-complement of q, is defined to be ${\mathit {q}}^{RC}={\mathit {{\bar {q}}_{n}}}{\mathit {{\bar {q}}_{n-1}}}\dots {\mathit {{\bar {q}}_{1}}}$, where ${\mathit {{\bar {q}}_{i}}}$ denotes the Watson-Crick complement base pair of ${\mathit {q}}_{i}$.
For any pair of length-${\mathit {n}}$ words ${\mathit {p}}$ and ${\mathit {q}}$ over ${\mathcal {Q}}$, the Hamming distance ${\mathit {d}}_{H}({\mathit {p}},{\mathit {q}})$ is the number of positions ${\mathit {i}}$ at which ${\mathit {p}}_{i}\neq {\mathit {q}}_{i}$. Further, define reverse-Hamming distance as ${\mathit {d_{H}}}^{R}({\mathit {p}},{\mathit {q}})={\mathit {d}}_{H}({\mathit {p}},{\mathit {q}}^{R})$. Similarly, reverse-complement Hamming distance is ${\mathit {d}}_{H}^{RC}({\mathit {p}},{\mathit {q}})={\mathit {d}}_{H}({\mathit {p}},{\mathit {q}}^{RC})$. (where $RC$ stands for reverse complement)
Another important code design consideration linked to the process of oligonucleotide hybridization pertains to the GC content of sequences in a DNA code. The GC-content, ${\mathit {w}}_{GC}({\mathit {q}})$, of a DNA sequence ${\mathit {q}}={\mathit {q}}_{1}{\mathit {q}}_{2}\dots {\mathit {q}}_{n}$ is defined to be the number of indices ${\mathit {i}}$ such that ${\mathit {q}}_{i}\in \{G,C\}$. A DNA code in which all codewords have the same GC-content, $w$, is called a constant GC-content code.
A generalized Hadamard matrix ${\mathit {H}}\equiv {\mathit {H}}(n,\mathbb {C} _{m})$ is an ${\mathit {n}}$ $\times$ ${\mathit {n}}$ square matrix with entries taken from the set of ${\mathit {m}}$th roots of unity, $\mathbb {C} _{m}=\{e^{-2\pi {\mathit {i}}{\mathit {l}}/{\mathit {m}}}\mid l=0,\dots ,m-1\}$, that satisfies ${\mathit {H}}{\mathit {H}}^{*}$ = ${\mathit {n}}{\mathit {I}}$. Here ${\mathit {I}}$ denotes the identity matrix of order ${\mathit {n}}$, while * stands for complex-conjugation. We will only concern ourselves with the case ${\mathit {m}}={\mathit {p}}$ for some prime ${\mathit {p}}$. A necessary condition for the existence of generalized Hadamard matrices ${\mathit {H}}({\mathit {n}},\mathbb {C} _{p})$ is that ${p}|{n}$. The exponent matrix, $E({\mathit {n}},\mathbb {Z} _{p})$, of ${\mathit {H}}({\mathit {n}},\mathbb {C} _{p})$ is the ${\mathit {n}}\times {\mathit {n}}$ matrix with the entries in ${\mathit {Z}}_{p}=\{0,1,2,\dots ,{\mathit {p}}-1\}$, is obtained by replacing each entry $(e^{-2\pi {\mathit {i}}l/{\mathit {m}}})$ in ${\mathit {H}}({\mathit {n}},\mathbb {C} _{p})$ by the exponent ${\mathit {l}}$.
The elements of the Hadamard exponent matrix lie in the Galois field ${\text{GF}}(p)$, and its row vectors constitute the codewords of what shall be called a generalized Hadamard code.
Here, the elements of ${\mathit {E}}$ lie in the Galois field ${\text{GF}}(p)$.
By definition, a generalized Hadamard matrix ${\mathit {H}}$ in its standard form has only 1s in its first row and column. The $({\mathit {n}}-1)\times ({\mathit {n}}-1)$ square matrix formed by the remaining entries of $H$ is called the core of ${\mathit {H}}$, and the corresponding submatrix of the exponent matrix ${\mathit {E}}$ is called the core of construction. Thus, by omission of the all-zero first column cyclic generalized Hadamard codes are possible, whose codewords are the row vectors of the punctured matrix.
Also, the rows of such an exponent matrix satisfy the following two properties: (i) in each of the nonzero rows of the exponent matrix, each element of $\mathbb {Z} _{p}$ appears a constant number, ${\mathit {n}}/{\mathit {p}}$, of times; and (ii) the Hamming distance between any two rows is ${\mathit {n}}({\mathit {p}}-1)/{\mathit {p}}$.

### Property U

Let ${\mathit {C_{p}}}=\left\{1,x,x^{2},\ldots ,x^{p-1}\right\}$ be the cyclic group generated by ${\mathit {x}}$, where $x=\exp(2\pi ij/p)$ is a complex primitive $p$th root of unity, and $p>2$ is a fixed prime. Further, let ${\mathit {A}}=(x^{a_{i}})$, ${\mathit {B}}=(x^{b_{i}})$ denote arbitrary vectors over $\mathbb {C} _{p}$ which are of length ${\mathit {N}}=pt$, where ${\mathit {t}}$ is a positive integer. Define the collection of differences between exponents ${\mathit {Q}}=\{a_{i}-b_{i}\mod p:i=1,2,\ldots ,N\}$, where ${\mathit {n_{q}}}$ is the multiplicity of element ${\mathit {q}}$ of ${\text{GF}}(p)$ which appears in ${\mathit {Q}}$.
Vector ${\mathit {Q}}$ is said to satisfy Property U if and only if each element ${\mathit {q}}$ of ${\text{GF}}(p)$ appears in ${\mathit {Q}}$ exactly ${\mathit {t}}$ times (${\mathit {n_{q}}}=t,q=0,1,\ldots ,p-1$)
The following lemma is of fundamental importance in constructing generalized Hadamard codes.
Lemma. Orthogonality of vectors over ${\mathit {C_{p}}}$ – For fixed primes ${\mathit {p}}$, arbitrary vectors ${\mathit {A}},{\mathit {B}}$ of length ${\mathit {N}}=pt$, whose elements are from ${\mathit {C_{p}}}$, are orthogonal if the vector ${\mathit {Q}}$ satisfies Property U, where ${\mathit {Q}}$ is the collection of differences $\mod {\mathit {p}}$ between the Hadamard exponents associated with ${\mathit {A}},{\mathit {B}}$.

### M sequences

Let ${\mathit {V}}$ be an arbitrary vector of length ${\mathit {N}}$ whose elements are in the finite field ${\text{GF}}(p)$, where $p$ is a prime. Let the elements of a vector $V$ constitute the first period of an infinite sequence $a(V)$ which is periodic of period $N$. If $N$ is the smallest period for conceiving any subsequence, the sequence is called an M-sequence, or a maximal sequence of least period obtained by cyclically permuting $N$ elements. If whenever the elements of $V$ are permuted arbitrarily to yield $V^{*}$, the sequence $a(V^{*})$ is an M-sequence, then the sequence $a(V)$ is called M-invariant. The theorems that follow present conditions that ensure M-invariance. In conjunction with a certain uniformity property of polynomial coefficients, these conditions yield a simple method by which complex Hadamard matrices with cyclic core can be constructed.
The goal here is to find cyclic matrix ${\mathit {E}}={\mathit {E_{c}}}$ whose elements are in Galois field ${\text{GF}}(p)$ and whose dimension is $N=p^{n}-1$. The rows of ${\mathit {E}}$ will be the nonzero codewords of a linear cyclic code $K$, if and only if there is polynomial $g(x)$ with coefficients in $\mathrm {GF} (p)$, which is a proper divisor of ${\mathit {x^{N}-1}}$ and which generates $K$. In order to have$N$ nonzero codewords, $g(x)$ must be of degree $N-n$. Further, in order to generate a cyclic Hadamard core, the vector (of coefficients of) $g(x)$ when operated upon with the cyclic shift operation must be of period $N$, and the vector difference of two arbitrary rows of ${\mathit {E}}$ (augmented with zero) must satisfy the uniformity condition of Butson, previously referred to as Property U. One necessary condition for $N$-periodicity is that $x^{N}-1=g(x)h(x)$, where $h(x)$ is monic irreducible over. The approach here is to replace the last requirement with the condition that the coefficients of the vector $[0,g(x)]$ are uniformly distributed over ${\text{GF}}(p)$, i.e. each residue $0,1,\ldots ,p-1$ appears the same number of times (Property U). A proof that this heuristic approach always produces a cyclic core is given below.

## Examples of code construction
### Code construction using complex Hadamard matrices
#### Construction algorithm

Consider a monic irreducible polynomial $h(x)$ over ${\text{GF}}(p)$ of degree ${\mathit {n}}$ having a suitable companion $g(x)$ of degree $N-n$ such that $g(x)h(x)=x^{N}-1$, where the vector $[0,g(x)]$ satisfies Property U. This requires only a simple computer algorithm for long division over ${\text{GF}}(p)$. Since $h(x)|x^{N}-1$, the ideal generated by $g(x)\mod (x^{N}-1)$ is a cyclic code ${\mathit {K}}$. Moreover, Property U guarantees the nonzero codewords form a cyclic matrix, each row of period $N$ under cyclic permutation, which serves as a cyclic core for the Hadamard matrix $H(p,pn)$. As an example, a cyclic core for $H(3,9)$ results from the companions $h(x)=x^{2}+x+2$ and $g(x)=x^{6}+2x^{5}+2x^{4}+2x^{2}+x+1$. The coefficients of $g$ indicate that $\{0,1,6\}$ is the relative difference set, $\mod 8$.

#### Theorem

Let ${\mathit {p}}$ be a prime and ${\mathit {N}}+1={\mathit {pn}}$, with ${\mathit {g}}(x)$ a monic polynomial of degree ${\mathit {N}}-{\mathit {n}}$ whose extended vector of coefficients $C=[{\mathit {c}}_{0},{\mathit {c}}_{1},\ldots ,{\mathit {c}}_{N-1}]$ are elements of ${\text{GF}}(p)$. Suppose the following conditions hold:
* vector $C=[{\mathit {c}}_{0},{\mathit {c}}_{1},\dots ,{\mathit {c}}_{N-1}]$ satisfies the property U, and
* $g(x)h(x)=x^{N}-1$, where $h(x)$ is a monic irreducible polynomial of degree $n$.
Then there exists a p-ary linear cyclic code ${\bar {K}}$ of blocksize $N$, such that the augmented code $K=[0,{\bar {K}}]$ is the exponent matrix for the Hadamard matrix $H(p,p_{n})=xK$, with $x=e^{2\pi i/p}$, where the core of $H$ is a cyclic matrix.
Proof:
First note that $g(x)$ is monic and divides $x^{N}-1$ with degree $N-n$. Now, we need to show that the matrix $E_{c}$ whose rows are nonzero codewords constitutes a cyclic core for some complex Hadamard matrix $H$.
Given that ${\mathit {C}}$ satisfies property U, all of the nonzero residues of ${\text{GF}}(p)$ lie in C. By cyclically permuting elements of $C$, we get the desired exponent matrix ${E_{c}}$ where we can get every codeword in ${E_{c}}$ by permuting the first codeword. (This is because the sequence obtained by cyclically permuting $C$ is M-invariant.)
We also see that augmentation of each codeword of ${E_{c}}$ by adding a leading zero element produces a vector which satisfies Property U. Also, since the code is linear, the $\mod p$ vector difference of two arbitrary codewords is also a codeword and thus satisfy Property U. Therefore, the row vectors of the augmented code ${\mathit {K}}$ form a Hadamard exponent. Thus, ${\mathit {xK}}$ is the standard form of some complex Hadamard matrix ${\mathit {H}}$.
Thus from the above property, we see that the core of ${\mathit {E}}$ is a circulant matrix consisting of all the $N={\mathit {p}}^{k}-1$ cyclic shifts of its first row. Such a core is called a cyclic core where in each element of $\mathbb {Z} _{p}$ appears in each row of ${\mathit {E}}$ exactly $(N+1)/p={\mathit {p}}^{k-1}$ times, and the Hamming distance between any two rows is exactly $(N+1)(p-1)/p=(p-1)p^{k-1}$. The ${\mathit {N}}$ rows of the core ${\mathit {E}}$ form a constant-composition code - one consisting of ${\mathit {N}}$ cyclic shifts of some length ${\mathit {N}}$ over the set $\mathbb {Z} _{p}$. Hamming distance between any two codewords in $\mathbb {Z} _{p}$ is $(p-1){\mathit {p}}^{k-1}$.
The following can be inferred from the theorem as explained above. (For more detailed reading, the reader is referred to the paper by Heng and Cooke.) Let ${\mathit {N}}={\mathit {p}}^{\mathit {k}}-1$ for ${p}$ prime and ${k}\in \mathbb {Z} ^{+}$. Let $g(x)=c_{0}+c_{1}x+c_{2}x^{2}+\dots +c_{N-k}x^{N-k}$ be a monic polynomial over $\mathbb {Z} _{p}$, of degree N − k such that ${\mathit {g}}({\mathit {x}}){\mathit {h}}({\mathit {x}})={\mathit {x}}^{N}-1$ over $\mathbb {Z} _{p}$, for some monic irreducible polynomial ${\mathit {h}}({\mathit {x}})\in \mathbb {Z} _{p}[{\mathit {x}}]$. Suppose that the vector $({c}_{0},{c}_{1},\ldots ,{c}_{N-k},{c}_{N-k+1},\ldots ,{c}_{N-1})$, with ${\mathit {c}}_{i}=0$ for (N − k) < i < N, has the property that it contains each element of $\mathbb {Z} _{p}$ the same number of times. Then, the ${\mathit {N}}$ cyclic shifts of the vector ${\mathit {g}}=({\mathit {c}}_{0},{\mathit {c}}_{1},\ldots ,{\mathit {c}}_{N-1})$ form the core of the exponent matrix of some Hadamard matrix .
DNA codes with constant GC-content can obviously be constructed from constant-composition codes (A constant composition code over a k-ary alphabet has the property that the numbers of occurrences of the k symbols within a codeword is the same for each codeword) over $\mathbb {Z} _{p}$ by mapping the symbols of $\mathbb {Z} _{p}$ to the symbols of the DNA alphabet, ${\mathcal {Q}}=\{{\mathit {A}},{\mathit {T}},{\mathit {C}},{\mathit {G}}\}$. For example, using cyclic constant composition code of length ${\mathit {3}}^{k}-1$ over $\mathbb {Z} _{3}$ guaranteed by the theorem proved above and the resulting property, and using the mapping that takes $0$ to ${\mathit {A}}$, $1$ to ${\mathit {T}}$ and $2$ to ${\mathit {G}}$, we obtain a DNA code ${\mathcal {D}}$ with ${\mathit {3}}^{k}-1$ and a GC-content of ${\mathit {3}}^{k-1}$. Clearly ${\mathit {d_{H}}}=2.{\mathit {3}}^{k-1}$ and in fact since ${\mathit {\bar {G}}}={\mathit {C}}$ and no codeword in ${\mathcal {D}}$ contains no symbol ${\mathit {C}}$, we also have ${\mathit {d}}_{H}^{RC}({\mathcal {D}})\geq 3^{k-1}$. This is summarized in the following corollary.

#### Corollary

For any ${\mathit {k}}\in \mathbb {Z} ^{+}$, there exists DNA codes $\mathbb {D}$ with ${3}^{k}-1$ codewords of length ${3}^{k}-1$, constant GC-content ${3}^{k-1}$, ${\mathit {d}}_{H}^{RC}(\mathbb {D} )\geq {3}^{k-1}$ and in which every codeword is a cyclic shift of a fixed generator codeword ${\mathit {g}}$.
Each of the following vectors generates a cyclic core of a Hadamard matrix $H(p,p^{n})$ (where ${\mathit {N}}+1={\mathit {p^{n}}}$, and ${\mathit {n}}=3$ in this example):
$g^{(1)}=(22201221202001110211210200)$;
$g^{(2)}=(20212210222001012112011100)$.
Where, ${g(x)}=a_{0}+a_{1}x+\dots +a_{n}x^{n}$.
Thus, we see how DNA codes can be obtained from such generators by mapping ${0,1,2}$ onto ${A,T,G}$. The actual choice of mapping plays a major role in secondary structure formations in the codewords.
We see that all such mappings yield codes with essentially the same parameters. However the actual choice of mapping has a strong influence on the secondary structure of the codewords. For example, the codeword illustrated was obtained from ${g^{(1)}}$ via the mapping $0-A;1-T;2-G$, while the codeword ${g^{(2)}}$ was obtained from the same generator ${g^{(1)}}$ via the mapping $0-G;1-T;2-A$.

### Code construction via a Binary Mapping

Perhaps a simpler approach to building/designing DNA codewords is by having a binary mapping by looking at the design problem as that of constructing the codewords as binary codes. i.e. map the DNA codeword alphabet ${\mathcal {Q}}$ onto the set of 2-bit length binary words as shown: ${\mathit {A}}\to 00$, ${\mathit {T}}\to 01$, ${\mathit {C}}\to 10$, ${\mathit {G}}\to 11$.
As we can see, the first bit of a binary image clearly determines which complementary pair it belongs to.
Let ${\mathit {q}}$ be a DNA sequence. The sequence ${b(q)}$ obtained by applying the mapping given above to ${\mathit {q}}$, is called the binary image of ${\mathit {q}}$.
Now, let $b(q)={\mathit {b}}_{0}{\mathit {b}}_{1}{\mathit {b}}_{2}\dots {\mathit {b}}_{2n-1}$.
Now, let the subsequence $e(q)={\mathit {b}}_{0}{\mathit {b}}_{2}\dots {\mathit {b}}_{2n-2}$ be called the even subsequence of ${b(q)}$, and $o(q)={\mathit {b}}_{1}{\mathit {b}}_{3}{\mathit {b}}_{5}\ldots {\mathit {b}}_{2n-1}$ be called the odd subsequence of ${b(q)}$.
Thus, for example, for $q=ACGTCC$, then, $b(q)=001011011010$.
Then $e(q)=011011$ and $o(q)=001100$.
Let us define an even component as ${\mathcal {E}}({\mathcal {C}})=\{e(x):x\in {\mathcal {C}}\}$, and an odd component as ${\mathcal {O}}({\mathcal {C}})=\{o(x):x\in {\mathcal {C}}\}$.
From this choice of binary mapping, the GC-content of DNA sequence ${\mathit {q}}$ = Hamming weight of ${e(q)}$.
Hence, a DNA code ${\mathcal {C}}$ is a constant GC-content codeword if and only if its even component ${\mathcal {E}}({\mathcal {C}})$ is a constant-weight code.
Let ${\mathcal {B}}$ be a binary code consisting of $M$ codewords of length ${\mathit {n}}$ and minimum distance ${d_{\min }}$, such that ${\mathit {c}}\in {\mathcal {B}}$ implies that ${\mathit {\bar {c}}}\in {\mathcal {B}}$.
For ${\mathit {w}}>0$, consider the constant-weight subcode ${\mathcal {B_{\mathit {w}}}}=\{u\in {\mathcal {B}}:{\mathit {w_{H}}}(u)={\mathit {w}}\}$, where ${w_{H}(\cdot )}$ denotes Hamming weight. Choose ${\mathit {w}}>0$ such that ${\mathit {n}}\geq {\mathit {2w}}+\lceil {\mathit {d_{\min }}}/2\rceil$, and consider a DNA code, ${\mathcal {C}}_{w}$, with the following choice for its even and odd components:
${\mathcal {E}}=\left\{a{\bar {b}}:a,b\in {\mathcal {B}}_{w}\right\}$, ${\mathcal {O}}=\left\{ab^{RC}:a,b\in {\mathcal {B}},a<_{lex}b\right\}$.
Where $<_{lex}$ denotes lexicographic ordering. The $a<_{lex}b$ in the definition of ${\mathcal {O}}$ ensures that if $ab^{RC}\in {\mathcal {O}}$, then $ba^{RC}\notin {\mathcal {O}}$, so that distinct codewords in ${\mathcal {O}}$ cannot be reverse-complements of each other.
The code ${\mathcal {E}}_{w}$ has ${\left\vert {\mathcal {B}}_{w}\right\vert }^{2}$ codewords of length $2n$ and constant weight $n$.
Furthermore, ${\mathit {d_{H}}}({\mathcal {E}}_{w}\geq {\mathit {d_{\min }}})$ and ${\mathit {d_{H}}}^{R}({\mathcal {E}}_{w}\geq {\mathit {d_{\min }}})$ ( this is because ${\mathcal {B}}_{w}$ is a subset of the codewords in ${\mathcal {B}}$).
Also, ${\mathit {d_{H}}}(a{\bar {b}},d^{RC}c^{R})={\mathit {d_{H}}}(a,d^{RC})+{\mathit {d_{H}}}({\bar {b}},c^{R})={\mathit {d_{H}}}(a,d^{RC})+{\mathit {d_{H}}}(c,b^{RC})$.
Note that $b$ and $d$ both have weight ${\mathit {w}}$. This implies that $b^{RC}$ and $d^{RC}$ have weight ${\mathit {n-w}}$.
And due to the weight constraint on ${\mathit {w}}$, we must have for all $a,b,c,d\in {\mathcal {B}}_{w}$, ${\mathit {d_{H}}}(a{\bar {b}},d^{RC}c^{R})\geq 2\lceil {\mathit {d_{\min }}}/2\rceil \geq {\mathit {d_{\min }}}$.
Thus, the code ${\mathcal {O}}$ has $M(M-1)/2$ codewords of length $2n$.
From this, we see that ${d_{H}}(({\mathcal {O}}))\geq {d_{\min }}$ (because the component codewords of ${\mathcal {}O)$ are taken from ${\mathcal {B}}$).
Similarly, ${d_{H}^{RC}}(({\mathcal {O}}))\geq {d_{\min }}$.
Therefore, the DNA code
    ${\mathcal {C}}=\bigcup _{w=d_{\min }}^{w_{\max }}{\mathcal {C}}_{w}$
with ${w_{\max }}=({n}-\lceil d_{\min }/2\rceil )/2$, has ${\frac {1}{2}}M(M-1)\sum _{w=d_{\min }}^{w_{\max }}\left\vert {A_{w}}^{2}\right\vert$ codewords of length $2{\mathit {n}}$, and satisfies ${\mathit {d_{H}}}({\mathcal {B}})\geq {\mathit {d_{\min }}}$ and ${\mathit {d_{H}}}^{RC}({\mathcal {B}})\geq {\mathit {d_{\min }}}$.
From the examples listed above, one can wonder what could be the future potential of DNA-based computers?
Despite its enormous potential, this method is highly unlikely to be implemented in home computers or even computers at offices, etc. because of the sheer flexibility and speed as well as cost factors that favor silicon chip based devices used for the computers today.
However, such a method could be used in situations where the only available method is this and requires the accuracy associated with the DNA hybridization mechanism; applications which require operations to be performed with a high degree of reliability.
Currently, there are several software packages, such as the Vienna package, which can predict secondary structure formations in single stranded DNAs (i.e. oligonucleotides) or RNA sequences.