code_junkie

Data structure for non-overlapping ranges within a single dimension

Nov 11th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Range {
  2. Date start
  3. Date end
  4. }
  5.  
  6. Boundary {
  7. Date value
  8. Range prev
  9. Range next
  10. }
  11.  
  12. Range {
  13. Boundary start
  14. Boundary end
  15. }
  16.  
  17. (RoomId, StartTime)
  18.  
  19. (RoomId, StartTime)
  20.  
  21. (boundary not between colBoudaryA and colBoundaryB)
  22.  
  23. (startBoundary < endBoundary)
Add Comment
Please, Sign In to add comment