Modeling of Graph and Automaton in Database



Similar documents
Genetic programming with regular expressions

Reliability Guarantees in Automata Based Scheduling for Embedded Control Software

Pushdown automata. Informatics 2A: Lecture 9. Alex Simpson. 3 October, School of Informatics University of Edinburgh als@inf.ed.ac.

Automata and Computability. Solutions to Exercises

SQL Server Setup Guide for BusinessObjects Planning

Pushdown Automata. place the input head on the leftmost input symbol. while symbol read = b and pile contains discs advance head remove disc from pile

Reading 13 : Finite State Automata and Regular Expressions

T Reactive Systems: Introduction and Finite State Automata

Scanner. tokens scanner parser IR. source code. errors

Introduction to Finite Automata

3515ICT Theory of Computation Turing Machines

Intrusion Detection via Static Analysis

Turing Machines, Part I

3.1 Solving Systems Using Tables and Graphs

CS 3719 (Theory of Computation and Algorithms) Lecture 4

MS SQL Performance (Tuning) Best Practices:

Implementation of Recursively Enumerable Languages using Universal Turing Machine in JFLAP

System Requirements and Configuration Options

(IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems.

SOFT 437. Software Performance Analysis. Ch 5:Web Applications and Other Distributed Systems

Honors Class (Foundations of) Informatics. Tom Verhoeff. Department of Mathematics & Computer Science Software Engineering & Technology

A permutation can also be represented by describing its cycles. What do you suppose is meant by this?

Implementing and Maintaining Microsoft SQL Server 2008 Integration Services

System Requirements - filesmart

Finite Automata. Reading: Chapter 2

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 4 Nancy Lynch

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Cache Configuration Reference

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

Highly Available Unified Communication Services with Microsoft Lync Server 2013 and Radware s Application Delivery Solution

Compiler Construction

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

System Requirements for Microsoft Dynamics SL 2015

Regular Languages and Finite State Machines

Toad for Oracle 8.6 SQL Tuning

JReport Server Deployment Scenarios

Model 2.4 Faculty member + student

Deterministic Finite Automata

PRODUCT BRIEF 3E PERFORMANCE BENCHMARKS LOAD AND SCALABILITY TESTING

Notes on Complexity Theory Last updated: August, Lecture 1

CS5310 Algorithms 3 credit hours 2 hours lecture and 2 hours recitation every week

CS154. Turing Machines. Turing Machine. Turing Machines versus DFAs FINITE STATE CONTROL AI N P U T INFINITE TAPE. read write move.

Load Testing and Monitoring Web Applications in a Windows Environment

Performance Comparison of Persistence Frameworks

Performance And Scalability In Oracle9i And SQL Server 2000

Runtime Enforcement of Timed Properties

Increasing Interaction and Support in the Formal Languages and Automata Theory Course

Course Manual Automata & Complexity 2015

Unit 5.1 The Database Concept

ACME Intranet Performance Testing

Autodesk Revit 2016 Product Line System Requirements and Recommendations

High-Speed Information Utilization Technologies Adopted by Interstage Shunsaku Data Manager

Router Architectures

Revit products will use multiple cores for many tasks, using up to 16 cores for nearphotorealistic

How to Configure a Stress Test Project for Microsoft Office SharePoint Server 2007 using Visual Studio Team Suite 2008.

Performance Optimization Guide

CAs and Turing Machines. The Basis for Universal Computation

Finite Automata. Reading: Chapter 2

Software that writes Software Stochastic, Evolutionary, MultiRun Strategy Auto-Generation. TRADING SYSTEM LAB Product Description Version 1.

NS DISCOVER 4.0 ADMINISTRATOR S GUIDE. July, Version 4.0

Introduction to Turing Machines

Pivot3 Reference Architecture for VMware View Version 1.03

FINITE STATE AND TURING MACHINES

Random Map Generator v1.0 User s Guide

Sage Abra SQL HRMS Reports. User Guide

NetDocuments Local Document Service

How To Retire A Legacy System From Healthcare With A Flatirons Eas Application Retirement Solution

PDA DRIVEN WAREHOUSE INVENTORY MANAGEMENT SYSTEM Sebastian Albert Master of Science in Technology

Best Practices for Deploying SSDs in a Microsoft SQL Server 2008 OLTP Environment with Dell EqualLogic PS-Series Arrays

Welcome to... Problem Analysis and Complexity Theory , 3 VU

Using Tomcat with CA Clarity PPM

Monitoring Replication

InfiniteGraph: The Distributed Graph Database

Computer Architecture Syllabus of Qualifying Examination

Historian SQL Server 2012 Installation Guide

Hedging Variable Annuity Guarantees

Turing Machines: An Introduction

How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip

User Reports. Time on System. Session Count. Detailed Reports. Summary Reports. Individual Gantt Charts

White Paper ClearSCADA Architecture

Trial version of GADD Dashboards Builder

HOB WebSecureProxy as an SSL Terminal for Clients

BulkSMS Text Messenger Product Manual

Regular Expressions and Automata using Haskell

CA Repository for z/os r7.2

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

ICS Technology. PADS Viewer Manual. ICS Technology Inc PO Box 4063 Middletown, NJ

Triangle deletion. Ernie Croot. February 3, 2010

Qt Features for Hybrid Web/Native Application Development

Release Notes: J-Web Application Package Release 15.1A1 for Juniper Networks EX Series Ethernet Switches

Load Manager Administrator s Guide For other guides in this document set, go to the Document Center

Web Data Extraction: 1 o Semestre 2007/2008

Informatique Fondamentale IMA S8

Achieving Real-Time Business Solutions Using Graph Database Technology and High Performance Networks

By the Citrix Publications Department. Citrix Systems, Inc.

EPM Performance Suite Profitability Administration & Security Guide

Transcription:

1, 2 Modeling of Graph and Automaton in Database Shoji Miyanaga 1, 2 Table scheme that relational database provides can model the structure of graph which consists of vertices and edges. Recent database system can not only save or extract data but also process external diverse tasks. Such database system can model the structure of graph and extract the characteristic structures of model such like path or cycle, and furthermore can model the automaton and execute the transition of the automaton by calling query. In this paper, author explain the computation model constructions which are expressed by automaton and show their application. 1 Osaka University 2 National Institute of Advanced Industrial Science and Technology 1. Introduction Currently, variously formed data are, which are used in both organization and personal, saved and reused. Complex structured data also can be saved into XML database, and their usage are expanded increasingly. On the other hand, attentioning to database specification, increase of disk spaces and memory capability and performance of CPU, LAN and CACHE enable system specification very high in both time and space. Furthermore, for database system s various embedded functions are provided so that its data customization is enabled by query execution. By the way, it is known that various data and structure can be represented by graph. Table structure that relational database provides can model graph structure consisting of vertices and edges. Recent database systems can not only save and extract data but also process extreme diverse tasks by some embedded functions. Modeling graph structure, characteristic structure such like paths and cycles can be extracted, furthermore, can model automaton and execute transition by query, and equipped property as program execution platform. In this paper, we explains system construction represented by automaton in relational database, and show its application. Then this paper is organized as follows. In chapter 2, we explains how to model graph and automaton in relational database. In chapter 3, some application are presented. In chapter 4, we discussed by our proposal in this paper. In chapter 5, related work is explained. 2. Modeling of Graph and Automaton 2.1 Digraph Digraph is formalized like below. G =< V, E > Herein, V is a set of vertices, E is a set of directed edge. Now, we define the vertices and edges of graph G like below. V = (1, 2, 3, 4) E = (< 1, 2 >, < 2, 3 >, < 3, 4 >, < 4, 1 >) Herein, this graph can be expressed in relational database by tables described below. 1

1 Vertex Table vertexid vertexlabel 1 v1 2 v2 3 v3 4 v4 2 Arc Table arcid startvertex endvertex arclabel 1 1 2 e1 2 2 3 e2 3 3 4 e3 4 4 1 e4 2.2 Deterministic Finite Automaton (DFA)) Formalized definition of Deterministic Finite Automaton (DFA)) is described below. DF A A =< Q, Σ, δ, q 0, F > Herein, Q is a set of states of automaton, Σ is a set of alphabets, δ is transition function, q 0 is initial states, F is a set of accept states. δ is defined like below. δ : Q Σ Q δ is a function from a pair of current state and input alphabet to a state to be transited. An Example of table specification, which define this automaton, for transitions is described below. 3 State Table of Automaton state statemean statelabel 0 init q 0 1 normal q 1 2 normal q 2 3 normal q 3 4 accept q 4 4 State Transition of DFA transid startstate endstate alphabet 0 0 1 a 1 1 2 a 2 2 1 a b 3 1 3 b 4 3 2 a 5 3 4 b 1 Digraph In this case, deterministic automaton is expressed like following state diagram. 2.3 Execution of Transition of DFA Management information such like current state, semantics of current state, and input alphabet array are need to execute transition of deterministic automaton. Therefore, we suppose current state like below. Now if we execute transition of automaton, whose id=1, on reading alphabet SQL like below is executed. 2

2 Example of DFA Transition execution is enabled to substitute original record by the record above query generates, therefore it is found that relational database can control automaton. 2.4 Extension to NFA Non-deterministic Finite Automaton (NFA) is automaton whose transition state may not be determined uniquely by current state and input alphabet. An Example of such NFA is described below. 5 State Management of Automaton id state statemean alphabets 1 q 0 init aaabb 2 q 1 normal abaabb SUBSTRING(T1. alphabet, 2, l e n (T1. alphabet ) 1) from dbo. T DFA as T1 i n n e r j o i n dbo. T DFA Transition as T2 and T2. alphabet=substring(t1. alphabet, 1, 1 ) ; 3 Non-deterministic Finite Automaton This query is one example which is described in Microsoft SQL Server 2008?). There are some way to rewrite the automaton information by using the outputs of above query, and one of outputs is to execute insert statement to add new entry like below. i n s e r t i n t o T DFA s u b s t r i n g (T1. alphabet, 2, l e n (T1. alphabet ) 1) from dbo. T DFA as T1 i n n e r j o i n dbo. T DFA Transition as T2 In this case in state q 0 same character 1 given, it is not determined uniquely whether q 1 is next state or q 2 is next state. For automaton whose state to be transited, herein we show the transitive state randomly. SUBSTRING(T1. alphabet, 2, l e n (T1. alphabet ) 1) RANDOM( ) as se q from dbo. T DFA as T1 3

i n n e r j o i n dbo. T DFA Transition as T2 and T2. alphabet=substring(t1. alphabet, 1, 1) order by seq Herein RANDOM() is random number generator function. A set of transition states are rearranged by random numbers. we can express the non-decidability by picking one entry which is minimal (or maximal) from this set. 2.5 Extension to Pushdown Automaton Pushdown Automaton (PDA) provides memory equipment by stack like below. Herein, Q is a set of states of PDA, Σ is a set of alphabet, Γ is a set of tape alphabets, q 0 is an initial state, and F is a set of accept states. For extension to PDA, both state table and transition table should be changed because stack is rewriten. 6 State Mangement PDA id state statemean alphabets stack 1 q 0 init aaabb ɛ 2 q 1 normal abaabb ɛ 7 Transition Function of PDA transid startstate endstate alphabet rtape wtape 0 0 1 a ɛ ɛ 1 1 2 a ɛ a 2 2 1 a b a ɛ 3 1 3 b ɛ b 4 3 2 a b a 5 3 4 b b b 4 Pushdown Automaton 5 Stack Dealing Formalized definition of PDA is like below. P DA A =< Q, Σ, Γ, δ, q 0, F > Herein, letting T DFA Transition transition table of PDA, transited state of PDA is obtained by following query. SUBSTRING(T1. alphabet, 2, l e n (T1. alphabet ) 1) T2. wtape + s u b s t r i n g (T1. stack, 2, l e n (T1. s t a c k ) 1) from dbo.t DFA as T1 i n n e r j o i n dbo. T DFA Transition as T2 and T2. alphabet=substring(t1. alphabet, 1, 1) and T1. rtape=substring(t1. stack, 1, 1) Like this, by execution some queries, dealing with automaton with stack rewriting is enabled. By the way stack rewriting of PDA is performed like below. 4

2.6 Extension to Cellular Automaton Cellular Automaton can express the system which consists of some automata which are deployed on grid like below. On the other hand, assigning indivisual automaton to each game character, such game can be implemented. Cellular Automaton Methods are widely used, define the structure which consists of many factors such like traffic simulator and environment simulator, and analyze phenomena. 7 Transition of CA 8 Transition Function of CA id state alphabet func transfunc 1 q 0 1 f 1 g 1 q 0 2 f 2 g 6 Cellular Automaton on Grid As Explained in previous section, one DFA corresponds to distinct unique record. Defining some records corresponding to distinct automaton can execute some automata concurrently. Furthermore, on characteristic property, CA can process several different functions case by case. Precedingly described automaton can only deal with state transition, so the system in which some functions each of which corresponds to a function is hard to be modeled. However, in the database system in which some functions can be executed by evaluation of the formula representing the function, and in the programming environment Cellular Automaton can easily define the its activities corresponding to each state of CA. Now, we model the activities of Cellular Automaton like below. In this diagram, CA is formalized like below. P DA A =< Q, V, Σ, δ, q 0, F, g > Herein, Q is a set of states of CA, V is a set of cell variables, Σ is a set of input alphabets. q 0 is an initial state, F = {f ; f : V V } is a set of function corresponding to each state, and g : V Q is a function to determine the state to be transited. This record is interpreted like following. If DFA 1 is in state q 0, then, if alphabet 1 read, function f 1 is executed and current variables are updated and next state is determined by function g. Like this, activity rules of cells are provided by tables and can be described. 3. Application Examples 3.1 Web Application In distributed environment, as centerized data management application example, Web Application is often picked-up. Web application consists of page management block, page display block and page transition mangement block. Page management displays pages to user and manages page contents, and save temporary pages untill commitment requested or timeout notified. Page display block customizes contents to tagged text which is enabled to be displayed in Web Browser. Page transition management block manages page states, and switches procedures by request from browser. As Implementation example, there is JSP and Servlet which manage consistent object, such that object is general. In this case also by hold preceding database on background, it is enable to manage easily. Now, consider the facility reservation system like following list. 5

( 1 ) q 0 :Login ( 2 ) q 1 :Facility List ( 3 ) q 2 :Facility Detail ( 4 ) q 3 :Reservation ( 5 ) q 4 :Confirmation ( 6 ) q 5:Cancel Screen transition of this system is expressed by state diagram. ( 1 ) Deterministic Automaton ( 2 ) Non-deterministic Automaton ( 3 ) Pushdown Automaton ( 4 ) Cellular Automaton Furthermore, it is found that by query execution and using database property as application execution environment it is enable to control above automata. By this, it is confirmed that defining descrete system in relational database, it is enable to execute automaton. By using databse system in which evaluation of equation (of function) is enabled to be describe by query, it is enable to describe and execute the complex system such that it does various actions case by case like agent. 5. Related Work There are many research about management and analysis of database and management of graph structure in database. There is research by Ishino and Takeda?) about automaton in database. 8 State Diagram of Facility Reservation It is enable to assume input letters as event, and to describe and to manage state transition such that process is change in order to event. In this case, client must has only DFA ID as management information, so it is enable to manage easily. 3.2 Physical Phenomena represented by Evolutional Equation Evolutional equation is used to analyze air polution and earch polution. physical phenomena of such system is enable to be analyzed by CA. By describing preceding function corresponding to each state of CA, it is enable to manage large systems. 4. Discussion In this paper, we focus table structure of relational database and showed that it is enabled to define the digraph structure by table and to model classes of automata described below. 6. Acknowledgement We appriciate to Prof. Koji Torii and Prof. Masatsugu Kidode of Nara Advanced Institute of Science and Technology. 1) M Sipser: Introduction to the Theory of Computation, Thomson Course Technology, ISBN978-0-534-95097-2, (2006). 2) John E H, R Motowani, J D Wolfman, A Nozaki: Automaton, Linguistic Theory, Computation Theory 2 (2nd ed), Science, (2006). 3) M Huth, M Ryan: Logic in Computer Science: Modelling and Reasoning About Systems, Cambridge, (2004). 4) R Diestel: Graph Theory 3rd ed, Springer, ISBN978-3-540-26183-4, (2004). 5) Microsoft SQL Server 2008 Express, download enable from http://www.microsoft.com/. 6) A Ishino, M Takeda: A Proposal for XQuery Processor with Deterministic Automaton and Path Pruning, The Database Society Japan Letters, 4(4),p17-20, (2006). 6