Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I am reading the paper Linear Work Suffix Array Construction by Juha Karkkainen, Peter Sanders, Stefan Burkhardt, and in a number of places they use the notation $$(0,v].$$ I assumed it was a mistake, but they use it a number of times. What does it mean?

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

$(0,v]$ is the set of numbers between $0$ and $v$, where $0$ is never reached. In other words : $(0,v] = \{ x | 0<x\le v\}$. It is also written $]0,v]$.

share|improve this answer
add comment

Looks like the interval from $0$ to $v$, excluding $0$ but including $v$.

  • $[0,1]$ includes both $0$ and $1$
  • $[0,1)$ includes $0$ and excludes $1$
  • $(0,1]$ excludes $0$ and includes $1$
  • $(0,1)$ excludes both $0$ and $1$

Half-open intervals (the middle two types) are very common in computing contexts, although you usually see half-open the other way (i.e. $[a,b)$). They're convenient due to how they combine: e.g. the disjoint union of $[a,b)$ and $[b,c)$ is $[a,c)$, and appear in common programming style, e.g. in C one usually writes a for loop as

for(i=0; i < 10; ++i)

to include the ten integers from $0$ through $9$: i.e. the interval $[0,10)$ of integers.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.