I'm rewriting an algorithm in CL that was originally designed in C. It involves running functions on the addresses of the children of binary tree nodes to generate hash keys.
I've got control over the hashing function via Ingvar Mattson's generic hash table implementation.
The problem now is how to actually generate hash keys that are the same for isomorphic tree nodes. So how can I do this in Lisp?
CFFI gives me access to pointer addresses of foreign objects, but I can't run it on a reference to a local struct.
Any ideas?
Thanks,
Siggy
I've got control over the hashing function via Ingvar Mattson's generic hash table implementation.
The problem now is how to actually generate hash keys that are the same for isomorphic tree nodes. So how can I do this in Lisp?
CFFI gives me access to pointer addresses of foreign objects, but I can't run it on a reference to a local struct.
Any ideas?
Thanks,
Siggy