Homework assignments
MACS-358: Algebraic Structures and Discrete Mathematics
Exams
- Computer Project #1 (due Thursday October 12th, 15 points extra credit)
- Write a program that generates all ordered trees with
n nodes, and count them.
- Computer Project #2 (due Thursday October 5th, 5 points extra credit)
- Ex 7 p. 158
- Computer Project #3 (due Tuesday November 7th, 10 points extra credit)
- Let n and k be two integers, and S={1,...,n}. Write a program
which generates and print to the screen:
- All sequences of k elements of S
(not only the number of such sequences!)
- All permutations of k elements of S
- All combinations of k elements of S
- All combinations with repetitions of k elements of S
Hint: recursion is your friend.
Homework assignments
MACS-358: Algebraic Structures and Discrete Mathematics
Exams
Computer projects /
CSM MACS-358 /
Nicolas M. Thiéry
Last modified: Mon Jun 3 21:39:22 2002