ArticleslgStudy

computer science

Adam7 algorithm

Adam7 algorithm is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Adam7 algorithm rather than just read about it. In short: Adam7 is an interlacing algorithm for raster images, best known as the interlacing scheme optionally used in PNG images. An Adam7 interlaced image is broken into seven subimages, which are defined by replicating this 8 × 8 pattern across the full image: The subimages are then stored in the image file in numerical order.

Adam7 algorithm — main illustration
Adam7 algorithm — illustration

Key takeaways

  • Adam7 algorithm belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Adam7 algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Adam7 algorithm from memory before moving on to harder problems.

Reference excerpt

Adam7 is an interlacing algorithm for raster images, best known as the interlacing scheme optionally used in PNG images. An Adam7 interlaced image is broken into seven subimages, which are defined by replicating this 8 × 8 pattern across the full image:

The subimages are then stored in the image file in numerical order. Adam7 uses seven passes and operates in both dimensions, compared to only four passes in the vertical dimension used by GIF. This means that an approximation of the entire image can be perceived much more quickly in the early passes, particularly if interpolation algorithms such as bicubic interpolation are used.

History Adam7 is named after Adam M. Costello, who suggested the method on February 2, 1995, and after the seven steps involved. It is a rearrangement of this five-pass scheme that had earlier been proposed by Lee Daniel Crocker:

Alternative speculative proposals at the time included square spiral interlacing and using Peano curves, but these were rejected as being overcomplicated.

Passes The pixels included in each pass, and the total pixels encoded at that point are as follows:

When rendering, the image will generally be interpolated at earlier stages, rather than just these pixels being rendered.

Related algorithms Adam7 is a multiscale model of the data, similar to a discrete wavelet transform with Haar wavelets, though it starts from an 8 × 8 block, and downsamples the image, rather than decimating (low-pass filtering, then downsampling). It thus offers worse frequency behavior, showing artifacts (pixelation) at the early stages, in return for simpler implementation.

Iteration Adam7 arises from iteration of the following pattern:

which may be interpreted as "folding" in the vertical and horizontal dimensions. Similarly, GIF interlacing 1324 can be seen as iteration of the 12 pattern, but only in the vertical direction (12 expands to 1.2. which is filled in as 1324). Using this 3-pass pattern means the first pass is (1/2)2 = 1/4 (25%) of the image. Iterating this pattern once yields a 5-pass scheme; after 3 passes this yields

which is then filled in to:

In the 5-pass pattern, the first pass (1/4)2 = 1/16 (6.25%) of the image. Iterating again yields the 7-pass Adam7 scheme, where the first pass (1/8)2 = 1/64 (1.5625%) of the image. In principle this can be iterated, yielding a 9-pass scheme, an 11-pass scheme, and so forth, or alternatively an adaptive number of passes can be used, as many as the image size will allow (so the first pass consists of a single pixel), as is usual in scale-free multiscale modeling. In the context that PNG was developed (i.e., for the image sizes and connection speeds in question), a 7-pass scheme was seen as sufficient, and preferable to a simple 5-pass scheme.

References

External links Animated comparison of Adam7 and GIF interlacing

Illustrations

Adam7 algorithm: An illustration of Adam7 interlacing over a 16×16 image
An illustration of Adam7 interlacing over a 16×16 image
Adam7 algorithm: An image being displayed using the Adam7 algorithm.
An image being displayed using the Adam7 algorithm.
Adam7 algorithm illustration
Adam7 algorithm illustration
Adam7 algorithm illustration

Worked examples

Example 1 — a first encounter with Adam7 algorithm

Start with the simplest possible case. Write down what Adam7 algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Adam7 algorithm before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Adam7 algorithm ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Adam7 algorithm

In research
Adam7 algorithm appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Adam7 algorithm in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Adam7 algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Image compression, Lossless compression algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Adam7 algorithm outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Adam7 algorithm” →

How to study Adam7 algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Adam7 algorithm means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Adam7 algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Adam7 algorithm in simple terms?

Adam7 is an interlacing algorithm for raster images, best known as the interlacing scheme optionally used in PNG images. An Adam7 interlaced image is broken into seven subimages, which are defined by replicating this 8 × 8 pattern across the full image: The subimages are then stored in the image fi…

Why does Adam7 algorithm matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Adam7 algorithm?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Adam7 algorithm.

Tags

  • Image compression
  • Lossless compression algorithms

Keep exploring