Homework_1_Answer - Algorithm - Assistant Professor:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Ching‐Chi Lin Deadline: 2010.9.27 Homework 1 Answer 1. Examine the following formal descriptions of sets so that you understand which members they contain. Write a short informal English description of each set. (a) {-2, 4, - 8, 16, …} (b) {1, 1, 2, 3, 5, …} (c) {n | n = 2k + 1 for some k in N} (d) {c | c = (2n)! / ((n+1)! n!) for some n in N} (bonus) ANS: (a) the numbers is -2 power of k (k belongs +Z) (b) fibonacci numbers (c) odd numbers (d) catalan numbers (bonus) 2. Write formal descriptions of the following sets. (a) The set containing the numbers 1, 10, and 100 (b) The set containing all integers that are greater than 5 and less than 2 (c) The set containing all natural number less than -2 ANS: (a) {1, 10, 100} (b) empty set, , {} (c) empty set, , {} 3. Let A be the set {x, y, z} and B be the set {x, y}. (a) Is A a superset of B? (b) Is A a proper subset of B? (c)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Homework_1_Answer - Algorithm - Assistant Professor:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online