Theory of Graph Transformations

Size: px
Start display at page:

Download "Theory of Graph Transformations"

Transcription

1 Theory of Graph Transformations Helge Wiemann University of Bremen studies of computer science Abstract This paper shall give an introduction into the theory of rule-based graph transformation which is itself a wellstudied area in the context of computer science. It begins with a short introduction to the topic of graphs and continues with the description of some quite important notions which are essential for the understanding of the theory of graph transformation. The topic of the algebraic approach as the central method for graph transformations is presented as the main topic in this paper, strengthened by illustrations of the two sub approaches SPO (single-pushout approach) and DPO (double-pushout diagram) which is more frequently used in practice than the SPO. All theoretical aspects are often accompanied by an application example to illustrate them related to practice. At the end of this paper you will find a comparison of the two sub approaches as a final conclusion and a special application example of the DPO. 1. Introduction Die grossartige Schönheit eines Graphen besteht darin, dass er unklare, schwer durchschaubare Rätsel auf ein wunderbares Ding aus Linien und Knotenpunkten reduzieren kann. (D. Olivastro. Das chinesische Dreieck: die kniffligsten mathematischen Rätsel aus Jahren. Droemer Knauer, München, 1995, S.273) When we talk about graphs, we talk about a powerful and well-established tool to represent various data structures as well as states of concurrent and distributed systems. More generally speaking you can describe whole sets of objects including the relations between them [2]. Famous examples and various kinds of graphs are the following ones [2] : flow diagrams Petri nets UML diagrams Figure 1. Petri net Entity-Relationship diagrams finite automata maps (e.g. of roads or countries) In many cases you do not only want to build up graphs as a static structure with a static behavior of its objects. If you need to have a dynamical structure you need a graph which is able to transform. For instance you are firing transitions in Petri Nets or UML state diagrams or you want to transform a graph by deleting nodes or edges in the case of other UML object diagrams. Graphs are quite generic structures and therefore graph transformations combine the concepts of graphs and the application of rules to transform them. Graphs are well-suited and often used structures and because of their quite different applications, you can find graphs in many different application areas as various kinds. They can be directed or undirected, maybe labeled or unlabeled. They can be simple or multiple and they are equipped with binary edges or hyperedges [2]. Sometimes,

2 2.1. category theory Figure 2. crossover as a graph [3] in the case of Petri nets, graphs even provide two different types of nodes, just called either condition or transition. By the way a graph with this attribute is called bipartite graph. Because of their possible attribute to be a directed graph, the graph is a quite famous data structure for transportation and tour planning problems (maps, Königsberger Brückenproblem, e.g. in the area of theoretical computer science and mathematics). With their directed edges from one node to another one, you can also easily represent various control flows, e.g. test results with a switch between TRUE and FALSE. In this paper we only focus on directed, edge-labeled and multiple graphs with binary edges. Furthermore we concentrate on the double-pushout approach as the one of the most frequently used approaches for a graph transformation. This kind of graph is a closed system G = (V,E,s,t,l). The capital letter V describes in this case a finite set of nodes whereas the capital letter E describes a finite set of edges. These two sets of objects build up the graph together. The letters s, t and l qualify three different mappings. s: E V is a mapping which assigns a source s(e) node to every edge in the set of E. The other analog mapping t: E V assigns a target t(e) node to every edge in E so that you have the confirmation that every edge is suspended on two nodes [3]. If there is an edge in the graph with s(e) = t(e) it is also called a loop. Of course you can also have a node with more than one entry or exit edge. The last mapping l: E V is needed to assign a label (l(e)) to every edge in E. The description of these kinds of graphs is absolutely flexible and has the possibility to cover also other types of graphs. 2. graph rewriting Before we will go further to the explicit approaches of graph transformations, we first have to introduce some important notions around the topic graph rewriting for the better understanding. The category theory occupies a central position not only in contemporary mathematics, but also in the area of the theoretical computer science and is therefore also the basis for the algebraic approach of graph transformations. It can roughly be described as an abstract way to deal with different algebraic mathematical structures and the relationships between them. Furthermore it is at the very least a quite powerful language and conceptual framework which allows to see how structures of different kinds are related to one another as well as the universal components of a family of structures of a given kind. In our case and context we will have a look at the category of graphs, with its components nodes and edges. Generally speaking a category C can be described as a class ob(c) of objects, with the following additional auxiliary attributes: There also exists an other class mor(c) of morphisms for every pair of objects (a,b) with a unique source object a and target object b, we write f: a b. Furthermore, for a triple a, b and c of objects, there is also a partial operation from pairs of morphisms (f: a b and g: b c) to a final morphism h: a c, which is also called the composition of morphisms in the category C. Finally, for every single object a, there is a morphism 1x: x x, called the identity morphism of a, often written as id(a). To sum it up, all morphisms in the category C have to satisfy the two axioms associativity and identity [4]. Therefore an interesting feature of the category theory is that it provides a uniform treatment of the notion of structure. Especially the algebraic approach with its methods of pushouts as graph morphisms which will be described later on, based upon this category theory (category of graphs) subgraphs Formally a graph G is a real subgraph of another graph H, if it satisfies the following conditions: all nodes of G also consist in H (V G in V H ), all edges of G also consist in H (E G in E H ), every edge in G has the same source node in H (s(e) G = s(e) H ), analog has every edge in G the same target node in H (t(e) G = t(e) H ) and finally every edge in G must have the same label in the other graph H. With a given graph, you can simply obtain a subgraph by removing some nodes and edges, with the essential condition that the removal of a node is accompanied by the removal of all its adjacent edges. More formally speaking: the given graph, as is generally known, is a system G = (V,E,s,t,l). You want to remove nodes and edges, so that you have in this case additionally a pair of nodes and edges, written as X = (V X,E X ) in (V,E).

3 Now you optain the subgraph H formally in that way: H = G-X = (V-V X,E-E X,s,t,l ) with s (e)=s(e), t (e)=t(e) and l (e)=l(e) for all e E-E X. [2] Here are three published examples of subgraphs G1, G2 and G3 of the given graph G: the dangling condition This condition will be satisfied if an edge e of M - g(l) neither has its source node nor its target node in g(l) - g(k). That means that, if you delete one node, you have to delete all edges that are adjacent to this one node. The addition of these two sub conditions forms the gluing condition [2] identification condition + dangling condition = gluing condition Figure 3. real subgraphs 2.3. graph morphisms A graph morphism in the category of graphs assigns the nodes and edges of a given graph G to the nodes and edges of another graph H while the structure of the original graph G is preserved. Of course in our case with the use of labeled graphs, the node and edge labeling is preserved too. More formally a graph morphism g: G H is a pair of functions, where one of these functions is a node mapping g V : V G V H and the other one is an edge mapping g E : E G E H [3] If G is an image in H, then it is called a match of G in H. The match of G in H according to the graph morphism g is moreover the subgraph g(g) in H, induced by the pair of mappings (g(v), g(e)). If you have an additional third graph F, then you will have a possible sequence of morphisms: f: F G and g: G H then yields to the morphism g o f: F H 2.4. gluing condition Within the algebraic approach and the application of the double-pushout approach which will be described later on, you will only have a valid graph transformation if the match of the left graph L of the rule of transformation in the given graph G satisfies the gluing condition. The gluing condition is divided into the following two sub conditions: the identification condition This condition will be satisfied if two different elements x and y of the left graph L either are mapped injectively (none two different elements of the definition quantity are mapped to the same element of the target quantity) or may only not be mapped injectively if these two elements are not deleted by the transformation rule. More formally speaking: mappings O(x) = O(y) only if x=y or x,y L R 3. algebraic approach There are several approaches of graph rewriting, one of them is the algebraic approach which based on the just mentioned category of theory. Actually the algebraic approach is divided into sub approaches, in this paper we will discuss two of them, namely the single-pushout approach (SPO) and the more frequently used double-pushout approach (DPO). Both approaches have the same intention to perform rule-based transformation of graphs as the method to execute local changes on graphs for the use of them in dynamical environments. Generally speaking the algebraic approach should specify formally and visually the semantics of rule-based systems. The rules have to express which part of graph is to be replaced by another graph. The general production is always described as p: L R [1] If you want to transform a graph, you can have many problems, such as there are some edges left after the deletion of nodes and these edges do not have any source or target node. These transformations are forbidden. To find out which transformations on a graph are allowed, we use the important upper mentioned gluing condition. If the match satisfies the gluing condition, the graph transformation is valid and be can performed without any problems later on. The action of gluing two graphs is a construction in the context of the category of graphs and graph morphisms and is called pushout double-pushout approach (DPO) The double-pushout approach, shortly called DPO, is a sub approach of the algebraic approach and is the frequently used approach for graph transformations. The DPO adopts a specific rule for the graph transformation which describes on the one hand which parts are replaced by which other ones and on the other hand side the DPO replies to the important question which kinds of transformations are allowed. From the perspective of the DPO a graph rewriting rule is a pair of morphisms in the category of graphs with total graph morphisms as arrows, specified by the formal rule r =

4 (L K R). The graphs L and R are respectively called the left-hand side and the right-hand side of the rule. The graph K is often called gluing graph or interface graph. A rewriting step with the application of the DPO-production is defined as a pair (L K R) or (L K R) of two graph morphisms as arrows in the category of graphs with an interface graph K, where K L is injective. Because of that the interface graph K is a real subgraph of L as well as of R [1,4]. A rule application r = (L K R) can be depicted by the following diagrams. They will illustrate the formal step of a graph rewriting and will describe why this approach is called double-pushout approach. The gluing graph K is rightly described in the diagrams as L R. Figure 6. construction of the final graph temporary graph D (Figure 6). More formally: The single graph morphisms O : L R D and O R : R H are given by O (v) = O L (v) for all v V, O (e) = O L (e) for all e E, O R (v) = O (v) if v V, O R (v) = v if v V R - V, O R (e) = O (e) if e E, O R (e) = e if e E R - E [2] Figure 4. finding the match The graph morphism O L in the shown diagram models an occurrence of L in G and is called the match. Practical understanding of this is that L is a subgraph that is matched from G and after a match is found, the left side of the rule (L) is replaced by the right side of the rule (R) in the host graph G where K as L R serves as some kind of interface double-pushout approach: formal application example The following diagrams should illustrate the graph rewriting step of the DPO on a real graph example. Given are two elements: the hostgraph G (Figure 7) and the transformation rule includes the left side (Figure 8) and the right side (Figure 9). Figure 7. hostgraph [3] Figure 5. building the temporary graph If a match is found (Figure 4) there are two steps to achieve the graph rewriting. First you have to build a temporary graph (D) as a subgraph of the host graph G by deleting the matching elements (Figure 5. Note: the dangling condition within the gluing condition ensures that D is graph). Finally you have to build the final transformed graph H by adding the elements of R - L R to the built Figure 8. left side of the rule [3]

5 Figure 9. right side of the rule [3] Figure 12. final transformed graph [3] Step 1: finding a match L in G which maintains the gluing condition (Figure 10) for the graph rewriting step. You can use the graphical rule representation without an interface graph by depicting only the graphs L and R. Thus a rewriting step is only defined by a single pushout diagram with a single graph morphism as arrows as a the formal rule (production) r: L R [1] Figure 10. found match [3] Step 2: building a temporary graph Z (Figure 11) Figure 13. SPO diagram [1] This diagram illustrates the practical understanding of the SPO. You perform the rewriting step with only a single derivation (morphism) as a single-pushout from the host graph L to the target graph R. Figure 11. temporary graph Z [3] Step 3: construction of a final transformed graph N (Figure 12) 3.3. single-pushout approach (SPO) In contrast to the recently mentioned DPO, a graph rewriting rule of the SPO approach is only a single morphism and therefore only a single derivation of the host graph G with context again to the category of graphs. The SPO is often used in cases where the interface graph K as in the DPO is only a set of nodes but without any adjacent edges. Then you do not have to look at the edges 4. comparison between DPO and SPO When you take a closer look on these two sub approaches of the general algebraic approach, you will see that they are quite similar to each other. Because of the fact, that the DPO performs more secure transformations with the condition that the DPO operates structure-preserving, this approach is more frequently used than the SPO. The main and important difference between the two approaches is that the SPO performs the graph derivation without an interface graph K between the host graph G and the target graph H. Therefore the SPO operates against the DPO with no gluing condition, which means without an identification and following dangling condition. This is the reason why the SPO is said to be more powerful than the DPO because it has no restrictions within the graph rewriting step. But big problems can raise if there are edges after the rewriting step left which has no source or

6 target node. This consequence of a rewriting is strictly forbidden because the transformed graph is not a valid one. Therefore the SPO includes the danger that the graph could be destroyed after the transformation with some dangling edges. The DPO operates real structure-preserving with the help of the gluing graph and is therefore used more often because it guarantees the right and allowed transformation on the graph. Figure 16. transformation: killpacman() 5. double-pushout diagram: Pacman as an application example We all know the computer game Pacman from former times. If you remember the game field of Pacman contains different players, like Pacman and a number of ghosts, and also a finite number of positions where all players can move to. Pacman has to eat points and has to watch the ghosts who want to eat him also. With context to this topic you can also represent the game field as well as the movements of the players as a closed graph system (Figure 14) with essential transformations on this graph if a player changes its position on the field (Figure 15) or an action is fired, like for instance if one ghost eats Pacman (Figure 16) and therefore the game is over. 6. References 1. Grzegorz Rozenberg, editor: Handbook of Graph Grammars and Computing by Graph Transformation. Vol.1: Foundations. World Scientific,Singapore, H.-J. Kreowski, R. Klempien-Hinrichs, S. Kuske: Some Essentials of Graph Transformation. University of Bremen, Department of Computer Science. Bremen 3. H.-J. Kreowski: Formale Sprachen: Graphtransformation. Universitt Bremen, Sommersemester Figure 14. game field of Pacman Figure 15. transformation: movepacman()

theory of graph transformations

theory of graph transformations theory of graph transformations University of Bremen 2005-11-25 speaker : Helge Wiemann email : hwiemann@tzi.de theory of graph transformations 1 theory of graph transformations Die großartige Schönheit

More information

Some Essentials of Graph Transformation

Some Essentials of Graph Transformation Some Essentials of Graph Transformation Hans-Jörg Kreowski, Renate Klempien-Hinrichs, and Sabine Kuske University of Bremen, Department of Computer Science P.O.Box 04 40, 84 Bremen, Germany {kreo,rena,kuske}@informatik.uni-bremen.de

More information

A Matching Algorithm and AGG Overview

A Matching Algorithm and AGG Overview A Matching Algorithm and AGG Overview Marc Provost McGill University marc.provost@mail.mcgill.ca March 29, 2004 Abstract This presentation go over the basic features of agg for graph rewriting. Typeset

More information

Graph Grammars. Marc Provost McGill University February 18, 2004

Graph Grammars. Marc Provost McGill University February 18, 2004 Graph Grammars Marc Provost McGill University marc.provost@mail.mcgill.ca February 18, 2004 Abstract This presentation introduces graph transformations. Typeset by FoilTEX Structure of the talk Graph Theory

More information

Towards an integrated graph-based semantics for UML

Towards an integrated graph-based semantics for UML Softw Syst Model DOI 10.1007/s10270-008-0101-4 REGULAR PAPER Towards an integrated graph-based semantics for UML Sabine Kuske Martin Gogolla Hans-Jörg Kreowski Paul Ziemann Received: 3 August 2005 / Revised:

More information

Graph Transformation Units An Overview

Graph Transformation Units An Overview Graph Transformation Units An Overview Hans-Jörg Kreowski 1,SabineKuske 1, and Grzegorz Rozenberg 2 1 University of Bremen, Department of Computer Science P.O. Box 33 04 40, 28334 Bremen, Germany {kreo,kuske}@informatik.uni-bremen.de

More information

Extending the DPO Approach for Topological Validation of Metamodel-Level Graph Rewriting Rules

Extending the DPO Approach for Topological Validation of Metamodel-Level Graph Rewriting Rules xtending the DPO Approach for Topological alidation of Metamodel-Level raph Rewriting Rules TIAMÉR LNDOSZKY, LÁSZLÓ LNYL, ASSAN CARAF Department of Automation and Applied Informatics Budapest University

More information

A Visual Editor for Reconfigurable Object Nets based on the ECLIPSE Graphical Editor Framework

A Visual Editor for Reconfigurable Object Nets based on the ECLIPSE Graphical Editor Framework A Visual Editor for Reconfigurable Object Nets based on the ECLIPSE Graphical Editor Framework Enrico Biermann, Claudia Ermel, Frank Hermann and Tony Modica Technische Universität Berlin, Germany {enrico,lieske,frank,modica}@cs.tu-berlin.de

More information

Formal Semantics of Consistent EMF Model Transformations by Algebraic Graph Transformation

Formal Semantics of Consistent EMF Model Transformations by Algebraic Graph Transformation SoSyM manuscript No. (will be inserted by the editor) Formal Semantics of Consistent EMF Model Transformations by Algebraic Graph Transformation Enrico Biermann 1, Claudia Ermel 1, Gabriele Taentzer 2

More information

Approaches for Quantifying

Approaches for Quantifying Approaches for Quantifying Multicast AW 2 15. 5. 2014 1 duction and Basics 2 3 4 Robustness with 5 duction Motivation High complexity leads to low predictability varies in different algorithms Long-Term

More information

AGG: A Graph Transformation Environment for Modeling and Validation of Software

AGG: A Graph Transformation Environment for Modeling and Validation of Software AGG: A Graph Transformation Environment for Modeling and Validation of Software Gabriele Taentzer Technische Universität Berlin, Germany gabi@cs.tu-berlin.de Abstract. AGG is a general development environment

More information

Parallel Graph Transformation for Model Simulation applied to Timed Transition Petri Nets

Parallel Graph Transformation for Model Simulation applied to Timed Transition Petri Nets Electronic Notes in Theoretical Computer Science 109 (2004) 17 29 www.elsevier.com/locate/entcs Parallel Graph Transformation for Model Simulation applied to Timed Transition Petri Nets J. de Lara a,1,

More information

Parallel Rewriting of Graphs through the. Pullback Approach. Michel Bauderon 1. Laboratoire Bordelais de Recherche en Informatique

Parallel Rewriting of Graphs through the. Pullback Approach. Michel Bauderon 1. Laboratoire Bordelais de Recherche en Informatique URL: http://www.elsevier.nl/locate/entcs/volume.html 8 pages Parallel Rewriting of Graphs through the Pullback Approach Michel Bauderon Laboratoire Bordelais de Recherche en Informatique Universite Bordeaux

More information

A Formal Resolution Strategy for Operation-Based Conflicts in Model Versioning Using Graph Modifications

A Formal Resolution Strategy for Operation-Based Conflicts in Model Versioning Using Graph Modifications A Formal Resolution Strategy for Operation-Based Conflicts in Model Versioning Using Graph Modifications Hartmut Ehrig 1, Claudia Ermel 1 and Gabriele Taentzer 2 1 Technische Universität Berlin, Germany

More information

A Survey of Control Structures for Reconfigurable Petri Nets

A Survey of Control Structures for Reconfigurable Petri Nets Journal of Computer and Communications, 2015, 3, 20-28 Published Online February 2015 in SciRes. http://www.scirp.org/journal/jcc http://dx.doi.org/10.4236/jcc.2015.32002 A Survey of Control Structures

More information

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings On the Relationships between Zero Forcing Numbers and Certain Graph Coverings Fatemeh Alinaghipour Taklimi, Shaun Fallat 1,, Karen Meagher 2 Department of Mathematics and Statistics, University of Regina,

More information

Introduction III. Graphs. Motivations I. Introduction IV

Introduction III. Graphs. Motivations I. Introduction IV Introduction I Graphs Computer Science & Engineering 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu Graph theory was introduced in the 18th century by Leonhard Euler via the Königsberg

More information

Motivation: Model-driven. driven Engineering. Semantics of Model Transformation. Reiko Heckel University of Leicester, UK

Motivation: Model-driven. driven Engineering. Semantics of Model Transformation. Reiko Heckel University of Leicester, UK Semantics of Model Transformation Reiko Heckel University of Leicester, UK, University of Birmingham, 1 March 2007 Motivation: Model-driven driven Engineering Focus and primary artifacts are models instead

More information

Model Transformation by Graph Transformation: A Comparative Study

Model Transformation by Graph Transformation: A Comparative Study Model Transformation by Graph Transformation: A Comparative Study Karsten Ehrig 1, Esther Guerra 2, Juan de Lara 3, Laszlo Lengyel 4, Tihamer Levendovszky 4, Ulrike Prange 1, Gabriele Taentzer 1, Daniel

More information

An Annotated Language

An Annotated Language Hoare Logic An Annotated Language State and Semantics Expressions are interpreted as functions from states to the corresponding domain of interpretation Operators have the obvious interpretation Free of

More information

Forschungsberichte der Fakultät IV Elektrotechnik und Informatik

Forschungsberichte der Fakultät IV Elektrotechnik und Informatik Forschungsberichte der Fakultät IV Elektrotechnik und Informatik A Formal Resolution Strategy for Operation-Based Conicts in Model Versioning Using Graph Modications Hartmut Ehrig 1 Claudia Ermel 1 Gabriele

More information

Towards Formal Verification of UML Diagrams Based on Graph Transformation

Towards Formal Verification of UML Diagrams Based on Graph Transformation Towards Formal Verification of UML Diagrams Based on Graph Transformation Yu Zhao *, Yushun Fan, Xinxin Bai, Yuan Wang, Hong Cai, Wei Ding CIM Research Center, Department of Automation, Tsinghua University,

More information

Composability Test of BOM based models using Petri Nets

Composability Test of BOM based models using Petri Nets I. Mahmood, R. Ayani, V. Vlassov and F. Moradi 7 Composability Test of BOM based models using Petri Nets Imran Mahmood 1, Rassul Ayani 1, Vladimir Vlassov 1, and Farshad Moradi 2 1 Royal Institute of Technology

More information

Generating Diagram Editors Providing Free-Hand Editing as well as Syntax-Directed Editing

Generating Diagram Editors Providing Free-Hand Editing as well as Syntax-Directed Editing Generating Diagram Editors Providing Free-Hand Editing as well as Syntax-Directed Editing Oliver Köth and Mark Minas Lehrstuhl für Programmiersprachen Universität Erlangen-Nürnberg Martensstr. 3, 91058

More information

From UML Sequence Diagrams to ECATNets: a Graph Transformation based Approach for modelling and analysis

From UML Sequence Diagrams to ECATNets: a Graph Transformation based Approach for modelling and analysis From UML Sequence Diagrams to ECATNets: a Graph Transformation based Approach for modelling and analysis Allaoua Chaoui Department of Computer Science, University Mentouri Constantine, Algeria a_chaoui2001@yahoo.com

More information

Number Theory and Graph Theory

Number Theory and Graph Theory 1 Number Theory and Graph Theory Chapter 7 Graph properties By A. Satyanarayana Reddy Department of Mathematics Shiv Nadar University Uttar Pradesh, India E-mail: satya8118@gmail.com 2 Module-2: Eulerian

More information

Math 170- Graph Theory Notes

Math 170- Graph Theory Notes 1 Math 170- Graph Theory Notes Michael Levet December 3, 2018 Notation: Let n be a positive integer. Denote [n] to be the set {1, 2,..., n}. So for example, [3] = {1, 2, 3}. To quote Bud Brown, Graph theory

More information

Chapter 4. Capturing the Requirements. 4th Edition. Shari L. Pfleeger Joanne M. Atlee

Chapter 4. Capturing the Requirements. 4th Edition. Shari L. Pfleeger Joanne M. Atlee Chapter 4 Capturing the Requirements Shari L. Pfleeger Joanne M. Atlee 4th Edition It is important to have standard notations for modeling, documenting, and communicating decisions Modeling helps us to

More information

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402 Graphs (MTAT.05.080, 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402 homepage: http://courses.cs.ut.ee/2012/graafid (contains slides) For grade: Homework + three tests (during or after

More information

Connection and separation in hypergraphs

Connection and separation in hypergraphs Theory and Applications of Graphs Volume 2 Issue 2 Article 5 2015 Connection and separation in hypergraphs Mohammad A. Bahmanian Illinois State University, mbahman@ilstu.edu Mateja Sajna University of

More information

Category Theory in Ontology Research: Concrete Gain from an Abstract Approach

Category Theory in Ontology Research: Concrete Gain from an Abstract Approach Category Theory in Ontology Research: Concrete Gain from an Abstract Approach Markus Krötzsch Pascal Hitzler Marc Ehrig York Sure Institute AIFB, University of Karlsruhe, Germany; {mak,hitzler,ehrig,sure}@aifb.uni-karlsruhe.de

More information

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities? 1 Introduction Graph theory is one of the most in-demand (i.e. profitable) and heavily-studied areas of applied mathematics and theoretical computer science. May graph theory questions are applied in this

More information

Propositional Logic. Part I

Propositional Logic. Part I Part I Propositional Logic 1 Classical Logic and the Material Conditional 1.1 Introduction 1.1.1 The first purpose of this chapter is to review classical propositional logic, including semantic tableaux.

More information

XI International PhD Workshop OWD 2009, October Fuzzy Sets as Metasets

XI International PhD Workshop OWD 2009, October Fuzzy Sets as Metasets XI International PhD Workshop OWD 2009, 17 20 October 2009 Fuzzy Sets as Metasets Bartłomiej Starosta, Polsko-Japońska WyŜsza Szkoła Technik Komputerowych (24.01.2008, prof. Witold Kosiński, Polsko-Japońska

More information

Handout 9: Imperative Programs and State

Handout 9: Imperative Programs and State 06-02552 Princ. of Progr. Languages (and Extended ) The University of Birmingham Spring Semester 2016-17 School of Computer Science c Uday Reddy2016-17 Handout 9: Imperative Programs and State Imperative

More information

Towards a Notion of Transaction in Graph Rewriting 1

Towards a Notion of Transaction in Graph Rewriting 1 GT-VMT Towards a Notion of Transaction in Graph Rewriting P. Baldan a, A. Corradini b, F.L. Dotti c, L. Foss b,d, F. Gadducci b, L. Ribeiro d a Università Ca Foscari di Venezia, Italy b Università di Pisa,

More information

Graph theory: basic concepts

Graph theory: basic concepts Graph theory: basic concepts Graphs and networks allow modelling many different decision problems Graphs permit to represent relationships among different kinds of entities: Cities connected by roads Computers

More information

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grades 7 & 8, Math Circles 31 October/1/2 November, 2017 Graph Theory Introduction Graph Theory is the

More information

DISCRETE-event dynamic systems (DEDS) are dynamic

DISCRETE-event dynamic systems (DEDS) are dynamic IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 7, NO. 2, MARCH 1999 175 The Supervised Control of Discrete-Event Dynamic Systems François Charbonnier, Hassane Alla, and René David Abstract The supervisory

More information

Editor Manual. Gruppe 3 Christoph Höger, Jonas Hurrelmann, Peggy Sylopp, Sebastian Szczepanski

Editor Manual. Gruppe 3 Christoph Höger, Jonas Hurrelmann, Peggy Sylopp, Sebastian Szczepanski Editor Manual Gruppe 3 Christoph Höger, Jonas Hurrelmann, Peggy Sylopp, Sebastian Szczepanski September 5, 2007 Contents 1 Introduction 2 1.1 Motivation..................................... 2 1.2 Formal

More information

AXIOMS OF AN IMPERATIVE LANGUAGE PARTIAL CORRECTNESS WEAK AND STRONG CONDITIONS. THE AXIOM FOR nop

AXIOMS OF AN IMPERATIVE LANGUAGE PARTIAL CORRECTNESS WEAK AND STRONG CONDITIONS. THE AXIOM FOR nop AXIOMS OF AN IMPERATIVE LANGUAGE We will use the same language, with the same abstract syntax that we used for operational semantics. However, we will only be concerned with the commands, since the language

More information

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np Chapter 1: Introduction Introduction Purpose of the Theory of Computation: Develop formal mathematical models of computation that reflect real-world computers. Nowadays, the Theory of Computation can be

More information

Semantics via Syntax. f (4) = if define f (x) =2 x + 55.

Semantics via Syntax. f (4) = if define f (x) =2 x + 55. 1 Semantics via Syntax The specification of a programming language starts with its syntax. As every programmer knows, the syntax of a language comes in the shape of a variant of a BNF (Backus-Naur Form)

More information

A Graph Grammar to Transform a Dataflow Graph into a Multithread Graph and its Application in Task Scheduling

A Graph Grammar to Transform a Dataflow Graph into a Multithread Graph and its Application in Task Scheduling A Graph Grammar to Transform a Dataflow Graph into a Multithread Graph and its Simone André da Costa Cavalheiro 1 Luciana Foss 1 Cícero Augusto de S Camargo 1 Gerson Geraldo H Cavalheiro 1 Abstract: The

More information

15 Graph Theory Counting the Number of Relations. 2. onto (surjective).

15 Graph Theory Counting the Number of Relations. 2. onto (surjective). 2. onto (surjective). You should convince yourself that if these two properties hold, then it is always going to be the case that f 1 is a function. In order to do this, you should remember the definition

More information

Course Modelling of Concurrent Systems Summer Semester 2016 University of Duisburg-Essen

Course Modelling of Concurrent Systems Summer Semester 2016 University of Duisburg-Essen Course Modelling of Concurrent Systems Summer Semester 2016 University of Duisburg-Essen Harsh Beohar LF 265, harsh.beohar@uni-due.de Harsh Beohar Course Modelling of Concurrent Systems 1 Course handler

More information

A macro- generator for ALGOL

A macro- generator for ALGOL A macro- generator for ALGOL byh.leroy Compagnie Bull-General Electric Paris, France INTRODUCfION The concept of macro-facility is ambiguous, when applied to higher level languages. For some authorsl,2,

More information

Static Safety Analysis of UML Action Semantics for Critical Systems Development

Static Safety Analysis of UML Action Semantics for Critical Systems Development Static Safety Analysis of UML Action Semantics for Critical Systems Development Zsigmond Pap, Dániel Varró Dept. of Measurement and Information Systems Budapest University of Technology and Economics H-1521

More information

GENERATIVELY DETERMINISTIC L LANGUAGES. SUBWORD POINT OF VIEW

GENERATIVELY DETERMINISTIC L LANGUAGES. SUBWORD POINT OF VIEW GENERATIVELY DETERMINISTIC L LANGUAGES. SUBWORD POINT OF VIEW A. EHRENFEUCHT Department of Computer Science, University of Colorado, at Boulder, 1) K.P. LEE Department of Computer Science, S.U.N.Y. at

More information

3.4 Deduction and Evaluation: Tools Conditional-Equational Logic

3.4 Deduction and Evaluation: Tools Conditional-Equational Logic 3.4 Deduction and Evaluation: Tools 3.4.1 Conditional-Equational Logic The general definition of a formal specification from above was based on the existence of a precisely defined semantics for the syntax

More information

The Event-B Modelling Notation

The Event-B Modelling Notation The Event-B Modelling Notation J.-R. Abrial October 2007 Version 1.5 The Event-B Modelling Notation Contents 1 Machines and Contexts 1 2 Events 2 3 Variant 3 4 Actions 3 5 Witnesses 4 6 Syntax of the Event-B

More information

RAISE in Perspective

RAISE in Perspective RAISE in Perspective Klaus Havelund NASA s Jet Propulsion Laboratory, Pasadena, USA Klaus.Havelund@jpl.nasa.gov 1 The Contribution of RAISE The RAISE [6] Specification Language, RSL, originated as a development

More information

Supporting feature-based parametric modeling by graph rewriting

Supporting feature-based parametric modeling by graph rewriting Supporting feature-based parametric modeling by graph rewriting S. Vilgertshofer a and A. Borrmann a a Chair of Computational Modeling and Simulation, Technical University of Munich, Germany E-mail: simon.vilgertshofer@tum.de,

More information

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur Lecture : Graphs Rajat Mittal IIT Kanpur Combinatorial graphs provide a natural way to model connections between different objects. They are very useful in depicting communication networks, social networks

More information

Logic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees

Logic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees Axiomatizing Arithmetic Logic: The Big Picture Suppose we restrict the domain to the natural numbers, and allow only the standard symbols of arithmetic (+,, =, >, 0, 1). Typical true formulas include:

More information

Chapter 2 Graphs. 2.1 Definition of Graphs

Chapter 2 Graphs. 2.1 Definition of Graphs Chapter 2 Graphs Abstract Graphs are discrete structures that consist of vertices and edges connecting some of these vertices. Graphs have many applications in Mathematics, Computer Science, Engineering,

More information

Course Modelling of Concurrent Systems Summer Semester 2016 University of Duisburg-Essen

Course Modelling of Concurrent Systems Summer Semester 2016 University of Duisburg-Essen Course Modelling of Concurrent Systems Summer Semester 2016 University of Duisburg-Essen Harsh Beohar LF 265, harsh.beohar@uni-due.de Harsh Beohar Course Modelling of Concurrent Systems 1 Course handler

More information

Abstract. This note presents a new formalization of graph rewritings which generalizes traditional

Abstract. This note presents a new formalization of graph rewritings which generalizes traditional Relational Graph Rewritings Yoshihiro MIZOGUCHI 3 and Yasuo KAWAHARA y Abstract This note presents a new ormalization o graph rewritings which generalizes traditional graph rewritings. Relational notions

More information

Hypergraph Grammars in hp-adaptive Finite Element Method

Hypergraph Grammars in hp-adaptive Finite Element Method Available online at www.sciencedirect.com Procedia Computer Science 18 (2013 ) 1545 1554 2013 International Conference on Computational Science Hypergraph Grammars in hp-adaptive Finite Element Method

More information

COMPUTER SCIENCE/INFORMATION SYSTEMS DEGREE PLAN

COMPUTER SCIENCE/INFORMATION SYSTEMS DEGREE PLAN COMPUTER SCIENCE/INFORMATION SYSTEMS DEGREE PLAN YEAR 1, SEMESTER 1 YEAR 1, SEMESTER 2 Composition I 3 Composition II 3 Calculus I 5 Calculus II 5 Humanistic (Religion) 3 Physics I 5 Total Wellness 2 Statistics

More information

Star coloring bipartite planar graphs

Star coloring bipartite planar graphs Star coloring bipartite planar graphs H. A. Kierstead, André Kündgen and Craig Timmons April 19, 2008 Abstract A star coloring of a graph is a proper vertex-coloring such that no path on four vertices

More information

2386 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 52, NO. 6, JUNE 2006

2386 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 52, NO. 6, JUNE 2006 2386 IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 52, NO. 6, JUNE 2006 The Encoding Complexity of Network Coding Michael Langberg, Member, IEEE, Alexander Sprintson, Member, IEEE, and Jehoshua Bruck,

More information

Ontology Change Management and Identification of Change Patterns

Ontology Change Management and Identification of Change Patterns J Data Semant (2013) 2:119 143 DOI 10.1007/s13740-013-0024-2 ORIGINAL ARTICLE Ontology Change Management and Identification of Change Patterns Muhammad Javed Yalemisew M. Abgaz Claus Pahl Received: 16

More information

Chapter 8 Algorithms 1

Chapter 8 Algorithms 1 Chapter 8 Algorithms 1 Objectives After studying this chapter, the student should be able to: Define an algorithm and relate it to problem solving. Define three construct and describe their use in algorithms.

More information

ON THE GROUP-THEORETIC PROPERTIES OF THE AUTOMORPHISM GROUPS OF VARIOUS GRAPHS

ON THE GROUP-THEORETIC PROPERTIES OF THE AUTOMORPHISM GROUPS OF VARIOUS GRAPHS ON THE GROUP-THEORETIC PROPERTIES OF THE AUTOMORPHISM GROUPS OF VARIOUS GRAPHS CHARLES HOMANS Abstract. In this paper we provide an introduction to the properties of one important connection between the

More information

An Eternal Domination Problem in Grids

An Eternal Domination Problem in Grids Theory and Applications of Graphs Volume Issue 1 Article 2 2017 An Eternal Domination Problem in Grids William Klostermeyer University of North Florida, klostermeyer@hotmail.com Margaret-Ellen Messinger

More information

SOFTWARE ENGINEERING DESIGN I

SOFTWARE ENGINEERING DESIGN I 2 SOFTWARE ENGINEERING DESIGN I 3. Schemas and Theories The aim of this course is to learn how to write formal specifications of computer systems, using classical logic. The key descriptional technique

More information

Introduction to AGG and EMF Tiger by Modeling a Conference Scheduling System

Introduction to AGG and EMF Tiger by Modeling a Conference Scheduling System Int J Softw Tools Technol Transfer (2009) manuscript No. (will be inserted by the editor) Introduction to AGG and EMF Tiger by Modeling a Conference Scheduling System Enrico Biermann Claudia Ermel Leen

More information

Rewriting. Andreas Rümpel Faculty of Computer Science Technische Universität Dresden Dresden, Germany.

Rewriting. Andreas Rümpel Faculty of Computer Science Technische Universität Dresden Dresden, Germany. Rewriting Andreas Rümpel Faculty of Computer Science Technische Universität Dresden Dresden, Germany s9843882@inf.tu-dresden.de ABSTRACT This is an overview paper regarding the common technologies of rewriting.

More information

Symbol Tables Symbol Table: In computer science, a symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier in a program's source code is

More information

Figure 1.1: This is an illustration of a generic set and its elements.

Figure 1.1: This is an illustration of a generic set and its elements. Chapter 1 Mathematical Review et theory is now generally accepted as the foundation of modern mathematics, and it plays an instrumental role in the treatment of probability. Unfortunately, a simple description

More information

15-451/651: Design & Analysis of Algorithms October 11, 2018 Lecture #13: Linear Programming I last changed: October 9, 2018

15-451/651: Design & Analysis of Algorithms October 11, 2018 Lecture #13: Linear Programming I last changed: October 9, 2018 15-451/651: Design & Analysis of Algorithms October 11, 2018 Lecture #13: Linear Programming I last changed: October 9, 2018 In this lecture, we describe a very general problem called linear programming

More information

MA651 Topology. Lecture 4. Topological spaces 2

MA651 Topology. Lecture 4. Topological spaces 2 MA651 Topology. Lecture 4. Topological spaces 2 This text is based on the following books: Linear Algebra and Analysis by Marc Zamansky Topology by James Dugundgji Fundamental concepts of topology by Peter

More information

Theory of Computations Spring 2016 Practice Final Exam Solutions

Theory of Computations Spring 2016 Practice Final Exam Solutions 1 of 8 Theory of Computations Spring 2016 Practice Final Exam Solutions Name: Directions: Answer the questions as well as you can. Partial credit will be given, so show your work where appropriate. Try

More information

This book is licensed under a Creative Commons Attribution 3.0 License

This book is licensed under a Creative Commons Attribution 3.0 License 6. Syntax Learning objectives: syntax and semantics syntax diagrams and EBNF describe context-free grammars terminal and nonterminal symbols productions definition of EBNF by itself parse tree grammars

More information

Petri Nets ~------~ R-ES-O---N-A-N-C-E-I--se-p-te-m--be-r Applications.

Petri Nets ~------~ R-ES-O---N-A-N-C-E-I--se-p-te-m--be-r Applications. Petri Nets 2. Applications Y Narahari Y Narahari is currently an Associate Professor of Computer Science and Automation at the Indian Institute of Science, Bangalore. His research interests are broadly

More information

Petri-net-based Workflow Management Software

Petri-net-based Workflow Management Software Petri-net-based Workflow Management Software W.M.P. van der Aalst Department of Mathematics and Computing Science, Eindhoven University of Technology, P.O. Box 513, NL-5600 MB, Eindhoven, The Netherlands,

More information

Software Paradigms (Lesson 4) Functional Programming Paradigm

Software Paradigms (Lesson 4) Functional Programming Paradigm Software Paradigms (Lesson 4) Functional Programming Paradigm Table of Contents 1 Introduction... 2 2 Evaluation of Functions... 3 3 Compositional (Construct) Operators... 4 4 Some Implementation Issues...

More information

A DISCUSSION ON SSP STRUCTURE OF PAN, HELM AND CROWN GRAPHS

A DISCUSSION ON SSP STRUCTURE OF PAN, HELM AND CROWN GRAPHS VOL. 10, NO. 9, MAY 015 ISSN 1819-6608 A DISCUSSION ON SSP STRUCTURE OF PAN, HELM AND CROWN GRAPHS R. Mary Jeya Jothi Department of Mathematics, Sathyabama University, Chennai, India E-Mail: jeyajothi31@gmail.com

More information

Introduction to Counting, Some Basic Principles

Introduction to Counting, Some Basic Principles Introduction to Counting, Some Basic Principles These are the class notes for week. Before we begin, let me just say something about the structure of the class notes. I wrote up all of these class notes

More information

Lecture 2 Finite Automata

Lecture 2 Finite Automata Lecture 2 Finite Automata August 31, 2007 This lecture is intended as a kind of road map to Chapter 1 of the text just the informal examples that I ll present to motivate the ideas. 1 Expressions without

More information

Graph Theory Mini-course

Graph Theory Mini-course Graph Theory Mini-course Anthony Varilly PROMYS, Boston University, Boston, MA 02215 Abstract Intuitively speaking, a graph is a collection of dots and lines joining some of these dots. Many problems in

More information

Fundamental Properties of Graphs

Fundamental Properties of Graphs Chapter three In many real-life situations we need to know how robust a graph that represents a certain network is, how edges or vertices can be removed without completely destroying the overall connectivity,

More information

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006 Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006 THE KIT: This kit contains materials for two Instant Insanity games, a student activity sheet with answer key and this instructor

More information

COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES

COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES Volume 2, Number 1, Pages 61 66 ISSN 1715-0868 COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES MARCIN KAMIŃSKI AND VADIM LOZIN Abstract. Vertex and edge colorability are two graph problems

More information

Graphical Models. Pradeep Ravikumar Department of Computer Science The University of Texas at Austin

Graphical Models. Pradeep Ravikumar Department of Computer Science The University of Texas at Austin Graphical Models Pradeep Ravikumar Department of Computer Science The University of Texas at Austin Useful References Graphical models, exponential families, and variational inference. M. J. Wainwright

More information

Vertex 3-colorability of claw-free graphs

Vertex 3-colorability of claw-free graphs Algorithmic Operations Research Vol.2 (27) 5 2 Vertex 3-colorability of claw-free graphs Marcin Kamiński a Vadim Lozin a a RUTCOR - Rutgers University Center for Operations Research, 64 Bartholomew Road,

More information

Math 443/543 Graph Theory Notes

Math 443/543 Graph Theory Notes Math 443/543 Graph Theory Notes David Glickenstein September 8, 2014 1 Introduction We will begin by considering several problems which may be solved using graphs, directed graphs (digraphs), and networks.

More information

A MODEL CATEGORY STRUCTURE ON THE CATEGORY OF SIMPLICIAL CATEGORIES

A MODEL CATEGORY STRUCTURE ON THE CATEGORY OF SIMPLICIAL CATEGORIES A MODEL CATEGORY STRUCTURE ON THE CATEGORY OF SIMPLICIAL CATEGORIES JULIA E. BERGNER Abstract. In this paper we put a cofibrantly generated model category structure on the category of small simplicial

More information

Topos Theory. Lectures 3-4: Categorical preliminaries II. Olivia Caramello. Topos Theory. Olivia Caramello. Basic categorical constructions

Topos Theory. Lectures 3-4: Categorical preliminaries II. Olivia Caramello. Topos Theory. Olivia Caramello. Basic categorical constructions Lectures 3-4: Categorical preliminaries II 2 / 17 Functor categories Definition Let C and D be two categories. The functor category [C,D] is the category having as objects the functors C D and as arrows

More information

Cryptography and Network Security. Prof. D. Mukhopadhyay. Department of Computer Science and Engineering. Indian Institute of Technology, Kharagpur

Cryptography and Network Security. Prof. D. Mukhopadhyay. Department of Computer Science and Engineering. Indian Institute of Technology, Kharagpur Cryptography and Network Security Prof. D. Mukhopadhyay Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Module No. # 01 Lecture No. # 38 A Tutorial on Network Protocols

More information

Graph Theory

Graph Theory Graph Theory 2012.04.18 Our goal today is to learn some basic concepts in graph theory and explore fun problems using graph theory. A graph is a mathematical object that captures the notion of connection.

More information

BOOLEAN ALGEBRA AND CIRCUITS

BOOLEAN ALGEBRA AND CIRCUITS UNIT 3 Structure BOOLEAN ALGEBRA AND CIRCUITS Boolean Algebra and 3. Introduction 3. Objectives 3.2 Boolean Algebras 3.3 Logic 3.4 Boolean Functions 3.5 Summary 3.6 Solutions/ Answers 3. INTRODUCTION This

More information

Abstract algorithms. Claus Diem. September 17, 2014

Abstract algorithms. Claus Diem. September 17, 2014 Abstract algorithms Claus Diem September 17, 2014 Abstract We give a framework to argue formally about algorithms with arbitrary data types. The framework is based on category theory, and types are based

More information

Discrete Mathematics

Discrete Mathematics Discrete Mathematics Lecturer: Mgr. Tereza Kovářová, Ph.D. tereza.kovarova@vsb.cz Guarantor: doc. Mgr. Petr Kovář, Ph.D. Department of Applied Mathematics, VŠB Technical University of Ostrava About this

More information

Chapter 2 The Language PCF

Chapter 2 The Language PCF Chapter 2 The Language PCF We will illustrate the various styles of semantics of programming languages with an example: the language PCF Programming language for computable functions, also called Mini-ML.

More information

Preimages of Small Geometric Cycles

Preimages of Small Geometric Cycles Preimages of Small Geometric Cycles Sally Cockburn Department of Mathematics Hamilton College, Clinton, NY scockbur@hamilton.edu Abstract A graph G is a homomorphic preimage of another graph H, or equivalently

More information

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ -  artale/z CHAPTER 10 GRAPHS AND TREES Alessandro Artale UniBZ - http://www.inf.unibz.it/ artale/z SECTION 10.1 Graphs: Definitions and Basic Properties Copyright Cengage Learning. All rights reserved. Graphs: Definitions

More information

Mathematical Model Transformations

Mathematical Model Transformations Chapter 1 Mathematical Model Transformations 1.1 Introduction For most computer controlled systems, especially dependable, real time systems for critical applications, an effective design process requires

More information

The Encoding Complexity of Network Coding

The Encoding Complexity of Network Coding The Encoding Complexity of Network Coding Michael Langberg Alexander Sprintson Jehoshua Bruck California Institute of Technology Email: mikel,spalex,bruck @caltech.edu Abstract In the multicast network

More information