I have been doing a little reading up on bubble sort and have read on wikipedia that it's complexity is measured as $\Theta(n^2)$
This bubble sort however is slightly more efficient. I thought this would be the best place to ask how I would work out this particular implementations complexity seeing that the number of iterations in the inner loop is reduced with each pass.
for (top = items.Length; top > 0; top--)
{
for (low = 0, high = 1; high < top; low++, high++)
{
if (items[low].CompareTo(items[high]) > 0)
{
tmp = items[high];
items[high] = items[low];
items[low] = tmp;
}
}
}