I was trying to simply an expression in an exercise related to randomized algorithms. Here is the expression which I have obtained at the end.
n+k−1∑i=1i(n−ik−1)(nk)
Is there any way to simplify the numerator so that the whole expression simplifies into a nice closed formula? A combinatorial approach would be greatly appreciated.
Answer
Consider the number of ordered pairs (a,S) such that S is a k-element subset of {1,2,…,n} and a≤minS.
One way of counting:
Fix minS.
If minS=i, the number of sets = (n−ik−1) (choose k−1 from {i+1,i+2,…,n}. For each such S, you have i possibilities for a.
Thus the number of (a,S) pairs = ∑n−k+1i=1i(n−ik−1)
Now count that differently: either a=minS or not.
If a≠minS, then the number is (nk+1) (pick k+1 elements basically)
If a=minS, the number is (nk).
Thus the numerator you seek is (nk)+(nk+1)=(n+1k+1)
So your expression simplifies to n+1k+1.
(Note, I have assumed you wanted the sum upto n−k+1)
No comments:
Post a Comment