<< set_theory

# Total Permutation
# Combination

==todo:add explanation using the element-bar persepective== ==todo:add some examples to explain this, and explain how the traditional perspective will explain these problems?==

Ex. How many times the inner for loop will execute(the value of k)?

for(k=0, i1=0; i1<=n; i1++)
    for(i2=0; i[2]<=i[1]; i[2]++)
        ...
            for(im=0; i[m]<=i[m-1]; i[m]++)
                k++

\[ {n+m\choose m} \]

2. inclusion-exclusion principle

==todo:include t==