According to DDA algorithm,
|dx| = 8, |dy| = 4
since |dx| > |dy|, steps = |dx| = 8
Xinc = |dx|/steps = 1, Yinc = |dy|/steps = 0.5.
Algorithm:
for k = 1 to steps:
Xk+1 = Yk + Xinc
Yk+1 = Yk + Yinc
// plot round(Xk+1), round(Yk+1)
Since DDA works with integer values only, we need to round the values of coordinates to nearest integer. Consider 0.5 to be rounded to 1.
Thus following the algorithm, we get the first four points as (0, 0), (1, 1), (2, 1), (3, 2).
Hence option 1.