chemart / dna-hpp

View on GitHub

Adleman's DNA Hamiltonian Path computation — The experiment that started DNA computing. Each vertex of a graph gets a random 20-base code word and each edge an oligo spanning the two halves of the vertices it joins, so when everything is mixed the strands ligate in…

chemistry official · built in wet fidelity: reconstructed constructive #banzhaf-yamamoto
files / README.md · 445 B · at 07aa9cc32c9b Raw

Adleman's DNA Hamiltonian Path computation

One of the artificial chemistries of Banzhaf & Yamamoto, Artificial Chemistries (MIT Press, 2015), §19.3.1; first proposed by Adleman, 1994.

Its generator ships with the chemart library, so loading it runs no code from the hub and needs no trust_remote_code.

import chemart

net = chemart.generate_network("chemart/dna-hpp", seed=0)   # same as "dna-hpp"
print(net.summary())