are behaviors encoded in DNA?"
Many animals have quite substantial hereditary behavior. Moreover, these
behaviors are subject to evolution on fairly short time scales, so they
probably have straightforward DNA encodings on which mutations can act.
Mostly the behaviors seem to be sequences of actions, but perhaps there
are some of the form "do X until Y is true".
Professor of Computer Science at Stanford University.