[Home] [Puzzles & Projects] [Delphi Techniques] [Math topics] [Library] [Utilities]
|
|
Problem Description
A puzzle to find the total number of embedded cubes of any size that can be
found in this 4x4x4 cubical structure. Background & TechniquesThe "Ask Marilyn" column in today's edition of Parade Magazine (Dec. 15, 2013) offers this puzzle: "Consider a cubical
structure composed of unit cubes (like a child's building blocks), four on an
edge. Without drawing the structure or actually assembling it, how many cubical
shapes can you envision within it?" Programmer's Notes:I kept the analysis of the algorithm hidden until user clicks the "Show me" button, but here are the 10 lines of code which does the trick: for i:=1 to 4 do C[i]:=0; {initialize the cube counts} Running/Exploring the Program
Suggestions for Further Explorations
|
[Feedback] [Newsletters (subscribe/view)] [About me]Copyright © 2000-2018, Gary Darby All rights reserved. |