Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Bresenham's Line Algorithm

Computational Geometry Algorithm

Bresenham's line algorithm is a line drawing algorithm that determines which points of a raster should be selected to form a close approximation of a straight line between two given points. It is commonly used to draw line primitives in a bitmap image because it relies only on integer addition, subtraction and bit shifting, operations that have historically been very cheap on common computer hardware. It is an incremental error algorithm and one of the earliest algorithms developed in the field of computer graphics; an extension of it, the midpoint circle algorithm, is used for drawing circles.

Facts
Time Complexity
Time Complexity (category)
Linear Time -- O(n) 1
Credited To
Jack Elton Bresenham, 1962, at IBM 2
Connections

In Field

Source Bresenham's line algorithm, Wikipedia

Invented By

Jack E. Bresenham developed his line-drawing algorithm at IBM in 1962 for plotting lines on digital displays.

Sources
1. Bresenham's Line Algorithm (Wikipedia)
Wikipedia infobox: time complexity linear
Quote, Wikipedia infobox: time complexity linear
linear
View the Source
2. Bresenham's line algorithm, Wikipedia
  • History section
    Bresenham's line algorithm is named after Jack Elton Bresenham who developed it in 1962 at IBM.
  • In Field: Computer Graphics, Lead sentence
    Bresenham's line algorithm is a line drawing algorithm that determines the points of an n-dimensional raster that should be selected in order to form a close approximation to a straight line between two points.
  • In Group: Line Drawing and Clipping Algorithms, Lead section
    is a line drawing algorithm
View the Source
Wikidata: Bresenham's Line Algorithm
Wikidata Q549860, class allow-list match (w-wdresolver-0926)View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.