SlideShare a Scribd company logo
DATA STRUCTURES AND ALGORITHMS
LAB 8
Bianca Tesila
FILS, April 2014
OBJECTIVES
 Connected Graph
 Hamiltonian Graph
 Eulerian Graph
CONNECTED GRAPH
 An undirected graph G = (V, A) is said to be
connected if, for any vertices u and v of S, there is
a chain from u to v.
CONNECTED GRAPH – CONNECTED
COMPONENTS
 A connected component (or just component) of
an undirected graph is a subgraph in which any
two vertices are connected to each other by paths,
and which is connected to no additional vertices
in the supergraph.
CONNECTED GRAPH
 Classic problems:
 Check whether a graph is connected or not
 Find all the connected components of a graph
!! DFS is used to determine if a graph is connected
or not.
CONNECTED GRAPH
!! Exercise:
Check whether a graph is connected or not.
HAMILTONIAN GRAPH
 Hamiltonian Path (or traceable path): a path in an
undirected or directed graph that visits
each vertex exactly once.
 Hamiltonian Cycle (or Hamiltonian circuit): a
Hamiltonian path that is a cycle. That
 is, it begins and ends on the same vertex.
 Hamiltonian Graph: a graph that contains a
Hamiltonian cycle
!! Any Hamiltonian cycle can be converted to a
Hamiltonian path by removing one of its edges.
HAMILTONIAN GRAPH
https://sites.google.com/site/poggiolidiscretemath/graph-
theory/hamiltonian-graphs
HAMILTONIAN GRAPH
!! Exercise:
Check whether a graph is Hamiltonian or not.
Hint:
If G is a non-oriented with n> = 3 vertices, such
that every vertex of G has the degree greater or
equal to N / 2, then G is Hamiltonian graph.
EULERIAN GRAPH
 Eulerian Trail (or Eulerian path): a trail in a
graph which visits every edge exactly once. It
can end on a vertex different from the one on
which it began.
 Eulerian Cycle: an Eulerian trail which starts
and ends on the same vertex.
 Eulerian Graph: a graph that contains an
Eulerian cycle
EULERIAN GRAPH
 A graph G, without isolated vertices, is Eulerian
if and only if it is connected and the degrees of all
vertices are even numbers.
 Classic problem: find the Eulerian cycle in a
graph.
https://sites.google.com/site/poggiolidiscretemath/gr
aph-theory/eulerian-graphs
EULERIAN GRAPH
!! Exercise:
Check whether a graph is Eulerian or not.
Hint:
A connected graph G is an Euler graph if and only
if all vertices of G are of even degree.
EULERIAN VS. HAMILTONIAN GRAPHS
!! An Eulerian circuit traverses every edge in a
graph exactly once, but may repeat vertices, while
a Hamiltonian circuit visits each vertex in a
graph exactly once but may repeat edges.
HOMEWORK
Finish all the lab assignments.
Ad

More Related Content

What's hot (20)

Geometry
GeometryGeometry
Geometry
Syed Zaid Irshad
 
Poster KH & SH
Poster KH & SHPoster KH & SH
Poster KH & SH
Keghvart Hagopian
 
Posiciones de rectas y planos
Posiciones de rectas y planosPosiciones de rectas y planos
Posiciones de rectas y planos
ssuser72b7e1
 
Square Root Function Transformation Notes
Square Root Function Transformation NotesSquare Root Function Transformation Notes
Square Root Function Transformation Notes
cmorgancavo
 
Notes of matrices and determinants
Notes of matrices and determinantsNotes of matrices and determinants
Notes of matrices and determinants
KarunaGupta1982
 
Limits and the motion of objects ii
Limits and the motion of objects iiLimits and the motion of objects ii
Limits and the motion of objects ii
bgustin53
 
Trace of Matrix - Linear Algebra
Trace of Matrix - Linear AlgebraTrace of Matrix - Linear Algebra
Trace of Matrix - Linear Algebra
SiddhantDixit6
 
Graph standard form examples
Graph standard form examplesGraph standard form examples
Graph standard form examples
JessicaBiemiller
 
Integral calculus
Integral calculusIntegral calculus
Integral calculus
Santhanam Krishnan
 
Quarulaterals BY RAMBABU SIRIPURAPU
Quarulaterals BY RAMBABU SIRIPURAPUQuarulaterals BY RAMBABU SIRIPURAPU
Quarulaterals BY RAMBABU SIRIPURAPU
RAMBABU SIRIPURAPU
 
matricesMrtices
matricesMrticesmatricesMrtices
matricesMrtices
Yourskill Tricks
 
Vector Addition
Vector AdditionVector Addition
Vector Addition
rinisma5
 
Planar graph( Algorithm and Application )
Planar graph( Algorithm and Application )Planar graph( Algorithm and Application )
Planar graph( Algorithm and Application )
Abdullah Moin
 
Ds lec 5_chap4
Ds lec 5_chap4Ds lec 5_chap4
Ds lec 5_chap4
Self-Employed
 
Lesson 1: Vectors and Scalars
Lesson 1: Vectors and ScalarsLesson 1: Vectors and Scalars
Lesson 1: Vectors and Scalars
VectorKing
 
ppt of VCLA
ppt of VCLAppt of VCLA
ppt of VCLA
Nirali Akabari
 
Planar graph
Planar graphPlanar graph
Planar graph
Shakil Ahmed
 
Application of derivatives
Application of derivativesApplication of derivatives
Application of derivatives
Hazel Charise Gonzales
 
MATRICES
MATRICESMATRICES
MATRICES
daferro
 
Vectors
VectorsVectors
Vectors
guestfda040
 
Posiciones de rectas y planos
Posiciones de rectas y planosPosiciones de rectas y planos
Posiciones de rectas y planos
ssuser72b7e1
 
Square Root Function Transformation Notes
Square Root Function Transformation NotesSquare Root Function Transformation Notes
Square Root Function Transformation Notes
cmorgancavo
 
Notes of matrices and determinants
Notes of matrices and determinantsNotes of matrices and determinants
Notes of matrices and determinants
KarunaGupta1982
 
Limits and the motion of objects ii
Limits and the motion of objects iiLimits and the motion of objects ii
Limits and the motion of objects ii
bgustin53
 
Trace of Matrix - Linear Algebra
Trace of Matrix - Linear AlgebraTrace of Matrix - Linear Algebra
Trace of Matrix - Linear Algebra
SiddhantDixit6
 
Graph standard form examples
Graph standard form examplesGraph standard form examples
Graph standard form examples
JessicaBiemiller
 
Quarulaterals BY RAMBABU SIRIPURAPU
Quarulaterals BY RAMBABU SIRIPURAPUQuarulaterals BY RAMBABU SIRIPURAPU
Quarulaterals BY RAMBABU SIRIPURAPU
RAMBABU SIRIPURAPU
 
Vector Addition
Vector AdditionVector Addition
Vector Addition
rinisma5
 
Planar graph( Algorithm and Application )
Planar graph( Algorithm and Application )Planar graph( Algorithm and Application )
Planar graph( Algorithm and Application )
Abdullah Moin
 
Lesson 1: Vectors and Scalars
Lesson 1: Vectors and ScalarsLesson 1: Vectors and Scalars
Lesson 1: Vectors and Scalars
VectorKing
 
MATRICES
MATRICESMATRICES
MATRICES
daferro
 

Viewers also liked (13)

Data structures and algorithms lab3
Data structures and algorithms lab3Data structures and algorithms lab3
Data structures and algorithms lab3
Bianca Teşilă
 
Data structures and algorithms lab11
Data structures and algorithms lab11Data structures and algorithms lab11
Data structures and algorithms lab11
Bianca Teşilă
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
Umar Ali
 
Data structures and algorithms lab2
Data structures and algorithms lab2Data structures and algorithms lab2
Data structures and algorithms lab2
Bianca Teşilă
 
Data structures and algorithms lab1
Data structures and algorithms lab1Data structures and algorithms lab1
Data structures and algorithms lab1
Bianca Teşilă
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
Muhammad Ishaq
 
Data structures and algorithms lab5
Data structures and algorithms lab5Data structures and algorithms lab5
Data structures and algorithms lab5
Bianca Teşilă
 
Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1
Tech_MX
 
USMLE and Canadian Exams
USMLE and Canadian ExamsUSMLE and Canadian Exams
USMLE and Canadian Exams
Kuwait Medical Society, UK & Ireland
 
Chapter 1 introduction to computers
Chapter 1   introduction to computersChapter 1   introduction to computers
Chapter 1 introduction to computers
haider ali
 
0. Course Introduction
0. Course Introduction0. Course Introduction
0. Course Introduction
Intro C# Book
 
Ppt 1
Ppt 1Ppt 1
Ppt 1
shanmugamsara
 
DSA-2012-Lect00
DSA-2012-Lect00DSA-2012-Lect00
DSA-2012-Lect00
Haitham El-Ghareeb
 
Data structures and algorithms lab3
Data structures and algorithms lab3Data structures and algorithms lab3
Data structures and algorithms lab3
Bianca Teşilă
 
Data structures and algorithms lab11
Data structures and algorithms lab11Data structures and algorithms lab11
Data structures and algorithms lab11
Bianca Teşilă
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
Umar Ali
 
Data structures and algorithms lab2
Data structures and algorithms lab2Data structures and algorithms lab2
Data structures and algorithms lab2
Bianca Teşilă
 
Data structures and algorithms lab1
Data structures and algorithms lab1Data structures and algorithms lab1
Data structures and algorithms lab1
Bianca Teşilă
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
Muhammad Ishaq
 
Data structures and algorithms lab5
Data structures and algorithms lab5Data structures and algorithms lab5
Data structures and algorithms lab5
Bianca Teşilă
 
Graph theory 1
Graph theory 1Graph theory 1
Graph theory 1
Tech_MX
 
Chapter 1 introduction to computers
Chapter 1   introduction to computersChapter 1   introduction to computers
Chapter 1 introduction to computers
haider ali
 
0. Course Introduction
0. Course Introduction0. Course Introduction
0. Course Introduction
Intro C# Book
 
Ad

Similar to Data structures and algorithms lab8 (20)

Graph- chapter 3 of Data structure of engeering Arib Khan.pptx
Graph- chapter 3 of Data structure of engeering Arib Khan.pptxGraph- chapter 3 of Data structure of engeering Arib Khan.pptx
Graph- chapter 3 of Data structure of engeering Arib Khan.pptx
AribKhan13
 
Graph ds
Graph dsGraph ds
Graph ds
university of Gujrat, pakistan
 
burton_discrete_graph theory
burton_discrete_graph theoryburton_discrete_graph theory
burton_discrete_graph theory
guest63f42b
 
Chapter 4_introduction on Graph theory.pptx
Chapter 4_introduction on  Graph theory.pptxChapter 4_introduction on  Graph theory.pptx
Chapter 4_introduction on Graph theory.pptx
josephinetagupa1
 
08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx
RajnikantPandey11
 
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdfISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
murniatimurni9
 
Mithfh lecturenotes 9
Mithfh lecturenotes 9Mithfh lecturenotes 9
Mithfh lecturenotes 9
Praveen Kumar
 
Umap traversabilityin graph
Umap traversabilityin graphUmap traversabilityin graph
Umap traversabilityin graph
Kaya Ota
 
FCS (graphs).pptx
FCS (graphs).pptxFCS (graphs).pptx
FCS (graphs).pptx
ShubhamBatwani
 
Graph theory
Graph theory Graph theory
Graph theory
Muthulakshmilakshmi2
 
Unit V - ppt.pptx
Unit V - ppt.pptxUnit V - ppt.pptx
Unit V - ppt.pptx
Kongunadu College of Engineering and Technology
 
distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
ansariparveen06
 
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............
eustaquiojm1
 
An introduction to the graph theory in discrete mathematics
An introduction to the graph theory in discrete mathematicsAn introduction to the graph theory in discrete mathematics
An introduction to the graph theory in discrete mathematics
hassanbokhari14
 
FLEURY’S algorithm graph theory presentation.pptx
FLEURY’S algorithm graph theory presentation.pptxFLEURY’S algorithm graph theory presentation.pptx
FLEURY’S algorithm graph theory presentation.pptx
mehnazakhtar980
 
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
Robert Almazan
 
Graphs: Cycles
Graphs: CyclesGraphs: Cycles
Graphs: Cycles
Fulvio Corno
 
UNIT III.pptx
UNIT III.pptxUNIT III.pptx
UNIT III.pptx
SwarndeviKm
 
A glimpse to topological graph theory
A glimpse to topological graph theoryA glimpse to topological graph theory
A glimpse to topological graph theory
ANJU123MOHANAN
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
nagathangaraj
 
Graph- chapter 3 of Data structure of engeering Arib Khan.pptx
Graph- chapter 3 of Data structure of engeering Arib Khan.pptxGraph- chapter 3 of Data structure of engeering Arib Khan.pptx
Graph- chapter 3 of Data structure of engeering Arib Khan.pptx
AribKhan13
 
burton_discrete_graph theory
burton_discrete_graph theoryburton_discrete_graph theory
burton_discrete_graph theory
guest63f42b
 
Chapter 4_introduction on Graph theory.pptx
Chapter 4_introduction on  Graph theory.pptxChapter 4_introduction on  Graph theory.pptx
Chapter 4_introduction on Graph theory.pptx
josephinetagupa1
 
08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx08_Euler and hamiltonian.pptx
08_Euler and hamiltonian.pptx
RajnikantPandey11
 
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdfISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
ISOMORFISME, CONNECTIVITY EULER HAMILTON.pdf
murniatimurni9
 
Mithfh lecturenotes 9
Mithfh lecturenotes 9Mithfh lecturenotes 9
Mithfh lecturenotes 9
Praveen Kumar
 
Umap traversabilityin graph
Umap traversabilityin graphUmap traversabilityin graph
Umap traversabilityin graph
Kaya Ota
 
distructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdfdistructweek15graphstheoryupdated-160227143444.pdf
distructweek15graphstheoryupdated-160227143444.pdf
ansariparveen06
 
Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............Final-term Coverage.pptx. ..............
Final-term Coverage.pptx. ..............
eustaquiojm1
 
An introduction to the graph theory in discrete mathematics
An introduction to the graph theory in discrete mathematicsAn introduction to the graph theory in discrete mathematics
An introduction to the graph theory in discrete mathematics
hassanbokhari14
 
FLEURY’S algorithm graph theory presentation.pptx
FLEURY’S algorithm graph theory presentation.pptxFLEURY’S algorithm graph theory presentation.pptx
FLEURY’S algorithm graph theory presentation.pptx
mehnazakhtar980
 
Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)Distruct week 15 graphs theory (updated)
Distruct week 15 graphs theory (updated)
Robert Almazan
 
A glimpse to topological graph theory
A glimpse to topological graph theoryA glimpse to topological graph theory
A glimpse to topological graph theory
ANJU123MOHANAN
 
Ad

More from Bianca Teşilă (6)

Akka Streams - An Adobe data-intensive story
Akka Streams - An Adobe data-intensive storyAkka Streams - An Adobe data-intensive story
Akka Streams - An Adobe data-intensive story
Bianca Teşilă
 
Data structures and algorithms lab10
Data structures and algorithms lab10Data structures and algorithms lab10
Data structures and algorithms lab10
Bianca Teşilă
 
Data structures and algorithms lab9
Data structures and algorithms lab9Data structures and algorithms lab9
Data structures and algorithms lab9
Bianca Teşilă
 
Data structures and algorithms lab7
Data structures and algorithms lab7Data structures and algorithms lab7
Data structures and algorithms lab7
Bianca Teşilă
 
Data structures and algorithms lab6
Data structures and algorithms lab6Data structures and algorithms lab6
Data structures and algorithms lab6
Bianca Teşilă
 
Data structures and algorithms lab4
Data structures and algorithms lab4Data structures and algorithms lab4
Data structures and algorithms lab4
Bianca Teşilă
 
Akka Streams - An Adobe data-intensive story
Akka Streams - An Adobe data-intensive storyAkka Streams - An Adobe data-intensive story
Akka Streams - An Adobe data-intensive story
Bianca Teşilă
 
Data structures and algorithms lab10
Data structures and algorithms lab10Data structures and algorithms lab10
Data structures and algorithms lab10
Bianca Teşilă
 
Data structures and algorithms lab9
Data structures and algorithms lab9Data structures and algorithms lab9
Data structures and algorithms lab9
Bianca Teşilă
 
Data structures and algorithms lab7
Data structures and algorithms lab7Data structures and algorithms lab7
Data structures and algorithms lab7
Bianca Teşilă
 
Data structures and algorithms lab6
Data structures and algorithms lab6Data structures and algorithms lab6
Data structures and algorithms lab6
Bianca Teşilă
 
Data structures and algorithms lab4
Data structures and algorithms lab4Data structures and algorithms lab4
Data structures and algorithms lab4
Bianca Teşilă
 

Recently uploaded (20)

Vaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without HallucinationsVaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without Hallucinations
john409870
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Vaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without HallucinationsVaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without Hallucinations
john409870
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 

Data structures and algorithms lab8

  • 1. DATA STRUCTURES AND ALGORITHMS LAB 8 Bianca Tesila FILS, April 2014
  • 2. OBJECTIVES  Connected Graph  Hamiltonian Graph  Eulerian Graph
  • 3. CONNECTED GRAPH  An undirected graph G = (V, A) is said to be connected if, for any vertices u and v of S, there is a chain from u to v.
  • 4. CONNECTED GRAPH – CONNECTED COMPONENTS  A connected component (or just component) of an undirected graph is a subgraph in which any two vertices are connected to each other by paths, and which is connected to no additional vertices in the supergraph.
  • 5. CONNECTED GRAPH  Classic problems:  Check whether a graph is connected or not  Find all the connected components of a graph !! DFS is used to determine if a graph is connected or not.
  • 6. CONNECTED GRAPH !! Exercise: Check whether a graph is connected or not.
  • 7. HAMILTONIAN GRAPH  Hamiltonian Path (or traceable path): a path in an undirected or directed graph that visits each vertex exactly once.  Hamiltonian Cycle (or Hamiltonian circuit): a Hamiltonian path that is a cycle. That  is, it begins and ends on the same vertex.  Hamiltonian Graph: a graph that contains a Hamiltonian cycle !! Any Hamiltonian cycle can be converted to a Hamiltonian path by removing one of its edges.
  • 9. HAMILTONIAN GRAPH !! Exercise: Check whether a graph is Hamiltonian or not. Hint: If G is a non-oriented with n> = 3 vertices, such that every vertex of G has the degree greater or equal to N / 2, then G is Hamiltonian graph.
  • 10. EULERIAN GRAPH  Eulerian Trail (or Eulerian path): a trail in a graph which visits every edge exactly once. It can end on a vertex different from the one on which it began.  Eulerian Cycle: an Eulerian trail which starts and ends on the same vertex.  Eulerian Graph: a graph that contains an Eulerian cycle
  • 11. EULERIAN GRAPH  A graph G, without isolated vertices, is Eulerian if and only if it is connected and the degrees of all vertices are even numbers.  Classic problem: find the Eulerian cycle in a graph. https://sites.google.com/site/poggiolidiscretemath/gr aph-theory/eulerian-graphs
  • 12. EULERIAN GRAPH !! Exercise: Check whether a graph is Eulerian or not. Hint: A connected graph G is an Euler graph if and only if all vertices of G are of even degree.
  • 13. EULERIAN VS. HAMILTONIAN GRAPHS !! An Eulerian circuit traverses every edge in a graph exactly once, but may repeat vertices, while a Hamiltonian circuit visits each vertex in a graph exactly once but may repeat edges.
  • 14. HOMEWORK Finish all the lab assignments.