Weight: 150 points. Please hand in via online
dropbox.
- The last slide in Monday's lecture describes with one example the problem of
taking a list of elements and returning a list of all possible orderings of
the elements in the original list. Use the design recipe to develop a function
"orderings" that takes a list of elements and returns a list of list of elements.
The design recipe should also help you determine which auxilary functions you
might need to define in order to solve this problem.
-
Book problems: 14.2.1, 14.2.2. 14.2.3, 14.2.4.