Algorithm to return all combinations of k elements from n Algorithm to return all combinations of k elements from n