- Published on
Two Ways to Represent Sets
- Authors
- Name
- hwahyeon
There are two main ways to represent sets: roster notation and set-builder notation.
Roster notation lists all the elements of a set inside curly brackets {}
. This method is useful when the number of elements is small and they can be clearly listed.
For example, the set of natural numbers from 1 to 5 can be written as:
Set-builder notation does not list the elements directly. Instead, it uses a condition or property that the elements of the set must satisfy.
For example, the set of odd natural numbers between 1 and 100 can be written as:
Depending on the situation, either method can be used. Set-builder notation is especially useful when the set has many elements or follows a specific rule, making the expression more concise and clear.