Professional Documents
Culture Documents
Othaer
Othaer
example
Just like the mathematical operations on sets like Union, Difference, Intersection, Complement, etc.
we have operations on Venn diagrams that are given as follows:
Union of Sets
Let A = {2, 4, 6, 8} and B = {6, 8, 10, 12}. Represent A U B through a well-labeled Venn diagram.
The orange colored patch represents the common elements {6, 8} and the quadrilateral represents A
U B.
Properties of A U B
• Idempotent Law – A U A = A
An intersection is nothing but the collection of all the elements that are common to all the sets
under consideration. Let A = {2, 4, 6, 8} and B = {6, 8, 10, 12} then A ∩ B is represented through a
Venn diagram as per following:
The orange colored patch represents the common elements {6, 8} as well as the A ∩ B. The
intersection of 2 or more sets is the overlapped part(s) of the individual circles with the elements
written in the overlapped parts. Example:
Properties of A ∩ B
• Commutative law – A ∩ B = B∩ A
• φ∩A=φ
• U∩A=A
• A∩ A = A; Idempotent law.
Difference of Sets
The difference of set A and B is represented as: A – B = {x: x ϵ A and x ϵ B} {converse holds true
for B – A}. Let, A = {1, 2, 3, 4, 5, 6} and B = {2, 4, 6, 8} then A – B = {1, 3, 5} and B – A = {8}.
The sets (A – B), (B – A) and (A ∩ B) are mutually disjoint sets.
It means that there is NO element common to any of the three sets and the intersection of any of the
two or all the three sets will result in a null or void or empty set. A – B and B – A are represented
through Venn diagrams as follows:
Complement of Sets
If U represents the Universal set and any set A is the subset of A then the complement of set A
(represented as A’) will contain ALL the elements which belong to the Universal set U but NOT to
set A.
Mathematically – A’ = U – A
Alternatively, the complement of a set A, A’ is the difference between the universal set U and the
set A. Example: Let universal set U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and set A = {1, 3, 5, 7, 9}, then
complement of A is given as: A’ = U – A = {2, 4, 6, 8, 10}
• A U A’ = U
• A ∩ A’ = φ
• φ’ = U
• U’ = φ
1. Commutative Laws
For any two finite sets A and B
• AUB=BUA
• A∩B=B∩A
2. Associative Laws
For any three finite sets A, B, and C
• (A U B) U C = A U (B U C)
• (A ∩ B) ∩ C = A ∩ (B ∩ C)
So, union and intersection are associative.
3. Idempotent Laws
For any finite set A
• AUA=A
• A∩A=A
• A ∩ A’ = ∅
• ∅’ = U
• ∅ = U’
4. Distributive Laws
For any three finite sets A, B, and C
• A U (B ∩ C) = (A U B) ∩ (A U C)
• A ∩ (B U C) = (A ∩ B) U (A ∩ C)
Thus, union and intersection are distributive over intersection and union
respectively.
5. De morgan’s Laws
For any two finite sets A and B
•A – (B U C) = (A – B) ∩ (A – C)
• A – (B ∩ C) = (A – B) U (A – C)
De Morgan’s Laws can also be written as
• A – B = A ∩ B’
• B – A = B ∩ A’
• A–B=A⇔A∩B=∅
• (A – B) U B = A U B
• (A – B) ∩ B = ∅
• A ⊆ B ⇔ B’ ⊆ A’
• (A – B) U (B – A) = (A U B) – (A ∩ B)
8. For any three finite sets A, B, and C;
• A – (B ∩ C) = (A – B) U (A – C)
• A – (B U C) = (A – B) ∩ (A – C)
• A ∩ (B – C) = (A ∩ B) – (A ∩ C)
• A ∩ (B △ C) = (A ∩ B) △ (A ∩ C)
5] explain logical operation with truth table
Unary Operations Truth Table
Unary operation comprises a single input, which is either True or False. There are four
unary operations for these inputs, which we are going to perform here. They are:
Logical True
The output is always true, despite any input value in logical true operation. Suppose P
signifies the input values and Q signifies the output, then we can write the table as:
P Q→T
T T
F T
Where T=True and F=False
Logical False
In comparison to the logical true, the output values for logical false are always false. It is
also known as unary falsum. The table for this operation is given below.
P Q→F
T F
F F
Where T=True and F=False
Logical Identity
The output value remains the same or equal to the input value in this operation. Let us
find out with the help of the table.
P Q→P
T T
F F
Logical Identity
We get the opposite value of the input value, as an output when we perform the logical
negotiation operation on a single logical value or propositional value. Let us see the
truth-table for this:
P Q→~P
T F
F T
• AND
• OR
• NAND
• NOR
• XOR
• Biconditional
• Conditional, also known as "if-then"
Now, for each binary operation, we will build the consolidated truth table using the input
values X and Y.
In contrast to the OR operation, the NOR operation produces output values. It implies
that a statement that is true for OR is false for NOR and is denoted by (~∨).
Operational True Tables NAND and AND
According to the above and operational true table, the output is true only if both input
values are true; otherwise, the output is false. In the AND operational table, the AND
operator is represented by the symbol (∧).
Conditional Operator
The conditional operator, also known as the 'if-then' operator, returns True for all input
values except when True implies False. It is denoted by the symbol ". This operation
has the same logical meaning as the P Q operation. Let us demonstrate;
P Q ~P
T T F
T F F
F T T
F F T
You can compare the values of P⇒Q and ~P ∨ Q. Both are equivalent.
Logical equality is another name for bi-conditional. If both the values of P and Q are
either True or False, the result is True; otherwise, the result is False.
16] Expain abelian group homomorphism and
automorphism
Types of Graphs:
1. Finite Graphs
A graph is said to be finite if it has a finite number of vertices and a finite
number of edges. A finite graph is a graph with a finite number of vertices and
edges. In other words, both the number of vertices and the number of edges in
a finite graph are limited and can be counted. Finite graphs are often used to
model real-world situations, where there is a limited number of objects and
relationships between the
2. Infinite Graph:
A graph is said to be infinite if it has an infinite number of vertices as well as an
infinite number of edges.
3. Trivial Graph:
A graph is said to be trivial if a finite graph contains only one vertex and no
edge. A trivial graph is a graph with only one vertex and no edges. It is also
known as a singleton graph or a single vertex graph. A trivial graph is the
simplest type of graph and is often used as a starting point for building more
complex graphs. In graph theory, trivial graphs are considered to be a
degenerate case and are not typically studied in detail
4. Simple Graph:
A simple graph is a graph that does not contain more than one edge between
the pair of vertices. A simple railway track connecting different cities is an
example of a simple graph.
5. Multi Graph:
Any graph which contains some parallel edges but doesn’t contain any self-loop
is called a multigraph. For example a Road Map.
• Parallel Edges: If two vertices are connected with more than one
edge then such edges are called parallel edges that are many routes
but one destination.
• Loop: An edge of a graph that starts from a vertex and ends at the
same vertex is called a loop or a self-loop.
6. Null Graph:
A graph of order n and size zero is a graph where there are only isolated
vertices with no edges connecting any pair of vertices.A null graph is a graph
with no edges. In other words, it is a graph with only vertices and no
connections between them. A null graph can also be referred to as an edgeless
graph, an isolated graph, or a discrete graph
7. Complete Graph:
A simple graph with n vertices is called a complete graph if the degree of each
vertex is n-1, that is, one vertex is attached with n-1 edges or the rest of the
vertices in the graph. A complete graph is also called Full Graph.
8. Pseudo Graph:
A graph G with a self-loop and some multiple edges is called a pseudo graph. A
pseudograph is a type of graph that allows for the existence of loops (edges
that connect a vertex to itself) and multiple edges (more than one edge
connecting two vertices). In contrast, a simple graph is a graph that does not
allow for loops or multiple edges.
9. Regular Graph:
A simple graph is said to be regular if all vertices of graph G are of equal
degree. All complete graphs are regular but vice versa is not possible. A regular
graph is a type of undirected graph where every vertex has the same number of
edges or neighbors. In other words, if a graph is regular, then every vertex has
the same degree.
10. Bipartite Graph:
A graph G = (V, E) is said to be a bipartite graph if its vertex set V(G) can be
partitioned into two non-empty disjoint subsets. V1(G) and V2(G) in such a way
that each edge e of E(G) has one end in V1(G) and another end in V2(G). The
partition V1 U V2 = V is called Bipartite of G. Here in the figure: V1(G)={V5, V4,
V3} and V2(G)={V1, V2}