http://www.rawkam.com/?p=703

This link might help.

On Tue, Jul 20, 2010 at 4:48 PM, Tech Id <[email protected]> wrote:

> Read the wikipedia entry on XOR linked lists and liked it a lot!
>
> http://en.wikipedia.org/wiki/XOR_linked_list
>
> Basic property they use is X#Y#X = X (# stands for XOR operation).
> So, if you store X#Y in the pointer field, then next node pointer is
> achievable by XORing this "pointer field" with previous field pointer.
> And prev node pointer is achievable by XORing this "pointer field"
> with next node pointer.
>
> Addition/Subtraction linked lists are also great!
> Read them on the link above.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to