Update: The above link to modeling financial instruments may be confusing, but the following sentence from the above link resonated with me, "model in which agents live a finite length of time and live long enough to endure into at least one period of the next generation's lives."
I am looking for a way to model overlapping generations where 'a' lies within 'b' which starts in 'c' and ends in 'd' whereby 'c' lies within 'e' and so on. Here is my attempt to draw it in ascii
Update: Here is a real example: geologic time is made up of opinions. "The opinion is that the given level in a section at a locality corresponds to zone G. When this is compared to other opinions, it will come out that zone G is in the regional Tulean stage. When that is compared to other opinions, it will come out that the Tulean straddles the Tremadoc and Arenig. But the Arenig spans the Floian through lower Darriwilian. So, without the proper precautions, one could end up thinking the level in the section is somewhere between the Tremadoc and Darriwilian, when in fact it is much better constrained than that."+-- | +-- | | |d +--- a--+ b | | | --+--+ +-- | | |c |e | | +--| +---
It could be done in SQL, and that is how we are tackling it right now, but it is messy, and the coding is always complicated. I am thinking of alternatives, perhaps as graphs (RDF triples), or some other way.
I am sure knowledgable monks will have several ideas. I look forward to your thoughts.
Update 2: Set::IntervalTree looks very promising.
In reply to modeling overlapping generations by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |