Operations between temporal discrete intervals

110 Views Asked by At

I am going to present you my problem and ask you for solutions' references.

I have a discrete temporal series, which is the sequence of Natural numbers $T = \lbrace 1, 2, \dots, N \rbrace$.

An Event is a set of interval, where each interval is a couple $<start, stop>$. E.g, we can have the following Event: $$E=\{ <0, 10>, <20, 30>, <40,50> \}$$

I want to define some operations between Events: $\cap,\cup,\setminus$ and explore their properties.

Do you know if I can find any references to solutions which can be applied to this problem?