Constructing evidence-based treatment strategies using methods from computer science