Math PPT Final
Math PPT Final
TEAM MEMBERS:
GUIDED BY:
SHRIMAYA PANIGRAHI 230301120029
PRITAM DAS 230301120006
ABHIJIT KANDA 230301120058 Asst. Prof. Debasish Mishra
DEBASISHA BEHERA 230301120042
ABHITOSH SAMAL 230301120059
CHINMAYA MEHER 230301120057
CONTENT
1.Features of Euler graph
4.Spanning tree
8.Proposition
9.Exclusive or
1. Walk:-
A walk is a finite alternating sequence of vertices and
edges, beginning and ending with same or different vertices
or edges.
2.Path:-
A walk is called path if vertices or edges are not repeated
3.Circuit
A closed path is known as circuit.
FEATURES OF EULER GRAPH
1.Euler path:-
Euler path was first discussed by Leonhard Euler while solving the famous
Seven Bridges of Konigsberg problem in 1736
A path in a graph is said to be an Eulerian path if it traverses each edge in the graph
once and only once and not repeated
2.Euler circuit:-
A circuit in a graph is said to be an Eulerian circuit if it traverses each edge in the
graph once & only once ,which means the edges should not be repeated and it must
be closed.
3.Euler graph:-
It is a Hamiltonian graph
Here are some Hamiltonian theorems about Hamiltonian circuits and paths:
Repeated visits to a
YES NO
given node allowed?
Repeated traversals of a
NO NO
given edge allowed?
Solution:-
Edges Weights
(B,E) 2
(C,D) 3
(A,D) 4
(C,F) 4
(B,C) 5
(E,F) 5
(A,B) 6
(D,E) 6
(A,F) 7
STEPS :-1
STEPS :-2
STEPS :-3
STEPS :-4
STEPS :-5
STEPS :-6
Edge (A,B), (D,E) and (E,F) are
discarded because they will form the
cycle in the graph. So, the minimum
spanning tree form in the step 5 is output,
and the total cost is 18.
Prim’s Minimum Spanning Tree Algorithm:-
Prim's Algorithm is a greedy algorithm that is used to find the minimum spanning tree
from a graph. Prim's algorithm finds the subset of edges that includes every vertex of
the graph such that the sum of the weights of the edges can be minimized.
Now, we have to find all the edges that connect the tree in the above step with the
new vertices. From the edges found, select the minimum edge and add it to the
tree.
SOLUTION:-
Step 1 - First, we have to choose a vertex from the above graph. Let's choose B.
Step 2 - Now, we have to choose and add the shortest edge from vertex B. There are two
edges from vertex B that are B to C with weight 10 and edge B to D with weight 4. Among
the edges, the edge BD has the minimum weight. So, add it to the MST.
Step 3 - Now, again, choose the edge with the minimum weight among all the other edges.
In this case, the edges DE and CD are such edges. Add them to MST and explore the
adjacent of C, i.e., E and A. So, select the edge DE and add it to the MST.
Step 4 - Now, select the edge CD, and add it to the MST.
Step 5 - Now, choose the edge CA. Here, we cannot select the edge CE as it would create a
cycle to the graph. So, choose the edge CA and add it to the MST.
Propositional Logic:-
A declarative sentence which is either true or false but not both is called
propositional logic.
Examples:
a. The sun rises in the north.
b. 12 + 4 = 16
c. Washington, D.C., is the capital of the United States of America.
d. Toronto is the capital of Canada.
Exclusive or () / xor :-
Example:
p : 2+3=5; q : 2-(3-5)=4
Then p q false, since both propositions are true.