Recursive Subdivision using DFSsubdivide function using pseudo codefunction subdivide(x,y,size){ IF size != 1 AND "the pixels in the square are not all the same color"{ half = size/2 subdivide(x,y,half) # upper left quadrant subdivide(x,y+half,half) # lower left quadrant subdivide(x+half,y+half,half) # lower right quadrant subdivide(x+half,..