Re: Efficiently encoding a hierarchy

2007-07-17 Thread Diego Novillo
On 7/14/07 7:14 PM, Kannan Goundan wrote: > - A (0,5) > - B (1,1) > - C (2,4) > - D (3,3) > - E (4,4) > - F (5,5) > - G (6,7) > - H (7,7) > > A given instance is of type "C" if its "code" field is between 2 and 4, > inclusive. Interesting, thanks. In this case, we probably shou

Efficiently encoding a hierarchy

2007-07-14 Thread Kannan Goundan
(I don't follow this list regularly, but ran into the GIMPLE tuples proposal and had a suggestion. Apologies if you were already aware of this technique.) The proposed tuple structure has the fields "code" and "subcode". My reading of its intent is to allow a simple two-level hierarchy of types.