

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Given a set of elements, find all permutations without repetitions.
Input Output A B C A B C A C B B A C B C A C B A C A B
Given a multi-set of elements, find all permutations.
Input Output A B B A B B B A B B B A
Given a set of elements, find all variations of k elements without repetitions.
Input Output A B C 2
Given a set of elements, find all variations of k elements with repetitions.
Input Output A B C 2
Given a set of elements, generate all combinations of k elements without repetition.
Input Output A B C 2
Given a set of elements, generate all combinations of k elements with repetition.
Input Output A B C 2