Almost every object in mathematics and programming is built from sets: the set of valid user IDs, the set of nodes in a network, the set of solutions of an equation. Before we can combine sets we need a clear meaning of the word and standard ways to write sets down.
“The students enrolled in IGNOU MCA” is a set: the university’s records decide membership. “The good students in the class” is not a set, because “good” has no exact meaning.
Two ways to write a set
Form
How it works
Example
Roster (tabular, listing) form
list the elements inside {}, separated by commas
V={a,e,i,o,u}
Set-builder (property) form
describe the property p(x) of the elements: {x∣p(x)} or {x:p(x)}
{x∣x∈N,2<x<11}
In roster form the order does not matter and repeated elements count once: {4,2,8,2,6}={2,4,6,8}. A third way, the Venn diagram, is a picture; it appears in the next section.
Special sets
Set
Symbol
Finite?
natural numbers 1,2,3,…
N
infinite
integers
Z
infinite
rational numbers
Q
infinite
real numbers
R
infinite
days of the week
—
finite, 7 elements
integers between 13 and 17 divisible by 6
∅
finite, 0 elements
Key takeaways
A set is a well-defined collection of distinct objects.
Roster form lists elements; set-builder form states a property.
Order and repetition do not matter in a set.
∅ has no elements; ∣A∣ is the number of elements of a finite set A.
Practice questions
Answer on paper first, then check. The explanation matters more than the letter you chose.
Question 6 · short answer
Write the set of vowels in the word “EDUCATION” in roster form and in set-builder form, and give its cardinality.
Show worked answer
The vowels in E-D-U-C-A-T-I-O-N are E, U, A, I, O. Roster form: {a,e,i,o,u} (order does not matter). Set-builder form: {x∣x is a vowel occurring in the word EDUCATION}. Cardinality: 5.
MCA Online notes are made for reading on screen. Open https://mcastudy.online/mcs-212/sets-relations-and-functions/sets-and-how-to-describe-them/ to read this page.