solve ddeg in algo_heights