It's a world-wide webby wonderland.. Graphs are often used to represent real-world information and real-world structures. Graph Theory was even invented.

Slides:



Advertisements
Similar presentations
The Chinese Postman Problem Route Planning Map Colouring
Advertisements

CS1022 Computer Programming & Principles Lecture 7.1 Graphs (1)
Introduction to Graphs
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Euler Circuits and Paths
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Introduction to Graph Theory Lecture 19: Digraphs and Networks.
Structures and Strategies for State Space Search
Introduction to Graphs
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
How is this going to make us 100K Applications of Graph Theory.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Graphs and Euler cycles Let Maths take you Further…
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
The Bridge Obsession Problem By Vamshi Krishna Vedam.
GRAPH Learning Outcomes Students should be able to:
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Chapter 2 Graph Algorithms.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
COSC 2007 Data Structures II Chapter 14 Graphs I.
Graphs, Paths & Circuits
Aim: What is an Euler Path and Circuit?
Unit – V Graph theory. Representation of Graphs Graph G (V, E,  ) V Set of vertices ESet of edges  Function that assigns vertices {v, w} to each edge.
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
© Jalal Kawash 2010 Graphs Peeking into Computer Science.
Graph Theory. A branch of math in which graphs are used to solve a problem. It is unlike a Cartesian graph that we used throughout our younger years of.
Lecture 10: Graph-Path-Circuit
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Lecture 11: 9.4 Connectivity Paths in Undirected & Directed Graphs Graph Isomorphisms Counting Paths between Vertices 9.5 Euler and Hamilton Paths Euler.
Aim: Graph Theory – Paths & Circuits Course: Math Literacy Do Now: Aim: What are Circuits and Paths? Can you draw this figure without retracing any of.
Graph Revisited Fei Chen CSCI2100B Data Structures Tutorial 12 1.
1) Find and label the degree of each vertex in the graph.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
David Stotts Computer Science Department UNC Chapel Hill.
1 Data Structures and Algorithms Graphs. 2 Graphs Basic Definitions Paths and Cycles Connectivity Other Properties Representation Examples of Graph Algorithms:
© Jalal Kawash 2010 Graphs And Algorithms Peeking into Computer Science.
Euler and Hamiltonian Graphs
Graph Theory An Introduction.
Data Structures Graphs - Terminology
Basic Concepts Graphs For more notes and topics visit:
Graph theory. Graph theory Leonard Euler (“Oiler”)
CSE 373, Copyright S. Tanimoto, 2001 Graphs 1 -
Chapter 5 Fundamental Concept
Konigsberg’s Seven Bridges
Can you draw this picture without lifting up your pen/pencil?
Euler Paths and Circuits
Euler Circuits and Paths
CSE 373, Copyright S. Tanimoto, 2002 Graphs 1 -
Chapter 9: Graphs Basic Concepts
Walks, Paths, and Circuits
Konigsberg- in days past.
Representing Graphs Wade Trappe.
Euler Circuits and Paths
Graphs, Paths & Circuits
Graph Theory Relations, graphs
CHAPTER 15 Graph Theory.
Chapter 10 Graphs and Trees
Introduction to Graph Theory
Chapter 9: Graphs Basic Concepts
GRAPHS.
Presentation transcript:

It's a world-wide webby wonderland.

Graphs are often used to represent real-world information and real-world structures. Graph Theory was even invented to solve a real-world problem. – The city of Kӧnigsberg was located on the Pregel river in Prussia. The river divided the city into four separate landmasses, including the island of Kneiphopf. – These four regions were linked by seven bridges. Residents of the city wondered if it were possible to leave home, cross each of the seven bridges exactly once, and return home. – Leonhard Euler (a mathematician) and solved it by converting it into a graph

Some courses have pre-requisites. Are there any courses at UW-L that can't be taken because they are pre-requisites to each other (even indirectly via a third course)? Construct a schedule for building a house. what are the most critical (in terms of time) parts of the construction? Send a signal from your cell phone to your friends cell phone in Taiwan. Download a web page from Russia. Whats the best NFL/MLB team?

Vertex Arc

A vertex is a node in the graph An arc is a an ordered pair of vertices – The arc might connect one vertex to itself. – The arc is one-way (FROM, TO) When drawn, a vertex is usually a circle (dot) and an arc is a line between the circles where the directionality is given by an arrow. A graph G consists of a set of vertices V and a set of arcs E. For example: – Let G = (V, E) – where V = {1,2,3,4,5,6} – and E = {{1,2}, {1,5}, {2,3}, {2,5}, {3, 4}, {4, 5}, {4, 6}}

A model is an abstract description of a system. A graph is a mathematical model. – G = ({a,b,c,d,e}, {(a,c), (a,b), (c,b), (c,e), (d,b), (d,d), (e,d)}) A view is a way to visualize a system or part of a system. A drawing of the model is a view. For one model, there may be many views.

Vertex A is adjacent to vertex B iff (A,B) is in E. A loop is when a vertex is listed first and last in an arc. The in-degree of a vertex V is the count of arcs of the form (_, V). The number of arcs TO the vertex The out-degree of a vertex V is the count of arcs of the form (V, _). The number of arcs FROM the vertex The order of a graph is the number of vertices The size of a graph is the number of arcs G = ({a,b,c,d,e}, {(a,c), (a,b), (c,b), (c,e), (d,b), (d,d), (e,d)})

A path is a sequence of vertices [V 1, V 2, V 3, V 3, …, V n ] such that – For every pair of adjacent vertices V i and V j in the path, there is an arc (V i, V j ) in the graph. The length of a path is the number of arcs in the path. The length can be zero for the case of a single vertex. Vertex V j is connected to vertex V i iff there is at least one path that starts at V i and ends at V j A cycle is a path where – length > 0 – It starts and ends with the same vertex A graph with no cycles is acyclic.

Define G Give the size and order of G. Is [F, E, C, D] a path? – length? – weight? What is the degree of E? Of A? Is H connected to A? Is A connected to H?

A tree is a graph such that – It has one vertex with in-degree 0. This vertex is known as the 'root'. – Each non-root vertex has an in-degree of 1 – There is a path from the root to every other vertex

Some vertices have an out-degree of zero. These vertices are called leaves. There may be many leaves in the tree. A tree is an acyclic graph.