algorithm for problem circuits