DDA (Digital Differential Analyzer) is a line drawing algorithm used in computer graphics to generate a line segment between two specified endpoints. It is a simple and efficient algorithm that works by using the incremental difference between the x and y coordinates of the two endpoints to plot the line.
It avoids using multiple operations which have high time complexities.
Due to the limited precision in the floating point representation, it produces a cumulative error.