In this issue’s article on Hi-res plotting of the Mandelbrot set, I came up with an intreguing challenge. Plotting every point on the screen is a tedious procedure. By the time a signifigant part of the image has been generated, several hours may have gone by. If there was some way to get a quick overview of what would appear on the screen, the operator could decide to change the area being examined before wasting hours on an uninteresting area.
The puzzle is in several parts, each of increasing difficulty.
1) PLOT a line across the screen by PLOTting first the midpoint, then the midpoints between the points PLOTted, then the midpoints between those points, etc.
2) Ensure that no point is PLOTted twice.
3) PLOT the entire screen – two dimensions.
4) Start at the top of the screen – Y axis will decrement.
A sample solution is embedded in the Mandelbrot program, lines 10, 110, 130, 140, 240, 250, and 260. I’m sure that there are better solutions – go to it!
MF