in reply to Re^3: Unique key identifer?
in thread Unique key identifer?

I would think that a HoH does not bring any algorithmic advantage…

Its advantage is that it's more space-efficient. Each unique first-level key (fruit names in lecb's example) is always stored exactly once rather than sometimes stored twice.

Whether or not space efficiency is the advantage lecb is optimizing for, I can't say.

Replies are listed 'Best First'.
Re^5: Unique key identifer?
by Laurent_R (Canon) on Jun 29, 2014 at 15:33 UTC
    Its advantage is that it's more space-efficient.

    Yes, probably, but probably also less time efficient because of double indirection. (If that matters.)