permutations and combination
-
hi, I have ,say N=4 and r=3, i want to display all combinations of Ncr..... i.e 123 234 341 421...etc There should not any repition like 123..321..231..etc..it should display only one ....... thanks before.. James -- modified at 13:48 Saturday 18th February, 2006
-
hi, I have ,say N=4 and r=3, i want to display all combinations of Ncr..... i.e 123 234 341 421...etc There should not any repition like 123..321..231..etc..it should display only one ....... thanks before.. James -- modified at 13:48 Saturday 18th February, 2006
-
To print All the combinations of N elements with r combinations....... -- modified at 14:24 Saturday 18th February, 2006
-
hi, I have ,say N=4 and r=3, i want to display all combinations of Ncr..... i.e 123 234 341 421...etc There should not any repition like 123..321..231..etc..it should display only one ....... thanks before.. James -- modified at 13:48 Saturday 18th February, 2006
http://www.codeproject.com/cpp/CombC.asp[^] First google, then "codeproject" then ask in a forum. My google search string was "C++ choose r from n combination algorithm" - and the 1st hit was the above link. Searching on google is an art - and forums are there when that art fails (which it does sometimes). Koushik Biswas