The quadtree encoding allows us to describe a $2^N×2^N$ black and white image as a sequence of bits (0 and 1). Those sequences are to be read from left to right like this:
<imgclass="img-responsive center-block"alt="4x4 image with colored marks denoting place where split can occur"src="https://cdn.freecodecamp.org/curriculum/project-euler/quadtree-encoding-a-simple-compression-algorithm.gif"style="background-color: white; padding: 10px;">
This image can be described by several sequences, for example : "<strong><spanstyle="color: red">0</span></strong><strong><spanstyle="color: blue">0</span></strong>10101010<strong><spanstyle="color: green">0</span></strong>1011111011<strong><spanstyle="color: orange">0</span></strong>10101010", of length 30, or "<strong><spanstyle="color: red">0</span></strong>10<strong><spanstyle="color: green">0</span></strong>101111101110", of length 16, which is the minimal sequence for this image.