Hi,
As a programmer, I frequently need to be able to know the how to calculate the number of permutations of a set, usually for estimation purposes.
There are a lot of different ways specify the allowable combinations, depending on the problem at hand. For example, given the set of letters A,B,C,D
Assuming a 4 digit result, how many ways can those letters be arranged?
What if you can have 1,2,3 or 4 digits, then how many ways?
What if you are only allowed to use each letter at most once? twice?
What if you must avoid the same letter appearing twice in a row, but if they are not in a row, then twice is ok?
Etc. I'm sure there are many more.
Does anyone know of a web reference or book that talks about this subject in terms that a non-mathematician can understand?
Thanks!