I currently have a problem that I'm working on.
I am trying to recreate Korf's algorithm (http://www.cs.princeton.edu/courses/archive/fall06/cos402/papers/korfrubik.pdf) for solving 3x3x3 rubik's cubes.
The problem is, when generating a pattern database I want a way to only store the depth (which represents the h function in A*) of the node. My current way of identifying the nodes is by a character string that looks like this: "wwooyyrrwwooyyrrggggbbbb".
Does anyone have any ideas for how I could index my pattern database so that I don't have to store (something similar to) that monstrosity for every record?
Thanks,
T