Semester
Subject
Year
Tribhuwan University
2082
Bachelor Level / Third Year / Fifth Semester / Science
(Computer Graphics)
Full Marks: 60
Pass Marks: 24
Time: 3 Hours
Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks.
Long Answers Questions
Bresenham's Circle Drawing Algorithm is an efficient scan-conversion method that uses only integer arithmetic to determine the closest pixel positions along a circle's circumference, exploiting the eight-way symmetry of a circle.
Key Idea:
The algorithm calculates pixels for only one-eighth of the circle (from 0° to 45°) and uses symmetry to plot the remaining seven octants simultaneously.
Eight-Way Symmetry:
For a point on the circle, the following 8 points are also on the circle:
Algorithm Steps:
Advantages:
DDA (Digital Differential Analyzer) is a line drawing algorithm that uses incremental floating-point calculations to find successive pixel positions along a line.
Given:
Step-by-step Calculation:
Iteration Table:
| Step | Pixel Plotted | ||
|---|---|---|---|
| 0 | 2 | 2 | (2, 2) |
| 1 | 3 | 3 | (3, 3) |
| 2 | 4 | 4 | (4, 4) |
| 3 | 5 | 5 | (5, 5) |
| 4 | 6 | 6 | (6, 6) |
Explanation: Since the line has a slope of (45° line), both x and y increment by exactly 1 at each step, producing a perfect diagonal line.

Conclusion: Bresenham's circle algorithm is preferred over parametric methods due to its integer-only arithmetic and efficiency. The DDA algorithm is simple and works well for lines of any slope by choosing the larger of dx/dy as the number of steps, ensuring smooth pixel placement.
Short Answers Questions