Let's stop for a moment and make a very subtle, but very important distinction. So far, we have been concerned with taking inputs of the form , and as output producing an array of sums of the form . Prefix algorithms that produce output as such are called inclusive; in the case of an inclusive prefix algorithm, the corresponding element at each index is included in the summation in the same index of the output array. This is in contrast to prefix algorithms that are exclusive. An exclusive prefix algorithm differs in that it similarly takes n input values of the form and produces the length-n output array .
This is important because some efficient variations of the prefix algorithm are exclusive by their nature. We'll see an example of one in the next sub-section.