ACSL Round 3 March 2014.

Slides:



Advertisements
Similar presentations
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.
Advertisements

8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Review Binary Search Trees Operations on Binary Search Tree
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
Lecture 17 Path Algebra Matrix multiplication of adjacency matrices of directed graphs give important information about the graphs. Manipulating these.
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.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
Article for analog vector algebra computation Allen P. Mils Jr, Bernard Yurke, Philip M Platzman.
CS 206 Introduction to Computer Science II 11 / 11 / Veterans Day Instructor: Michael Eckmann.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
CS 206 Introduction to Computer Science II 11 / 03 / 2008 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 03 / 25 / 2009 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 11 / 09 / 2009 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 03 / 30 / 2009 Instructor: Michael Eckmann.
Dilations.
Lecture 11 CSE 331 Sep 25, Homeworks Please hand in your HW 2 now HW 3 and graded HW 1 at the end of class.
Graph Operations And Representation. Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
Graphs, relations and matrices
Graphs CS /02/05 Graphs Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
Computer Science 112 Fundamentals of Programming II Introduction to Graphs.
GRAPH THEORY.  A graph is a collection of vertices and edges.  An edge is a connection between two vertices (or nodes).  One can draw a graph by marking.
Liang Ge.  Introduction  Important Concepts in MCL Algorithm  MCL Algorithm  The Features of MCL Algorithm  Summary.
Lecture 14 Relations CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Combinatorial Algorithms Reference Text: Kreher and Stinson.
 What is a graph? What is a graph?  Directed vs. undirected graphs Directed vs. undirected graphs  Trees vs graphs Trees vs graphs  Terminology: Degree.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Graphs.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
FROM CONCRETE TO ABSTRACT ACTIVITIES FOR LINEAR ALGEBRA Basic Skills Analysis Hypothesis Proof Helena Mirtova Prince George’s Community College
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.
4. Relations and Digraphs Binary Relation Geometric and Algebraic Representation Method Properties Equivalence Relations Operations.
Graphs A graphs is an abstract representation of a set of objects, called vertices or nodes, where some pairs of the objects are connected by links, called.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
Vertex Edge Graphs. What is a vertex-edge graph?  A collection of points, some of which are joined by line segments or curves  Examples:
Matrix Multiplication The Introduction. Look at the matrix sizes.
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.
MATRICES. DEFINITION A rectangular array of numeric or algebraic quantities subject to mathematical operations. Something resembling such an array, as.
Do Now: Perform the indicated operation. 1.). Algebra II Elements 11.1: Matrix Operations HW: HW: p.590 (16-36 even, 37, 44, 46)
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
Subject Four Graphs Data Structures. What is a graph? A data structure that consists of a set of nodes (vertices) and a set of edges that relate the nodes.
13.4 Product of Two Matrices
1.5 Matricies.
Matrix Representation of Graphs
Introduction to Graphs
15. Directed graphs and networks
Introduction to Matrices
CS 367 – Introduction to Data Structures
Introduction To Matrices
Introduction to Graphs
Matrix Representation of Graph
Matrices.
Graph Operations And Representation
Walks, Paths, and Circuits
Graph Theory By Amy C. and John M..
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
Representing Graphs Wade Trappe.
Area Models A strategy for Multiplication
Discrete Math 2 Shortest Path Using Matrix
Graphs G = (V, E) V are the vertices; E are the edges.
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Graph Vocabulary.
Graphs: Definitions How would you represent the following?
Agenda Review Lecture Content: Shortest Path Algorithm
Heaps Chapter 6 Section 6.9.
For Friday Read chapter 9, sections 2-3 No homework
Introduction to Graphs
Chapter 7 Section 7.2 Matrices.
Presentation transcript:

ACSL Round 3 March 2014

A graph is a collection of vertices and edges. An edge is a connection between two vertices (or nodes). One can draw a graph by marking points for the vertices and drawing lines connecting them for the edges, but it must be borne in mind that the graph is defined independently of the representation.

Directed graphs are graphs which have a direction associated with each edge. An edge xy in a directed graph can be used in a path that goes from x to y but not necessarily from y to x.

It is frequently convenient to represent a graph by a matrix It is frequently convenient to represent a graph by a matrix. If we consider vertex A as 1, B as 2, etc., then a “one” in M at row i and column j indicates that there is a path from vertex i to j. If we raise M to the pth power, the resulting matrix indicates which paths of length p exist in the graph. In fact, the quantity Mp(i,j) is the number of paths.

In the following directed graph, find the total number of different paths from vertex A to vertex C of length 2 or 4. By inspection, the only path of length 2 is AAC. The paths of length 4 are: AAAAC, AACAC and ACAAC.   Alternatively, let matrix M represent the graph. Recall that the number of paths from vertex i to vertex j of length p equals Mp(i,j). The values of M, M2 and M4 are: 101 201 503 011 , 111 , 413 100 101 302 There is 1 path of length 2 (M2(1,3)) and 3 paths of length 4 (M4(1,3)).

Boolean Algebra Identities --- is not + is or * is and

Sample Programs

WDTPD If you have a 2D array: You refer to the elements with subscripts A(i,j) where i is the row and j is the column 2 43 11 12 3 13 7 99

ACSL test tomorrow – 30 minutes