Intelligent behavior in problem solving machines