CSCI-3310 Homework 1
Problem 1. Suppose we have two sets, A = {10, 20, 30}, B = {20,b,c}. Find
1. A?B
2. A?B
3. B-A
4. B - A?B
Problem 2. Write the following descriptions in set in the format of {element | condition}.
1. the set containing all positive integer less than 10.
2. the set containing all even negative integers but greater than -500. (hint: if x is an integer, you can
use 2x to get even integers.)
(Z is all integer set and N is the set of all natural numbers).
Problem 3. Suppose we have some water Pokemons with the movement in a set.
Samurott Empoleon Gyarados
aqua tail flash cannon splash
hydro cannon hydro cannon tackle
water gun water gun Aqua Tail
megahorn waterfall waterfall
crunch
Table 1: Movesets of pokemons
1. Write down the set of three pokemons using the initial letter S, E, M respectively. (e.g. you should use
S denote the set of Samurott's moves).
2. Write down the set operation for the following question first, then give the set satisfies the question.
(answer format: if your answer is S?E, then you write S?E = {x|x ? S and x ? E} =
{ hydro cannon }.)
(a) what are the move(s) belongs to Samurott but not Gyrados?
(b) what are the move(s) belongs to Empoleon, but not the other two?