SLIDE 1
Discrete Structures Final Exam Study Guide
In what follows, I will give examples for questions similar to the questions in the fjnal exam with a short solution for them.
Given a set of possible characters, how many strings of a certain length can be made with this?
Examples: ś Characters: aśz Length: 10 Strings: 2610 ś Characters: aśz, AśZ, 0ś9, !, @, $, %, & Length: 10ś25 Strings:
25
- l=10
67l For each character, there are 67 options. For length 10, this makes 6710 possible string. For length 11, 6711 possible strings, and so on. Adding the possibilities for each length together, we get 25
l=10 67l.
Given a grid where you can only move up or right, how many paths are there from one point to another? (See Section 6.4, Problem 33)
A B
Width: 5 Height: 3 Paths from A to B: C(5 + 3, 3)
A B X Y
Paths from A to X: C(2 + 2, 2) Paths from X to Y : C(3 + 1, 1) Paths from Y to B: C(2 + 2, 2) Paths from A to B passing X and Y : C(2 + 2, 2) · C(3 + 1, 1) · C(2 + 2, 2)
Pigeonhole Principle
There are 38 difgerent time periods during which classes at a university can be scheduled. If there are 677 difgerent classes, how many difgerent rooms will be needed? 677 38
- = 18