The Characteristic Polynomial of Multi-Rooted

Total Page:16

File Type:pdf, Size:1020Kb

The Characteristic Polynomial of Multi-Rooted THE CHARACTERISTIC POLYNOMIAL OF MULTI-ROOTED, DIRECTED TREES LAUREN EATON Mathematics 8 May 2008 Independent Research Project: Candidate for Departmental Honors Graduation: 17 May 2008 THE CHARACTERISTIC POLYNOMIAL OF MULTI-ROOED, DIRECTED TREES LAUREN EATON Abstract. We define the characteristic polynomial for single-rooted trees and begin with a theorem about this polynomial, derived from the known contrac- tion/deletion formula. We expand our scope to include multi-rooted, directed trees. Introducing the concept of a star, we prove two theorems which allow us to evaluate the polynomials of these trees in terms of the stars that comprise them. Finally, we derive and prove a general formula for the characteristic polynomial of multi-rooted, directed trees. Introduction Introduced by Gary Gordon and Elizabeth McMahon in [3] the greedoid char- acteristic polynomial is a generalization of the Tutte polynomial, which is a two- variable invariant which helps describe the structure of a single-rooted graph. Given a multi-rooted, directed tree, one must conduct an often tedious recursive calcula- tion in order to obtain the polynomial. In this paper, we work towards defining a general formula for the characteristic polynomial that requires minimal calculation and is entirely in terms of the vertices. This paper is organized as follows: In Section 1, we start with a focus on single- rooted trees and an adaptation of the characteristic polynomial. In Section 2, we look at the more complex multi-rooted, directed trees. We will find that when deriving the characteristic polynomial of these complicated trees, one can consider them in simplified terms. We will explore the concept of a sink and see how the polynomial is affected by its presence. Likewise, we introduce a graphical element called a star; a multi-rooted, directed tree can be thought of as being composed entirely of stars with shared edges. We show the polynomial 1 2 LAUREN EATON of this tree is equivalent to a product whose terms are polynomials of the stars that it is composed of. This leads to our final theorem, a formula for calculating the polynomial of a multi-rooted, directed tree in terms of the contributions of its vertices. 1. Single-Rooted Trees Definitions. In this paper, we expand upon published research conducted by Gary Gordon and Elizabeth McMahon [1], [2], [3] and thus reference their work through- out. We recall various definitions from graph theory, first those pertinent and relating to single-rooted trees and then those related to multi-rooted trees. Let G = (V, E, r) be a rooted graph. A graph G is a finite nonempty set of vertices together with a set of unordered pairs of distinct vertices of G called edges. Specifically, G is a single-rooted tree with edge set E(G), vertex set V (G), and root r, where a root is any distinguished vertex. A tree is defined as a graph in which any two vertices are connected by exactly one path. A path is a finite, alternating sequence of incident vertices and edges in which no vertex is repeated. A tree is a connected graph, because, given any u, v V , there exists a path between u and v ∈ in G. A tree is also an acyclic connected graph. An acyclic graph contains no cycle — a nontrivial closed finite, alternating sequence of vertices and edges in which no edge is repeated. The degree of a vertex v in G, denoted degG(v), is the number of edges incident with v. Define L to be the set of leaves — vertices, excluding roots, with degree equal to 1— L = v V r : deg (v) = 1 , and let ! = L . For { ∈ − G } | | further definitions, see [5]. Let G be a subgraph of G, denoted G G. A graph G is a subgraph of G if i i ⊆ i V (G ) V (G) and E(G ) E(G). Also, the root r is an element of G . i ⊆ i ⊆ i Definition 1. If G and G are subgraphs of G such that E(G ) E(G ) = , 1 2 1 2 ∅ V (G ) V (G ) = r , E(G ) E(G ) = E(G) and V (G ) V (G )!= V (G), then 1 2 { } 1 2 1 2 ! " " THE CHARACTERISTIC POLYNOMIAL OF MULTI-ROOED, DIRECTED TREES 3 G is the direct sum of G and G , and we denote G = G G . 1 2 1 ⊕ 2 We use E and E(G) interchangeably. Similarly, E = E(G ). Suppose S E. i i ⊆ Definition 2. Let rG(S) denotes the rank of S in G: the number of vertices con- nected to the root by some path in S. The rank does not include the root. Similarly, for G G and S = S E , let r (S ) correspond to the rank of S in G . i ⊆ i ∩ i Gi i i i Suppose G = G G ; then, E and E form a partition on E with r (E) = 1 ⊕ 2 1 2 G r (E )+r (E ). Define S = S E and S = S E , so S = S S and S E G1 1 G2 2 1 ∩ 1 2 ∩ 2 1 ∪ 2 1 ⊆ 1 and S E . It follows that r (S) = r (S ) + r (S ). Let S be defined as 2 ⊆ 2 G G1 1 G2 2 | | the number of elements in the set S. For conciseness we define the corank of S to be cor (S) = r (E) r (S) and cor (S ) = r (E ) r (S ). Likewise, we G G − G Gi i Gi i − Gi i define the nullity of S to be nul (S) = S r (S) and nul (S ) = S r (S ). G | | − G Gi i | | − Gi i As defined by Gary Gordon and Elizabeth McMahon, the characteristic polynomial p(G; λ) is expressed, in terms of the corank and nullity, by: Proposition 1 (characteristic polynomial; [1]). p(G; λ) = ( 1)rG(E) ( λ)corG(S)( 1)nulG(S) − − − S E #⊆ In the first theorem, we will demonstrate an alternate way of expressing the char- acteristic polynomial as identified above. Also defined by Gordon and McMahon is the Deletion-Contraction Formula for the characteristic polynomial and the Direct Sum Property, which we will make use of later. Let e be an edge incident to the root. The deletion of e means the erasing it from the graph to obtain new edge set E e and vertex set V r where r is the − − root from which e emanates. The contraction of e means erasing e and merging the two endpoints of e to obtain new edge set E e. Since e emanates from a root, we − merge the endpoints to form a new root. 4 LAUREN EATON Proposition 2 (Deletion-contraction; Prop. 3 [3]). r (E) r (E e) p(G; λ) = λ G − G − p(G e; λ) p(G/e; λ). − − The following is an example of the computation of a polynomial of a single-rooted tree using the deletion-contraction formula. Γ = ◦ • ◦ ? ?? ?? ?? ◦ ◦ e p(Γ; λ) = p • ◦ ?? ? ?? ?? ◦ ◦ ◦ = λ3 p p · − ◦ ?? • ?? ? ? ?? ?? ?? ?? ◦ ◦ = 0 ( 1)2(1 λ)2 − − − We will justify this step later By Direct Sum Property = ( 1)3(1 λ)*+,-2. * +, - − − Also, if G = G G , then: 1 ⊕ 2 Proposition 3 (Direct Sum Property; Prop. 4 [3] ). p(G G ) = p(G ) p(G ). 1 ⊕ 2 1 · 2 THE CHARACTERISTIC POLYNOMIAL OF MULTI-ROOED, DIRECTED TREES 5 We begin with the proof of our first theorem, a restating of the characteristic polynomial in Proposition 1. Theorem 1. The characteristic polynomial of a single-rooted tree G is given by E ! p(G; λ) = ( 1)| |(1 λ) . − − In order to prove Theorem 1, we begin by proving Proposition 3. Lemma 1. For G as defined above with G = G G , i 1 ⊕ 2 p(G; λ) = p(G ; λ) p(G ; λ). 1 · 2 G(S) G(S) corG (Si) nulG (Si) Proof. Let X(S) = ( λ)cor ( 1)nul and X (S ) = ( λ) i ( 1) i − − i i − − for i = 1, 2. In order to show X(S) = X (S ) X (S ), we will show cor (S) = 1 1 · 2 2 G corG1 (S1) + corG2 (S2) and nulG(S) = nulG1 (S1) + nulG2 (S2). First, consider cor (S ) + cor (S ) = r (E ) r (S ) + r (E ) r (S ) G1 1 G2 2 G1 1 − G1 1 G2 2 − G2 2 = r (E ) + r (E ) (r (S ) + r (S )) G1 1 G2 2 − G1 1 G2 2 = r (E) r (S) G − G = corG(S). Now, consider nul (S ) + nul (S ) = S r (S ) + S r (S ) G1 1 G2 2 | 1| − G1 1 | 2| − G2 2 = S + S (r (S ) + r (S )) | 1| | 2| − G1 1 G2 2 = S r (S) | | − G = nulG(S). 6 LAUREN EATON Then, X (S ) X (S ) simplifies as follows: 1 1 · 2 2 corG (S1) corG (S2) nulG (S1) nulG (S2) X (S ) X (S ) = ( λ) 1 ( λ) 2 ( 1) 1 ( 1) 2 1 1 · 2 2 − − − − corG (S1)+corG (S2) nulG (S1)+nulG (S2) = ( λ) 1 2 ( 1) 1 2 − − = ( λ)corG(S)( 1)nulG(S) − − = X(S). Finally, taking into account X (S ) X (S ) = X(S), examine p(G; λ) = X(S) 1 1 · 2 2 S E as follows: #⊆ p(G; λ) = X(S) S E #⊆ = X(S S ) 1 ∪ 2 S S E 1∪#2⊆ = X(S S ) 1 ∪ 2 S E S E 1#⊆ 1 2#⊆ 2 = X (S ) X (S ) 1 1 · 2 2 S E S E 1#⊆ 1 2#⊆ 2 = X (S ) X (S ) 1 1 2 2 S E S E 1#⊆ 1 2#⊆ 2 = p(G ; λ) p(G ;λ).
Recommended publications
  • Descriptive Graph Combinatorics
    Descriptive Graph Combinatorics Alexander S. Kechris and Andrew S. Marks (Preliminary version; November 3, 2018) Introduction In this article we survey the emerging field of descriptive graph combina- torics. This area has developed in the last two decades or so at the interface of descriptive set theory and graph theory, and it has interesting connections with other areas such as ergodic theory and probability theory. Our object of study is the theory of definable graphs, usually Borel or an- alytic graphs on Polish spaces. We investigate how combinatorial concepts, such as colorings and matchings, behave under definability constraints, i.e., when they are required to be definable or perhaps well-behaved in the topo- logical or measure theoretic sense. To illustrate the new phenomena that can arise in the definable context, consider for example colorings of graphs. As usual a Y -coloring of a graph G = (X; G), where X is the set of vertices and G ⊆ X2 the edge relation, is a map c: X ! Y such that xGy =) c(x) 6= c(y). An elementary result in graph theory asserts that any acyclic graph admits a 2-coloring (i.e., a coloring as above with jY j = 2). On the other hand, consider a Borel graph G = (X; G), where X is a Polish space and G is Borel (in X2). A Borel coloring of G is a coloring c: X ! Y as above with Y a Polish space and c a Borel map. In contrast to the above basic fact, there are acyclic Borel graphs G which admit no Borel countable coloring (i.e., with jY j ≤ @0); see Example 3.14.
    [Show full text]
  • Calculating Graph Algorithms for Dominance and Shortest Path*
    Calculating Graph Algorithms for Dominance and Shortest Path⋆ Ilya Sergey1, Jan Midtgaard2, and Dave Clarke1 1 KU Leuven, Belgium {first.last}@cs.kuleuven.be 2 Aarhus University, Denmark [email protected] Abstract. We calculate two iterative, polynomial-time graph algorithms from the literature: a dominance algorithm and an algorithm for the single-source shortest path problem. Both algorithms are calculated di- rectly from the definition of the properties by fixed-point fusion of (1) a least fixed point expressing all finite paths through a directed graph and (2) Galois connections that capture dominance and path length. The approach illustrates that reasoning in the style of fixed-point calculus extends gracefully to the domain of graph algorithms. We thereby bridge common practice from the school of program calculation with common practice from the school of static program analysis, and build a novel view on iterative graph algorithms as instances of abstract interpretation. Keywords: graph algorithms, dominance, shortest path algorithm, fixed-point fusion, fixed-point calculus, Galois connections 1 Introduction Calculating an implementation from a specification is central to two active sub- fields of theoretical computer science, namely the calculational approach to pro- gram development [1,12,13] and the calculational approach to abstract interpre- tation [18, 22, 33, 34]. The advantage of both approaches is clear: the resulting implementations are provably correct by construction. Whereas the former is a general approach to program development, the latter approach is mainly used for developing provably sound static analyses (with notable exceptions [19,25]). Both approaches are anchored in some of the same discrete mathematical structures, namely partial orders, complete lattices, fixed points and Galois connections.
    [Show full text]
  • Rooted Graph Minors and Reducibility of Graph Polynomials Arxiv
    Rooted Graph Minors and Reducibility of Graph Polynomials by Benjamin Richard Moore B.A., Thompson Rivers University, 2015 Dissertation Submitted in Partial Fulfillment of the Requirements for the Degree of Masters of Science in the Department of Mathematics and Statistics Faculty of Science c Benjamin Richard Moore 2017 SIMON FRASER UNIVERSITY Spring 2017 arXiv:1704.04701v1 [math.CO] 15 Apr 2017 All rights reserved. However, in accordance with the Copyright Act of Canada, this work may be reproduced without authorization under the conditions for “Fair Dealing.” Therefore, limited reproduction of this work for the purposes of private study, research, criticism, review and news reporting is likely to be in accordance with the law, particularly if cited appropriately. Approval Name: Benjamin Richard Moore Degree: Masters of Science (Mathematics) Title: Rooted Graph Minors and Reducibility of Graph Poly- nomials Examining Committee: Dr. Ladislav Stacho (chair) Associate Professor Dr. Karen Yeats Senior Supervisor Associate Professor Dr. Luis Goddyn Supervisor Professor Dr. Bojan Mohar Internal Examiner Professor Date Defended: April 6, 2017 ii Abstract In 2009, Brown gave a set of conditions which when satisfied imply that a Feynman integral evaluates to a multiple zeta value. One of these conditions is called reducibility, which loosely says there is an order of integration for the Feynman integral for which Brown’s techniques will succeed. Reducibility can be abstracted away from the Feynman integral to just being a condition on two polynomials, the first and second Symanzik polynomials. The first Symanzik polynomial is defined from the spanning trees of a graph, and the second Symanzik polynomial is defined from both spanning forests of a graph and some edge and vertex weights, called external momenta and masses.
    [Show full text]
  • Large, Lengthy Graphs Look Locally Like Lines
    Large, Lengthy Graphs Look Locally Like Lines Itai Benjamini and Tom Hutchcroft May 9, 2019 Abstract We apply the theory of unimodular random rooted graphs to study the metric geometry of large, finite, bounded degree graphs whose diameter is proportional to their volume. We prove that for a positive proportion of the vertices of such a graph, there exists a mesoscopic scale on which the graph looks like R in the sense that the rescaled ball is close to a line segment in the Gromov-Hausdorff metric. 1 Introduction The aim of this modest note is to prove that large graphs with diameter proportional to their volume must `look like R' from the perspective of a positive proportion of their vertices, after some loc rescaling that may depend on the choice of vertex. We write dGH for the local Gromov-Hausdorff metric, a measure of similarity between locally compact pointed metric spaces that we define in detail in Section 1.1. Theorem 1.1. Let (Gn)n≥1 = ((Vn;En))n≥1 be a sequence of finite, connected graphs with jVnj ! 1, and suppose that there exists a constant C < 1 such that jVnj ≤ C diam(Gn) for every n ≥ 1. Suppose furthermore that the set of degree distributions of the graphs Gn are uniformly integrable. −1 Then there exists a sequence of subsets An ⊆ Vn with lim infn!1 jAnj=jVnj ≥ C such that loc lim sup inf dGH Vn; "dGn ; v ; ; d ; 0 = 0; n!1 ">0 R R v2An arXiv:1905.00316v3 [math.MG] 8 Nov 2020 where we write dGn for the graph metric on Gn and dR(x; y) = jx − yj for the usual metric on R.
    [Show full text]
  • Two Proofs of Cayley's Theorem
    TWO PROOFS OF CAYLEY'S THEOREM TITU ANDREESCU AND COSMIN POHOATA Abstract. We present two proofs of the celebrated Cayley theorem that the number of spanning trees of a complete graph on n vertices is nn−2. In this expository note we present two proofs of Cayley's theorem that are not as popular as they deserve to be. To set up the story we revisit first some terminology. By a graph G we mean a pair (V (G);E(G)), where V (G) is a set of points (or vertices) and E(G) is a subset of V (G) × V (G). Visually, each element from the set E(G) can be represented as a curve connecting the two corresponding points, thus we will call these the edges of graph G. Note that with the above definition, graphs cannot have multiple edges between two given vertices u and v, but they can have loops (i.e. edges in E(G) of the form (w; w) for w 2 V (G)). However, in this paper we won't allow such pairs. Such simple graphs can be directed or undirected depending on whether the pairs in E(G) ⊂ V (G) × V (G) are ordered or not. A path is a graph P with vertex set V (P ) = fv1; : : : ; vng and edge set E(P ) = f(vi; vi+1) : 1 ≤ i ≤ n − 1g. The number n will be refered to as the length of the path. A cycle (of length n) is a graph C of the form C = P [ (vn; v1). Or in other words, a cycle of length n is a graph obtained from a path of length n by adding an edge between its endpoints.
    [Show full text]
  • Locally Interacting Diffusions As Space-Time Markov Random Fields 3
    LOCALLY INTERACTING DIFFUSIONS AS SPACE-TIME MARKOV RANDOM FIELDS DANIEL LACKER, KAVITA RAMANAN, AND RUOYU WU Abstract. We consider a countable system of interacting (possibly non-Markovian) stochastic differential equations driven by independent Brownian motions and indexed by the vertices of a locally finite graph G = (V,E). The drift of the process at each vertex is influenced by the states of that vertex and its neighbors, and the diffusion coefficient depends on the state of only that vertex. Such processes arise in a variety of applications including statistical physics, neuroscience, engineering and math finance. Under general conditions on the coefficients, we show that if the initial conditions form a second-order Markov random field on d-dimensional Euclidean space, then at any positive time, the collection of histories of the processes at dif- ferent vertices forms a second-order Markov random field on path space. We also establish a bijection between (second-order) Gibbs measures on (Rd)V (with finite second moments) and a set of space-time (second-order) Gibbs measures on path space, corresponding respectively to the initial law and the law of the solution to the stochastic differential equation. As a corollary, we establish a Gibbs uniqueness property that shows that for infinite graphs the joint distri- bution of the paths is completely determined by the initial condition and the specifications, namely the family of conditional distributions on finite vertex sets given the configuration on the complement. Along the way, we establish various approximation and projection results for Markov random fields on locally finite graphs that may be of independent interest.
    [Show full text]
  • Balancing Problems in Acyclic Networks*
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector DISCRETE APPLIED MATHEMATICS ELSEVIER Discrete Applied Mathematics 49 (1994) 77-93 Balancing problems in acyclic networks* Endre Borosa* b, **, Peter L. Hammerb, Mark E. Hartmannc, Ron Shamird**** n DIMACS, Rutgers University, New Brunswick, NJ 08903, USA ‘RUTCOR. Rutgers Universify, New Brunswick, NJ 08903, USA ‘Department of Operaiions Research, University qf North Carolina, Chapel Hill, NC 27599, USA d Department ofComputer Science, Sackler Faculty of Exact Sciences, Tel Aviv University, Tel-Aviv 69978, Israel Received 15 August 1991; revised 17 March 1992 Abstract A directed acyclic network with nonnegative integer arc lengths is called balanced if any two paths with common endpoints have equal lengths. In the buffer assignment problem such a network is given, and the goal is to balance it by increasing arc lengths by integer amounts (called buffers), so that the sum of the amounts added is minimal. This problem arises in VLSI design, and was recently shown to be polynomial for rooted networks. Here we give simple procedures which solve several generalizations of this problem in strongly polynomial time, using ideas from network flow theory. In particular, we solve a weighted version of the problem, extend the results to nonrooted networks, and allow upper bounds on buffers. We also give a strongly polynomial algorithm for solving the min-max buffer assignment problem, based on a strong proximity result between fractional and integer balanced solutions. Finally, we show that the problem of balancing a network while minimizing the number of arcs with positive buffers is NP-hard.
    [Show full text]
  • A Characteristic Polynomial for Rooted Graphs and Rooted Digraphs
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Discrete Mathematics 232 (2001) 19–33 www.elsevier.com/locate/disc A characteristic polynomial for rooted graphs and rooted digraphs Gary Gordon ∗, Elizabeth McMahon Mathematics Department, Lafayette College, Easton, PA 18042, USA Received 4 February 1999; revised 27 March 2000; accepted 10 April 2000 Abstract We consider the one-variable characteristic polynomial p(G; ) in two settings. When G is a rooted digraph, we show that this polynomial essentially counts the number of sinks in G. When G is a rooted graph, we give combinatorial interpretations of several coe/cients and the degree of p(G; ). In particular, |p(G;0)| is the number of acyclic orientations of G, while the degree of p(G; ) gives the size of the minimum tree cover (every edge of G is adjacent to some edge of T), and the leadingcoe/cient givesthe number of such covers. Finally, we consider the class of rooted fans in detail; here p(G; ) shows cyclotomic behavior. c 2001 Elsevier Science B.V. All rights reserved. Keywords: Characteristic polynomial; Rooted graph; Rooted digraph; Branching greedoid 1. Introduction Rooted graphs and digraphs are important combinatorial structures that have wide ap- plication, but they have received relatively little attention from the viewpoint of graphic invariants. A fundamental reason for this oversight is that although the Tutte polyno- mial, characteristic polynomial, ÿ-invariant, and other invariants have been well-studied for ordinary graphs and matroids, rooted graphs and digraphs do not have a matroidal rank function.
    [Show full text]
  • Fast Graph Programs Project Report
    Fast Graph Programs Project Report Graham Campbell, Jack Romo, and Detlef Plump Department of Computer Science University of York, United Kingdom Summer 2018 Contents Prologue 3 1 Introduction4 1.1 Background...................................4 1.2 Project Aims..................................5 2 Automata Simulation6 2.1 Motivation....................................6 2.2 FSAs.......................................6 2.3 DPDAs..................................... 10 3 Efficient Topological Sort 13 3.1 Problem Description.............................. 13 3.2 GP2 Implementation.............................. 14 3.3 Complexity Results............................... 16 4 Efficient Red-Black Trees 18 4.1 Problem Description.............................. 18 4.2 Functional RBTs................................ 18 4.3 GP2 Implementation.............................. 19 4.4 Complexity Results............................... 28 1 of 49 5 Program Refinement 29 5.1 Motivation.................................... 29 5.2 Refinement I................................... 31 5.3 Refinement II.................................. 33 5.4 Refinement III.................................. 34 5.5 Refinement of List Sorting........................... 35 6 Conclusion 38 A Project Tooling 39 A.1 Overview..................................... 39 A.2 GP2I....................................... 40 A.3 GP2 Bench................................... 42 A.4 LaTeX...................................... 44 B Proofs 47 B.1 Complexity of RBT Insertion......................... 47 Bibliography
    [Show full text]
  • Factorisation of Greedoid Polynomials of Rooted Digraphs Arxiv
    Factorisation of Greedoid Polynomials of Rooted Digraphs Kai Siong Yow∗1, Kerri Morgany2, and Graham Farrz1 1Faculty of Information Technology, Monash University, Clayton, Victoria 3800, Australia 2Deakin University, Geelong, Australia, School of Information Technology, Faculty of Science Engineering & Built Environment May 6, 2019 Abstract Gordon and McMahon defined a two-variable greedoid polynomial f(G; t; z) for any greedoid G. They studied greedoid polynomials for greedoids associated with rooted graphs and rooted digraphs. They proved that greedoid polyno- mials of rooted digraphs have the multiplicative direct sum property. In ad- dition, these polynomials are divisible by 1 + z under certain conditions. We compute the greedoid polynomials for all rooted digraphs up to order six. A greedoid polynomial f(D) of a rooted digraph D of order n GM-factorises if f(D) = f(G) · f(H) such that G and H are rooted digraphs of order at most n and f(G); f(H) =6 1. We study the GM-factorability of greedoid polynomials of rooted digraphs, particularly those that are not divisible by 1 + z. We give some examples and an infinite family of rooted digraphs that are not direct sums but their greedoid polynomials GM-factorise. Keywords: factorisation, greedoid polynomial, greedoid, directed branching gree- doid, rooted digraph, arborescence 1 Introduction arXiv:1809.02924v2 [math.CO] 3 May 2019 Greedoids were introduced by Korte and Lov´aszas collections of sets that generalise matroids [11]. Korte and Lov´aszobserved that the optimality of some \greedy" algo- rithms including breadth-first search could be traced back to an underlying combina- torial structure that satisfies the greedoid, but not the matroid, framework.
    [Show full text]
  • Chemical Graphs Constructed from Rooted Product and Their Zagreb Indices
    MATCH MATCH Commun. Math. Comput. Chem. 70 (2013) 901-919 Communications in Mathematical and in Computer Chemistry ISSN 0340 - 6253 Chemical Graphs Constructed from Rooted Product and Their Zagreb Indices Mahdieh Azari and Ali Iranmanesh* Department of Pure Mathematics, Faculty of Mathematical Sciences, Tarbiat Modares University, P. O. Box: 14115-137, Tehran, Iran [email protected] (Received March 16, 2013) Abstract. Rooted product of n vertex graph H by a sequence of n rooted graphs G1,G2,...,Gn , is the graph obtained by identifying the root vertex of Gi with the i-th vertex of H for all i 1,2,...,n . In this paper, we show how the first and second Zagreb indices of rooted product of graphs are determined from the respective indices of the individual graphs. The first and second Zagreb indices of cluster of graphs, thorn graphs and bridge graphs as three important special cases of rooted product are also determined. Using these formulae, the first and second Zagreb indices of several important classes of chemical graphs will be computed. 1. Introduction In this paper, we consider connected finite graphs without any loops or multiple edges. Let G be such a graph with the vertex set V(G) and the edge set E(G) . For u +V(G) , we denote by NG (u) the set of all neighbors of u in G. Cardinality of the set NG (u) is called the degree of u in G and will be denoted by deg G (u) . We denote by G (u) , the sum of degrees of all neighbors of the vertex u in G, i.e., G (u) Bdeg G (a) .
    [Show full text]
  • Improving the GP 2 Compiler
    Improving the GP 2 Compiler Graham Campbell1 , Jack Romo , and Detlef Plump Department of Computer Science University of York, United Kingdom September 2019 Revised February 2020 arXiv:2002.02914v2 [cs.PL] 1 Jan 2021 1Supported by a Vacation Internship from the Engineering and Physical Sciences Research Council (EPSRC) in the UK. Abstract GP 2 is an experimental programming language based on graph transforma- tion rules which aims to facilitate program analysis and verification. Writing efficient programs in such a language is hard because graph matching is ex- pensive, however GP 2 addresses this problem by providing rooted rules which, under mild conditions, can be matched in constant time using the GP 2 to C compiler. In this report, we document various improvements made to the compiler; most notably the introduction of node lists to improve iteration performance for destructive programs, meaning that binary DAG recognition by reduction need only take linear time where the previous implementation required quadratic time. Contents List of Figures vii Executive Summary ix Preface xi 1 Introduction 1 1.1 GraphTransformation . .. .. .. .. .. .. .. 1 1.2 TheGP2Language ........................ 2 1.3 RootedGP2Programs....................... 3 1.4 Bak’sGP2Compiler........................ 4 1.5 GP2CompilerChanges ...................... 6 2 Improved Implementation 9 2.1 GraphParsing ........................... 9 2.2 FromArraystoLinkedLists. 10 2.3 SeparateEdgeLists ........................ 12 2.4 FastShutdownMode........................ 12 2.5 RootReflectingMode ....................... 12 2.6 Link-TimeOptimisation . 13 2.7 IntegrationTests .......................... 13 3 Timing Results 15 3.1 ReductionPerformance . 15 v vi CONTENTS 3.2 Generation Performance . 18 3.3 OtherProgramPerformance. 21 3.4 ResultsSummary.......................... 22 4 Conclusion 25 4.1 Evaluation.............................. 26 4.2 FutureWork ...........................
    [Show full text]