What does $\max(0\leq q \leq n-1)$ mean?

88 Views Asked by At

I’m reading the C.L.R.S. algorithms book and came across this: $\max(0\leq q \leq n-1)$. I tried searching through the book to find out what it means, but couldn’t find anything. I understand what something like $\max(x, y, z)$ would mean, but I don’t know what these inequalities mean in this case. Any info on the matter would be appreciated. Thanks!

1

There are 1 best solutions below

1
On BEST ANSWER

Unless you are reading a weirdly-typeset knockoff copy of the textbook, it should say $$ T(n) = \max\limits_{0 \le q \le n-1}(T(q) + T(n-q-1)) + \Theta(n) $$ rather than $\max(0 \le q \le n-1)$.

The notation $\max\limits_{0 \le q \le n-1}(T(q) + T(n-q-1))$ means "the maximum value of $T(q) + T(n-q-1)$ over all $q$ such that $0 \le q \le n-1$". From context, we may guess that $q$ is an integer, though the notation is ambiguous on this point.