Hello!
Welcome to my
presentation…………
..
Presented by:
Md . Sohag
Em@il : sohag.0315@gmail.com
Daffodil international University
Hamilton Paths
& Circuit
Definition :
– A HAMILTON PATH in graph G is a path
which visits every vertex in G exactly once
– A HAMILTON CIRCUIT is a Hamilton Path
that returns to its start.
Finding Hamilton Circuits
– Unlike the Euler circuit problem, finding Hamilton
circuits in hard.
– There is no simple set of necessary and sufficient
conditions, and no simple algorithm.
Properties to look for….
– No vertex of degree 1
– If a node has degree 2, then both edges incident
to it must be in any Hamilton circuit.
– No smaller circuits contained in any Hamilton
circuit(the start/endpoint of any smaller circuit
would have to be visited twice.)
Edmonds Karp
Algorithm
Edmonds Karp Algorithm
– This algorithm is identical to the Ford-Fulkerson Algorithm
– Search order when finding the augmenting path is defined
– The path found must be a shortest path that has available
capacity
– The augmenting path can be obtained by using Breadth First
Search Algorithm
Edmonds Karp Algorithm
Graph
Edmonds Karp Algorithm
Graph
Traveling Sales
Man
Algorithm
Traveling Sales Man
Traveling SalesMan problem:
Visit all cities Exactly once and end where you Started
Kruskal's
Algorithm &
Haffman
Algorithm
Kruskal's algorithm
– Kruskal's algorithm is a minimum-spanning-tree algorithm
– Where the algorithm finds an edge of the least possible
weight that connects any two trees in the forest
– It is a greedy algorithm in graph theory
– as it finds a minimum spanning tree for a connected
weighted graph adding increasing cost arcs at each step.
Haffman algorithm
– The Huffman Encoding algorithm is a greedy
Algorithm
– Data compression algorithm
– It’s works as without loss of Information
– Based on lengths of assigned codes based on
frequencies
– Variable length Codes are known as Prefix Codes
Example :
– We always pick the two smallest number to combine
– The Huffman Algorithm finds an Optimal Solution
Ford-Falcon
Algorithm
Ford–Fulkerson algorithm
– Ford–Fulkerson algorithm (FFA) is an algorithm that
computes the maximum flow in a flow network
– it is specified in several implementations with different
running times
– Find an augmenting path
– Compute the bottleneck capacity
– Augment each edge and the total flow
Ford-Falcon Algorithm
Thank you all…….
Daffodil International Univercity
Sec:-H
Dept.of CSE

Hamilton paths and circuit