Converting boolean-logic decision trees to finite state machines
medium.com