Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Graph Operations - Algorithms and Applications in Java - Lecture Slides, Slides of Computer Science

These are the Lecture Slides of Algorithms and Applications in Java which includes Greedy Method, Divide and Conquer, Dynamic Programming, Backtracking, Branch and Bound, Integer Programming, Neural Networks, Genetic Algorithms, Tabu Search etc.Key important points are: Graph Operations, Representation, Sample Graph Problems, Path Problems, Connectedness Problems, Spanning Tree Problems, Path Finding, Undirected Graph, Pair of Vertices, Connected Components

Typology: Slides

2012/2013

Uploaded on 03/27/2013

agarkar
agarkar 🇮🇳

4.3

(26)

380 documents

1 / 33

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Graph Operations And
Representation
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21

Partial preview of the text

Download Graph Operations - Algorithms and Applications in Java - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Graph Operations And

Representation

Sample Graph Problems

• Path problems.

• Connectedness problems.

• Spanning tree problems.

Another Path Between 1 and 8

Path length is 28.

Example Of No Path

No path between 2 and 9.

Example Of Not Connected

Connected Graph Example

Connected Component

• A maximal subgraph that is connected.

 Cannot add vertices and edges from original

graph and retain connectedness.

• A connected graph has exactly 1

component.

Not A Component

Communication Network Problems

• Is the network connected?

 Can we communicate between every pair of

cities?

• Find the components.

• Want to construct smallest number of

feasible links so that resulting network is

connected.

Cycles And Connectedness

Removal of an edge that is on a cycle does not affect

connectedness.

Tree

• Connected graph that has no cycles.

• n vertex connected graph with n-1 edges.

Spanning Tree

• Subgraph that includes all vertices of the

original graph.

• Subgraph is a tree.

 If original graph has n vertices, the spanning

tree has n vertices and n-1 edges.

A Spanning Tree

Spanning tree cost = 51.

Minimum Cost Spanning Tree

Spanning tree cost = 41.