Hex Grid
This a program finds all of the permutations of a fixed number of
connected hexagons. The program will also print the shapes to the
printer, rendering the shapes to maximize space used. The algorithm
starts with a single hexagon and tries to add neighbors to create a
unique hexagon pattern that has not been seen. The output from one
level feeds the next. If the output is unsorted you can see sibling
shapes from the same parent next to each other in the list.
Options:
- Enable Boarder - draws a box around each shape.
- Last Level Only - Only draws the last set of hexagon shapes
with the largest number of hexagons.
- Show number - puts a label at the bottom of the screen
showing level and number of shapes.
- Sort - sorts shapes first by number of hexagons and then by
their average x/y ratio of each hexagon.
Text Image
This a program tries to make a unique image from text using the
proximity of characters to other characters. The algorithm creates a
grid for the characters a-z and a space and arranges them on two axes
from most frequent ( top left ) to least frequent bottom right. It the
takes a sliding window and for every pair of characters in the window
takes the first character as the x coordinate and the second as the y
and increments the value of the grid in that location. The values that
are added vary. Values near the middle of the window are larger and
values near the edges are smaller. The "window end relevance" parameter
is this end value.
The current problem with the algorithm is that the data needs to be
normalized by the natural frequency of characters so that the graph is
uniform and patterns can be easily seen and compared.