Give 10 difference between dda and bresenham algorithm?
DDA algorithm involves floating-point operations, while Bresenham algorithm uses only integer operations.
DDA algorithm calculates the exact position of each pixel, while Bresenham algorithm determines the closest pixel to the ideal line path.
DDA algorithm can suffer from precision issues due to floating-point calculations, while Bresenham algorithm is more accurate and efficient.
DDA algorithm is simpler to implement but slower than Bresenham algorithm.
DDA algorithm is susceptible to rounding errors, while Bresenham algorithm is not.
DDA algorithm can produce jagged lines due to rounding errors, while Bresenham algorithm generates smoother lines.
DDA algorithm is suitable for both lines and circles, while Bresenham algorithm is primarily used for drawing lines.
DDA algorithm can handle lines with any slope, while Bresenham algorithm is more efficient for lines with slopes close to 0 or 1.
DDA algorithm involves multiplication and division operations, while Bresenham algorithm uses addition and subtraction operations.
DDA algorithm is a general line drawing algorithm, while Bresenham algorithm is specialized for line drawing and rasterization.