Lecture 5 Graph Theory prepped by Lecturer ahmed AL tememe 1.

Slides:



Advertisements
Similar presentations
Lecture 15. Graph Algorithms
Advertisements

Graph Theory Arnold Mesa. Basic Concepts n A graph G = (V,E) is defined by a set of vertices and edges v3 v1 v2Vertex (v1) Edge (e1) A Graph with 3 vertices.
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Review Binary Search Trees Operations on Binary Search Tree
13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Prim’s Algorithm from a matrix A cable TV company is installing a system of cables to connect all the towns in the region. The numbers in the network are.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Chapter 23 Minimum Spanning Trees
Applied Discrete Mathematics Week 12: Trees
Chapter 9 Graph algorithms Lec 21 Dec 1, Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
Prim’s Algorithm and an MST Speed-Up
Minimum Spanning Trees
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
ECE 250 Algorithms and Data Structures Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo,
Minimum Spanning Trees and Clustering By Swee-Ling Tang April 20, /20/20101.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Graph Theory Topics to be covered:
(CSC 102) Lecture 32 Discrete Structures. Trees Previous Lecture  Matrices and Graphs  Matrices and Directed Graphs  Matrices and undirected Graphs.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Euler paths and tours.
DISCRETE COMPUTATIONAL STRUCTURES CS Fall 2005.
Lecture 19 Greedy Algorithms Minimum Spanning Tree Problem.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Fundamental Data Structures and Algorithms (Spring ’05) Recitation Notes: Graphs Slides prepared by Uri Dekel, Based on recitation.
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
Matrices Section 2.6. Section Summary Definition of a Matrix Matrix Arithmetic Transposes and Powers of Arithmetic Zero-One matrices.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Minimum Spanning Tree: Prim’s & Kruskal’s Algorithms Presenter: Michal Karpinski.
Learning Objectives for Section 4.5 Inverse of a Square Matrix
Graphs. Graphs Similar to the graphs you’ve known since the 5 th grade: line graphs, bar graphs, etc., but more general. Those mathematical graphs are.
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Minimum- Spanning Trees
Graphs Basic properties.
Trees Thm 2.1. (Cayley 1889) There are nn-2 different labeled trees
MA/CSSE 473 Day 34 MST details: Kruskal's Algorithm Prim's Algorithm.
Lecture 19 Minimal Spanning Trees CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
Minimum Spanning Trees
Matrix Representation of Graphs
Introduction to Algorithms
Chapter 5 : Trees.
Minimum Spanning Trees
Minimum Spanning Trees
Minimum Spanning Tree Chapter 13.6.
DETERMINANTS A determinant is a number associated to a square matrix. Determinants are possible only for square matrices.
Minimum Spanning Tree 8/7/2018 4:26 AM
Matrix Representation of Graph
Greedy Algorithms / Minimum Spanning Tree Yin Tat Lee
Autumn 2016 Lecture 11 Minimum Spanning Trees (Part II)
Graph Algorithm.
Minimum Spanning Tree.
Lecture 24 CSE 331 Oct 28, 2016.
Lecture 24 CSE 331 Oct 27, 2017.
Minimum Spanning Trees
Graph Operations And Representation
Autumn 2015 Lecture 10 Minimum Spanning Trees
CSCI2100 Data Structures Tutorial
Lecture 25 CSE 331 Oct 27, 2014.
Weighted Graphs & Shortest Paths
Autumn 2016 Lecture 10 Minimum Spanning Trees
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Lecture 25 CSE 331 Oct 28, 2011.
Parallel Graph Algorithms
Agenda Review Lecture Content: Shortest Path Algorithm
INTRODUCTION A graph G=(V,E) consists of a finite non empty set of vertices V , and a finite set of edges E which connect pairs of vertices .
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Lecture 5 Graph Theory prepped by Lecturer ahmed AL tememe 1

Topics Minimum Spanning Trees(MST). History of (MST). Applications Spanning Trees. Algorithms of (MST). Matrixes and Graphs. Adjacency Matrix. Incidence Matrix. Labeled Graphs. 2

Minimum Spanning Trees(MST) Suppose G is a connected weighted graph. That is, each edge of G is assigned a nonnegative number called the weight of the edge. Then any spanning tree T of G is assigned a total weight obtained by adding the weights of the edges in T. A minimal spanning tree of G is a spanning tree whose total weight is as small as possible. It connects all the vertices together with the minimal total weighting for its edges. A single graph can have many different spanning trees. A minimum spanning tree (MST) or minimum weight spanning tree. 3

History of (MST) The first algorithm for finding a minimum spanning tree was developed by Czech scientist Otakar Borůvka in 1926, Boruvka's algorithm takes O(m log n) time.Otakar Borůvka A second algorithm is Prim's algorithm, which was invented by Jarnik in 1930 and rediscovered by Prim in 1957 and Dijkstra in 1959.Prim's algorithm A third algorithm commonly in use is the Kruskal's algorithm, which also takes O(m log n) time.Kruskal's algorithm A fourth algorithm, not as commonly used, is the reverse- delete algorithm, which is the reverse of Kruskal's algorithm. Its runtime is O(m log n (log log n) 3 ).reverse- delete algorithm 4

Applications Spanning Trees Design of networks, including computer networks, telecommunications networks, transportation computer networks, telecommunications networkstransportation Cluster analysis: clustering points in the plane, single-linkage clustering (a method of hierarchical clustering),graph-theoretic clustering, and clustering gene expression data. Cluster analysissingle-linkage clusteringhierarchical clusteringgene expression Image registrationand segmentation — see minimum spanning tree-based segmentation. Image registrationsegmentationminimum spanning tree-based segmentation Curvilinear feature extraction in computer vision.feature extractioncomputer vision Handwriting recognition of mathematical expressions. Handwriting recognition Circuit design: implementing efficient multiple constant multiplications, as used in finite impulse responsefilters. Circuit designfinite impulse response Minimax process control.process control Minimum spanning trees can also be used to describe financial markets. 5

Algorithms of (MST) What meaning Possible multiplicity in (MST)? Our goal is N-1 6

7

8

9

10

Count. Adjacency Matrix 11

Properties Adjacency Matrix We have the following observations about the adjacency matrix X of a graph G. 1. The entries along the principal diagonal of X are all zeros if and only if the graph has no self-loops. However, a self-loop at the (I th) vertex corresponds to xii = If the graph has no self-loops, the degree of a vertex equals the number of ones in the corresponding row or column of X. 3. Permutation of rows and the corresponding columns imply reordering the vertices. 4. A graph G is disconnected having components G1 and G2 if and only if the adjacency matrix X(G) is partitioned as where X(G1) and X(G2) are respectively the adjacency matrices of the components G1 and G2. Obviously, the above partitioning implies that there are no edges between vertices in G1 and vertices in G2. 5. If any square, symmetric and binary matrix Q of order n is given, then there exists a graph G with n vertices and without parallel edges whose adjacency matrix is Q. 12

13

Cont. Incidence Matrix Let G be a graph with n vertices, m edges and without self-loops. = 14

Cont.(2) Incidence Matrix 15

The incidence matrix contains only two types of elements, 0 and 1. This clearly is a binary matrix or a (0, 1)-matrix. We have the following observations about the incidence matrix A. 1. Since every edge is incident on exactly two vertices, each column of A has exactly two one’s. 2. The number of one’s in each row equals the degree of the corresponding vertex. 3. A row with all zeros represents an isolated vertex. 4. Parallel edges in a graph produce identical columns in its incidence matrix. 5. Permutation of any two rows or columns in an incidence matrix simply corresponds to relabeling the vertices and edges of the same graph. Properties of Incidence Matrix 16

17

18

19 Thank you for Listening