Open Access Highly Accessed Research

Engineering bacteria to solve the Burnt Pancake Problem

Karmella A Haynes1*, Marian L Broderick4, Adam D Brown3, Trevor L Butner3, James O Dickson2, W Lance Harden2, Lane H Heard36, Eric L Jessen3, Kelly J Malloy3, Brad J Ogden2, Sabriya Rosemond15, Samantha Simpson1, Erin Zwack1, A Malcolm Campbell1, Todd T Eckdahl3, Laurie J Heyer2 and Jeffrey L Poet4

Author Affiliations

1 Davidson College, Department of Biology, Davidson, NC 28036, USA

2 Davidson College, Department of Mathematics, Davidson, NC 28036, USA

3 Missouri Western State University, Department of Biology, St. Joseph, MO 64507, USA

4 Missouri Western State University, Department of Computer Science, Math and Physics, St. Joseph, MO 64507, USA

5 Hampton University, Biology Department, Hampton, VA 23668, USA

6 Central High School, St. Joseph, MO 64506, USA

For all author emails, please log on.

Journal of Biological Engineering 2008, 2:8  doi:10.1186/1754-1611-2-8

Published: 20 May 2008



We investigated the possibility of executing DNA-based computation in living cells by engineering Escherichia coli to address a classic mathematical puzzle called the Burnt Pancake Problem (BPP). The BPP is solved by sorting a stack of distinct objects (pancakes) into proper order and orientation using the minimum number of manipulations. Each manipulation reverses the order and orientation of one or more adjacent objects in the stack. We have designed a system that uses site-specific DNA recombination to mediate inversions of genetic elements that represent pancakes within plasmid DNA.


Inversions (or "flips") of the DNA fragment pancakes are driven by the Salmonella typhimurium Hin/hix DNA recombinase system that we reconstituted as a collection of modular genetic elements for use in E. coli. Our system sorts DNA segments by inversions to produce different permutations of a promoter and a tetracycline resistance coding region; E. coli cells become antibiotic resistant when the segments are properly sorted. Hin recombinase can mediate all possible inversion operations on adjacent flippable DNA fragments. Mathematical modeling predicts that the system reaches equilibrium after very few flips, where equal numbers of permutations are randomly sorted and unsorted. Semiquantitative PCR analysis of in vivo flipping suggests that inversion products accumulate on a time scale of hours or days rather than minutes.


The Hin/hix system is a proof-of-concept demonstration of in vivo computation with the potential to be scaled up to accommodate larger and more challenging problems. Hin/hix may provide a flexible new tool for manipulating transgenic DNA in vivo.