Set (Mathematics)

Context: FIT1058_MOC Β· the simplest information structure Β· specified three ways Β· sized by its cardinality Β· the computational realisation is the Set (ADT)

Quick Revision

  • 🎯 Objective: an unordered, duplicate-free collection determined solely by membership βž” .
  • πŸ“¦ Core Components: Roster βž” list | Condition βž” filter a superset | Construction rule βž” generate members.
  • ⚑ Key Constraint: cardinality drives all counting β€” , .

πŸ“ Core

1. The Set (Membership Only)

  • Definition βž” a collection of elements with no order, no repetition.
  • Determined by βž” which objects belong βž” membership / non-membership .
  • Foundational βž” defines types we compute with (integer type = membership of ).

2. Three Specifications

  • Roster βž” , .
  • By condition βž” βž” filter a larger set by a predicate.
  • By construction βž” βž” generate members by a formula (colon = β€œsuch that”).

3. Cardinality & Assumptions

  • Cardinality βž” = number of elements ().
  • Elements may be sets βž” makes Power Set and Set Partition well-defined.
  • Assumption βž” naive set theory; sets are primitive collections (no paradox axioms).

Key identities:

βš–οΈ Core Decision Matrix

SpecificationFormBest when
Rostersmall, explicit finite sets
By conditionfiltering an existing superset
By constructiongenerating members by a rule
Informal illustration only β€” not a definition

When It Flips: order and repetition carry no information () β€” this is exactly what separates a set from a tuple/sequence, where (the domain of the Cartesian Product). The computational counterpart is the Set (ADT) with add/contains/remove.

πŸ“Š Exam Execution Trace

Manual Execution Trace

Testing membership of :

Step / StateCandidate Satisfies ??
0 (Init)β€”β€”β€”
1βœ“
2all satisfyβœ“
3 falseβœ—

⚠️ Common Mistakes

  • πŸ’‘ "" is an informal description, not a definition βž” it relies on guessing the pattern and never states the membership condition; use the condition/construction forms.

🧠 Active Recall