Expression that expands based on variables

Re: Expression that expands based on variables

How about stating the whole question, using the exact wording.

Re: Expression that expands based on variables

It is not a math question from a book or a teacher. It's an expression of how many comparisons an agorithm (made by me and another) makes in a worst case scenario. If my question is in any way not clear I will try to explain it better?

Re: Expression that expands based on variables

Quote:

Originally Posted by

**Zebub** It is not a math question from a book or a teacher. It's an expression of how many comparisons an agorithm (made by me and another) makes in a worst case scenario. If my question is in any way not clear I will try to explain it better?

Well it is not clear. At least, I can't see whats is going on there.

Can you describe the process used in the summations?

Re: Expression that expands based on variables

Quote:

Originally Posted by

**Plato** Well it is not clear. At least, I can't see whats is going on there.

Can you describe the process used in the summations?

The first variable (x) determines the upper bound of the summations and the value of the constant the summations indices are subtracted from.

The second variable (y) determines the number of summations, the number of factors the summations operate on, and the number of overall terms.

The y terms each contain y-1 summations, each summation having a lower bound of 0. The upper bound of the summations depends on the term. In the first term all upper bounds are x-1, in the second term one upper bound is x-2 and the others are x-1, in the third term two upper bounds are x-2 and the others are x-1, and so on.

How many factors the summations operate on is equal to y-1, one factor for each summation. Each factor is x-i, where i is one of the summation indices.

I hope that helps to clear it up.