3. Describe an algorithm by using stacks and/or queues to enumerate all permutations of the elements in a set. You need
Posted: Tue Jul 12, 2022 8:10 am
question. Example: input: {a, b, c}, output: a, b, c; a, c, b; b, a, c; b, c, a; c, a, b; c, b, a
3. Describe an algorithm by using stacks and/or queues to enumerate all permutations of the elements in a set. You need to decide which data structure(s) is/are suitable. You cannot use any recursive functions for this