zhangru-ng / distributed-system

Course projects of COP5615 Fall 15: distributed algorithms implemented in Scala
0 stars 1 forks source link

[Scala_chord] Circular intervals comparison #9

Closed zhangru-ng closed 8 years ago

zhangru-ng commented 8 years ago

Start maybe greater than end. Even start is smaller, it may lead for more than one circle.

zhangru-ng commented 8 years ago

Use leftEnd and rightEnd to specify open/closed interval, compare start and end at the beginning, if start > end, use different strategy.

zhangru-ng commented 8 years ago

Start equal to end means the interval cover the whole ring.