From the description of Behaviour Trees on Wikipedia:
A
behavior tree is a
mathematical model of
plan execution used in
computer science ,
robotics ,
control systems and
video games. They describe switchings between a finite set of tasks in a modular
fashion. Their strength comes from their ability to create very complex tasks composed of simple tasks, without worrying how the simple tasks are implemented. Behavior trees present some similarities to
hierarchical state machines
with the key difference that the main building block of a behavior is a
task rather than a state. Its ease of human understanding make behavior
trees less error prone and very popular in the game developer
community. Behavior trees have been shown to generalize several other
control architectures. Mathematically, they are
directed acyclic graphs .