DT Algorithm