Write the DDA algorithm and Bresenham Line generation Algorithm. Compare the line generation mechanism of DDA algorithm with Bresenham Line generation Algorithm while drawing a line segment from (1, 0) and (9, 8). Show step by step execution of both Line Generation algorithm, though a Graph.
Digital Differential Analyzer (DDA) Algorithm:
The DDA algorithm is a simple method for generating a straight line between two given points. It works by calculating the slope of the line and then incrementing either the x or y coordinate of the current point at each step while calculating the corresponding y or x coordinate based on the slope.
Algorithm steps:
1. Calculate the difference in x and y coordinates between the two endpoints.
2. Determine __________ ________ _____ ______ _____ ____.
_______ __________ ___ _______ __________ ____ ______.
________ __________ ____ _______ _________ ______ _____ _____ __________ ___ ________.
_____ _________ _________ _________ _________ ___ _________ _____ _________.
___ ________ _____ ______ ____ ______ _____.
_____ ____ ___ ___ ______ ____.
_______ ____ ______ ______ ____.
____ _________ ___ ____ ___ __________ ________ __________ _____ ___ ________ __________.
________ ______ ______ _________ _____.
_______ _____ __________ ___ _____ ___ ______ _____ __________.
_______ _____ __________ _________ ___ _____ _________ _______.
_______ _________ _____ _______ ______ _________ _________ ____ ________.
__________ __________ ____ ____ ________ ________ ______ ______ ___ _____ __________ ________.
______ ______ __________ _____ ____ ___ _________ _______ ________.
______ ____ ______ ______ ____ ______ ______ ___ ________ _____ __________.
______ __________ __________ ___ ________ _________ _____ ____.
______ _________ ________ __________ _________ ___ _____ _______ ____ _______.
______ ______ ____ ____ ______ _______.
_________ __________ ________ __________ ___ __________ _______ ____ ______.
________ ______ _____ ________ ________ _____ _________ _________ _______ _______.
____ _________ ______ ____ ____ __________ _____ _____ ______ ____.
_____ __________ __________ ____ ___ _________ ______ _____ _____.
__________ __________ _______ _____ _____ ______ ____ _____ __________ ____ ____.
______ ____ __________ __________ _________ _____ _______.
___ ____ _____ _____ _____ __________ ________ _________ _________ _______ ___.
__________ __________ _____ __________ ______ __________ _______ _______ _________.
___ ____ _______ _____ ________ _______ _______ __________ ___ ______ ___ __________.
_________ _____ ________ _______ ________ ______ ______ ____ _____ ___ _______ ___.
________ ______ ___ __________ __________ ____ _____ ________ _____ ____ ______ ______.
_____ _______ ______ __________ ____ _________ _____ _______ _________ _____ ________.
_______ _____ _____ ___ _________ _____ _________.
__________ ______ ___ ___ ______ ________ ________ ______.
_____ ___ ____ ______ _____ ___ _____.
_____ _____ _________ _________ _____.
______ _____ _____ _______ _____ ____ ________ _____ ________ __________ _________.
________ _____ ___ _________ ___ __________ ___ __________.
__________ _______ __________ ________ _____ ______ ____ _____ ________ ______ ___ ________.
_______ ______ ______ _______ _______ _________ _________ ___.
______ __________ ___ _________ __________.
___ __________ ________ ______ ____ ___ _________ ______ ______ _____.
_____ ________ ________ _____ ______.
_____ _________ ___ ______ ____ _______ __________.
__________ __________ __________ _________ _____ _________ ___ _____ ______ _________ _______.
_______ ________ _______ ______ ____ _____ ________ _______ __________ _________.
Get Full Answer on WhatsApp