ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCSI-303Fundamental Structures
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    CSI-303

    Discrete Structures

    Progress0 / 21 done
    Topics21
    1Introduction to Logic and Proofs2Direct Proofs3Proof by Contradiction4Sets5Combinatorics6Sequences7Formal Logic8Propositional and Predicate Calculus9Methods of Proof10Mathematical Induction and Recursion11Loop Invariants12Relations and Functions13Pigeonhole Principle14Trees and Graphs15Elementary Number Theory16Optimization and Matching17Fundamental Structures18Functions19Relations (Recursions)20Cardinality and Countability21Probabilistic Methods
    11 min read
    Topic 17 of 21
    Topic Study Note Illustration
    17

    Fundamental Structures

    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...

    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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    11mremaining
    1.9kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Discrete Structures