The problem of evolutionary tree construction is inf...
Small correction: r(D) = 7 + 10 + 7 + 5 + 9 = 38, you wrote r(D) = 7 + 10 + 7 + 5 + 9 = 41