can anyone tell me whats the algorithm used for this function:
http://stat.ethz.ch/R-manual/R-devel/library/utils/html/combn.html ? I want to implement the same for php, so any pointers to php implementation of the same function would also be helpful. Thanks.
It appears that combn is implemented in R, so you can see the code by typing
combn <Enter>It begins
This is not the forum to copy and paste source code, but you can very easily see the code.