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.

2.5 Data Structures 37<br />

tions <strong>and</strong> perhaps redesign the network such that their removal does not lead<br />

to the graph becoming disconnected (at the very least).<br />

Another category of graphs is made up of those that can have their vertices<br />

“colored” using one of three colors (say, red, green, <strong>and</strong> blue). These graphs<br />

fall into the “3-vertex-colorable” category. Graphs that do <strong>and</strong> do not fall<br />

into this category are depicted in Fig. 2.10. The problem is to decide whether<br />

three colors are sufficient to achieve such a coloring for an arbitrary graph<br />

[67]. If we consider a graph with n vertices, there are clearly 3 n possible ways<br />

of assigning colors to vertices, but only a fraction of them will encode proper<br />

colorings.<br />

(a) (b)<br />

Fig. 2.10. (a) 3-colorable. (b) Non-3-colorable graph<br />

In order to clarify this, consider Fig. 2.11a. All possible three-colorings of G<br />

(a) are depicted graphically in (b), with all proper colorings framed. A proper<br />

coloring is highlighted in (c), <strong>and</strong> an illegal coloring in (d) (note how v2 <strong>and</strong><br />

v3 are colored the same).<br />

Coloring could be applied to a situation where, for example, a company<br />

manufactures several chemicals, certain pairs of which could explode if brought<br />

into close contact. The company wishes to partition its warehouse into sealed<br />

compartments <strong>and</strong> store incompatible chemicals in different compartments.<br />

Obviously, the company wishes to minimize the amount of building work required,<br />

<strong>and</strong> so needs to know the least number of compartments into which<br />

the warehouse should be partitioned. We can construct a graph with vertices<br />

representing chemicals, <strong>and</strong> edges between vertices representing incompatibilities.<br />

The answer to the question of how many partitions are required is<br />

therefore equal to the smallest number of colors required to obtain a proper<br />

(i.e., legal) coloring of the graph.<br />

Other questions involve asking whether or not a graph contains a subgraph<br />

with its own particular properties. For example, “Does it contain a cycle?”<br />

The cycle shown in the example graph G depicted in Fig. 2.9 is considered a<br />

subgraph of G, as we see in Fig. 2.12.

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

Saved successfully!

Ooh no, something went wrong!