Design and Analysis of Algorithm (DDA) are used to solve different types of problems. The program actually works according to the logic of the given DDA.