ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Structures
    CSI-303
    Progress0 / 21 topics
    Topics
    1. Introduction to Logic and Proofs2. Direct Proofs3. Proof by Contradiction4. Sets5. Combinatorics6. Sequences7. Formal Logic8. Propositional and Predicate Calculus9. Methods of Proof10. Mathematical Induction and Recursion11. Loop Invariants12. Relations and Functions13. Pigeonhole Principle14. Trees and Graphs15. Elementary Number Theory16. Optimization and Matching17. Fundamental Structures18. Functions19. Relations (Recursions)20. Cardinality and Countability21. Probabilistic Methods
    CSI-303›Fundamental Structures
    Discrete StructuresTopic 17 of 21

    Fundamental Structures

    11 minread
    1,941words
    Intermediatelevel

    Fundamental Structures in Discrete Mathematics

    In discrete mathematics, fundamental structures form the building blocks of various mathematical and computational theories. These structures help us model and solve problems in fields such as computer science, cryptography, and graph theory. Some of the most important fundamental structures in discrete mathematics include:

    1. Sets
    2. Relations
    3. Functions
    4. Graphs
    5. Trees
    6. Algebraic Structures (Groups, Rings, Fields)

    Each of these structures has unique properties and plays a key role in developing algorithms and solving mathematical problems. Let's explore each of them in detail:


    1. Sets

    A set is a well-defined collection of distinct objects, considered as an object in its own right. The objects in a set are called elements or members.

    Operations on Sets:

    • Union: A∪BA \cup BA∪B is the set of elements that are in either AAA, BBB, or both.
    • Intersection: A∩BA \cap BA∩B is the set of elements that are in both AAA and BBB.
    • Difference: A−BA - BA−B is the set of elements that are in AAA but not in BBB.
    • Complement: The complement of AAA, denoted A′A'A′, is the set of all elements not in AAA.
    • Subset: A⊆BA \subseteq BA⊆B means that every element of AAA is also an element of BBB.

    Set Operations Example:

    Let A={1,2,3}A = \{1, 2, 3\}A={1,2,3} and B={3,4,5}B = \{3, 4, 5\}B={3,4,5}:

    • Union: A∪B={1,2,3,4,5}A \cup B = \{1, 2, 3, 4, 5\}A∪B={1,2,3,4,5}
    • Intersection: A∩B={3}A \cap B = \{3\}A∩B={3}
    • Difference: A−B={1,2}A - B = \{1, 2\}A−B={1,2}

    2. Relations

    A relation is a way of associating elements of one set with elements of another set (or the same set). More formally, a relation RRR from a set AAA to a set BBB is a subset of the Cartesian product A×BA \times BA×B, meaning that R⊆A×BR \subseteq A \times BR⊆A×B.

    Types of Relations:

    • Reflexive: A relation RRR on a set AAA is reflexive if for every a∈Aa \in Aa∈A, (a,a)∈R(a, a) \in R(a,a)∈R.
    • Symmetric: A relation is symmetric if whenever (a,b)∈R(a, b) \in R(a,b)∈R, then (b,a)∈R(b, a) \in R(b,a)∈R.
    • Transitive: A relation is transitive if whenever (a,b)∈R(a, b) \in R(a,b)∈R and (b,c)∈R(b, c) \in R(b,c)∈R, then (a,c)∈R(a, c) \in R(a,c)∈R.
    • Antisymmetric: A relation is antisymmetric if whenever (a,b)∈R(a, b) \in R(a,b)∈R and (b,a)∈R(b, a) \in R(b,a)∈R, it must follow that a=ba = ba=b.

    Example:

    Let A={1,2,3}A = \{1, 2, 3\}A={1,2,3} and R={(1,2),(2,3),(1,3)}R = \{(1, 2), (2, 3), (1, 3)\}R={(1,2),(2,3),(1,3)}.

    • RRR is transitive because if (1,2)(1, 2)(1,2) and (2,3)(2, 3)(2,3) are in RRR, then (1,3)(1, 3)(1,3) is also in RRR.

    3. Functions

    A function is a special kind of relation that assigns exactly one element of one set to exactly one element of another set. Formally, a function fff from a set AAA to a set BBB, denoted f:A→Bf: A \to Bf:A→B, is a relation where each element of AAA is related to exactly one element of BBB.

    Types of Functions:

    • Injective (One-to-One): A function is injective if different elements of the domain map to different elements of the codomain. That is, if f(a1)=f(a2)f(a_1) = f(a_2)f(a1​)=f(a2​), then a1=a2a_1 = a_2a1​=a2​.
    • Surjective (Onto): A function is surjective if every element of the codomain is mapped to by at least one element of the domain.
    • Bijective: A function is bijective if it is both injective and surjective.

    Example:

    Let A={1,2,3}A = \{1, 2, 3\}A={1,2,3} and B={a,b,c}B = \{a, b, c\}B={a,b,c}, with the function f:A→Bf: A \to Bf:A→B defined as f(1)=a,f(2)=b,f(3)=cf(1) = a, f(2) = b, f(3) = cf(1)=a,f(2)=b,f(3)=c. This is a bijective function because every element in AAA is mapped to a unique element in BBB, and vice versa.


    4. Graphs

    A graph is a collection of vertices (or nodes) and edges that connect pairs of vertices. Graphs are used to model pairwise relations between objects.

    Types of Graphs:

    • Undirected Graph: In an undirected graph, edges do not have a direction. If there is an edge between vertices uuu and vvv, it is represented as {u,v}\{u, v\}{u,v}.
    • Directed Graph (Digraph): In a directed graph, edges have a direction, represented as ordered pairs (u,v)(u, v)(u,v), where uuu is the starting vertex and vvv is the ending vertex.
    • Weighted Graph: In a weighted graph, each edge has a weight or cost associated with it, often representing distance, time, or other quantities.
    • Bipartite Graph: A bipartite graph has two disjoint sets of vertices, where every edge connects a vertex from one set to a vertex from the other set.

    Example:

    Consider the graph with vertices V={A,B,C}V = \{A, B, C\}V={A,B,C} and edges E={(A,B),(B,C)}E = \{(A, B), (B, C)\}E={(A,B),(B,C)}. This is an undirected graph with 3 vertices and 2 edges.


    5. Trees

    A tree is a connected, undirected graph with no cycles. It has several important properties, making it a fundamental structure in computer science, particularly in data structures and algorithms.

    Properties of Trees:

    • A tree with nnn vertices has n−1n - 1n−1 edges.
    • A tree is acyclic and connected, meaning that there is exactly one path between any two vertices.
    • Rooted Tree: A tree with a designated root vertex, where each edge points away from the root.

    Types of Trees:

    • Binary Tree: A tree where each node has at most two children.
    • Binary Search Tree (BST): A binary tree where the left child’s key is less than the parent’s key, and the right child’s key is greater than the parent’s key.

    Example:

    A simple tree with 4 nodes can be represented as:

        A
       / \
      B   C
     /
    D
    

    This tree is rooted at AAA, and has 4 vertices and 3 edges.


    6. Algebraic Structures

    Algebraic structures involve sets and operations defined on those sets. The most commonly studied algebraic structures are groups, rings, and fields.

    Group:

    A group is a set GGG with an operation ⋅\cdot⋅ (like addition or multiplication) that satisfies four properties:

    • Closure: If a,b∈Ga, b \in Ga,b∈G, then a⋅b∈Ga \cdot b \in Ga⋅b∈G.
    • Associativity: (a⋅b)⋅c=a⋅(b⋅c)(a \cdot b) \cdot c = a \cdot (b \cdot c)(a⋅b)⋅c=a⋅(b⋅c).
    • Identity Element: There exists an element e∈Ge \in Ge∈G such that e⋅a=a⋅e=ae \cdot a = a \cdot e = ae⋅a=a⋅e=a.
    • Inverse Element: For each a∈Ga \in Ga∈G, there exists an element b∈Gb \in Gb∈G such that a⋅b=b⋅a=ea \cdot b = b \cdot a = ea⋅b=b⋅a=e.

    Ring:

    A ring is a set RRR equipped with two operations (addition and multiplication) that satisfy properties such as distributivity, associativity, and the existence of an additive identity.

    Field:

    A field is a set FFF with two operations (addition and multiplication) where every nonzero element has a multiplicative inverse. Fields are important in algebra and number theory.


    Conclusion

    Fundamental structures in discrete mathematics — such as sets, relations, functions, graphs, trees, and algebraic structures — provide the essential tools for modeling and solving problems in mathematics, computer science, and related fields. Understanding these structures is crucial for tackling complex problems in areas like algorithm design, data analysis, cryptography, and beyond.

    Previous topic 16
    Optimization and Matching
    Next topic 18
    Functions

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time11 min
      Word count1,941
      Code examples0
      DifficultyIntermediate