Ravello 19-21 settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 1 Covering problems from a formal language point.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

&& Department of nskinfo-i educationwww.nsksofttch.com CS2303-THEORY OF COMPUTATION uChapter: Closure.
Bellwork If you roll a die, what is the probability that you roll a 2 or an odd number? P(2 or odd) 2. Is this an example of mutually exclusive, overlapping,
Molecular Computing Formal Languages Theory of Codes Combinatorics on Words.
Formal Languages Theory of Codes Combinatorics on words Molecular Computing.
Subspace Embeddings for the L1 norm with Applications Christian Sohler David Woodruff TU Dortmund IBM Almaden.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
1 Average Case Analysis of an Exact String Matching Algorithm Advisor: Professor R. C. T. Lee Speaker: S. C. Chen.
1 Approximate string matching using factor automata J. Holub and B. Melichar Theoretical Computer Science vol.249 p Speaker: L. C. Chen Advisor:
July 11, 2006 Council of Graduate Schools 1 Ph.D. Completion Project: Using the Baseline Data 2006 CGS Summer Workshop Technical Workshop.
Source of slides: Introduction to Automata Theory, Languages and Computation.
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
Addition Facts
1 Learning Touchmath *Graphics taken from
5NF and other normal forms
CS3012 Formal Languages and Compilers Frank Guerin Room 227 Lectures Monday11:00MT3 Tuesday9:00105 St. Marys Tutorials Thursday13:00 Thursday 14:00definitely.
CS4026 Formal Models of Computation Running Haskell Programs – power.
ZMQS ZMQS
Towards a characterization of regular languages generated by finite splicing systems: where are we? Ravello, Settembre 2003 Paola Bonizzoni, Giancarlo.
Regular operations Sipser 1.1 (pages 44 – 47). CS 311 Fall Building languages If L is a language, then its complement is L’ = {w | w ∉ L} Let A.
Tintu David Joy. Agenda Motivation Better Verification Through Symmetry-basic idea Structural Symmetry and Multiprocessor Systems Mur ϕ verification system.
Sorting suffixes of two-pattern strings F. Franek & W.F. Smyth Algorithms Research Group Computing and Software McMaster University Hamilton, Ontario Canada.
Meta Predicate Abstraction for Hierarchical Symbolic Heaps Josh Berdine Microsoft Research, Cambridge joint with Mike Emmi University of California, Los.
Real Zeros of Polynomial Functions Real Zeros of Polynomial Functions
ABC Technology Project
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
© Charles van Marrewijk, An Introduction to Geographical Economics Brakman, Garretsen, and Van Marrewijk.
Chapter #8: Finite State Machine Design 8
Progam.-(6)* Write a program to Display series of Leaner, Even and odd using by LOOP command and Direct Offset address. Design by : sir Masood.
How to convert a left linear grammar to a right linear grammar
10/5/2013Multiplication Rule 11  Multiplication Rule 1: If a > b and c > 0 then a c > bc Examples If 7 > 3 and 5 > 0 then 7(5) > 3(5) If 2x + 6 > 8 then.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Formal Languages Languages: English, Spanish,... PASCAL, C,... Problem: How do we define a language? i.e. what sentences belong to a language? e.g.Large.
Reaching Agreements II. 2 What utility does a deal give an agent? Given encounter  T 1,T 2  in task domain  T,{1,2},c  We define the utility of a.
COMPUTER B Y : L K. WINDOWS INFORMATION B Y : L K.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Landings by Species Group and Year. Revenue by Species Group.
Week 1.
We will resume in: 25 Minutes.
Rizwan Rehman Centre for Computer Studies Dibrugarh University
Salvatore Ruggieri SIGKDD2010 Frequent Regular Itemset Mining 2010/9/2 1.
How Cells Obtain Energy from Food
Fact Families By: Gianna Boland.
Chapter 6 Languages: finite state machines
NFAs and DFAs Sipser 1.2 (pages 47-63).
Minimum Vertex Cover in Rectangle Graphs
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 13: Turing Machines.
CS 310 – Fall 2006 Pacific University CS310 Strings, String Operators, and Languages Sections: August 30, 2006.
   a + 8a. Objective: To add and subtract real numbers using rules.
Lecture Two: Formal Languages Formal Languages, Lecture 2, slide 1 Amjad Ali.
L ECTURE 3 Chapter 4 Regular Expressions. I MPORTANT T ERMS Regular Expressions Regular Languages Finite Representations.
Minimum Cover of F. Minimal Cover for a Set of FDs Minimal cover G for a set of FDs F: –Closure of F = closure of G. –Right hand side of each FD in G.
ON THE EXPRESSIVE POWER OF SHUFFLE PRODUCT Antonio Restivo Università di Palermo.
UNIT - I Formal Language and Regular Expressions: Languages Definition regular expressions Regular sets identity rules. Finite Automata: DFA NFA NFA with.
Lecture # 4.
Greedy Algorithms. p2. Activity-selection problem: Problem : Want to schedule as many compatible activities as possible., n activities. Activity i, start.
Recap Lecture 3 RE, Recursive definition of RE, defining languages by RE, { x}*, { x}+, {a+b}*, Language of strings having exactly one aa, Language of.
Presentation transcript:

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 1 Covering problems from a formal language point of view Marcella ANSELMO Maria MADONIA

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 2 Covering a word Covering a word w with words in a set X w Covering = concatenations +overlaps Example: X = ab+ba w = abababa a b a b a b a X X X X X

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 3 Why study covering ? Molecular biology: manipulating DNA molecules (e.g. fragment assembly) Data compression Computer-assisted music analysis

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 4 Literature Apostolico, Ehrenfeucht (1993) Brodal, Pedersen (2000) w is quasiperiodic Moore, Smyth (1995) x is a cover of w Iliopulos, Moore, Park (1993) x covers w Iliopulos, Smyth (1998) set of k-covers of w Sim, Iliopulos, Park, Smyth (2001) p approximated (complete references) period of w All algorithmic problems!!! (given w find optimal X)

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 5 Formal language point of view also X cov = (X, A * ), set of z-decompositions over (X, A * ) Here: Coverings not simple generalizations of z-decompositions! If X A *, X cov = set of words covered by words in X Formal language point of view is needed! Madonia, Salemi, Sportelli (1999) [MSS99]:

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 6 Formal Definition Def. A covering (over X) of w in A * is =(w 1, …, w n ) s.t. 1. n is odd; for any odd i, w i X for any even i, w i 2. red(w 1 … w n ) = w 3. for any i, red(w 1 …w i ) is prefix of w red(w) = canonical representative of the class of w in the free group

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 7 =(ab,, ba,, ba,, ab) is a covering of w over X a b a b a b : Example: X = ab+ba w = ababab. 1.n is odd; for any odd i, w i X; for any even i, w i * 2. red( ab ba ba ab ) = ababab 3. for any i, red(w 1 …w i ) is prefix of w

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 8 Concatenation, zig-zag, covering X cov cov-submonoid X z-submonoid X*X* submonoid Covering Zig-zag Concatenation cov-submonoidz-submonoidsubmonoid

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 9 Example: X= ab+ba, w=#ababaab$ L(S) Splicing systems for X cov a b a b a $ b a a b $ x = ba a b a b a a b$ X, finite S, splicing system s.t. L(S) = X cov $ Start with: x $, x X or COV 2 (X) Rules: (, x, $), x X (, x, x 3 $), x=x 1 x 2, x 2 x 3 X COV 2 (X) = a b a b $ a b a $ x = ab

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 10 Coding problems [MSS99] How many coverings has a word? Example: X=ab + ba, w = ababab X cov w has many different coverings over X : 4 =(ab,, ab,, ba,, ab) 5 =(ab,, ba,, ab,, ba,,ab) 3 =(ab,, ba,, ab,, ab) 1 =(ab,, ab,, ab) 2 =(ab,, ba,, ba,, ba,, ab)

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 11 Covering codes [MSS 99] Example: X = ab + ba is not a covering code (remember δ 1, δ 2 ) Example: X = aabab + abb is a covering code Example: X= ab + a + a is a covering code X A * is a covering code if any word in A * has at most one minimal covering (over X).

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 12 Cov - freeness Let M A *, cov-submonoid. cov-G(M) is the minimal X A * such that M= X cov. M is cov-free if cov-G(M) is a covering code. Fact: M free M stable (well-known) M z-free M z-stable (known) We want cov-stability = global notion equivalent to cov-freeness. Question: M cov-freeM cov-stable?

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 13 w, vw M, uv, u Z-p-s(uvw) implies v Z-p-s(uvw) Toward a cov-stability definition (I) cov-stable? z-stable stable u,w,uv,vw M implies w M w, vw, uvx, uy M, for x <w and y <vw, implies vx M ? Not always! Example: X = abcd+bcde+cdef+defg

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 14 Toward a cov-stability definition (II) Main observation in the classical proof of (stable implies free): x minimal word with 2 different factorizations: the last step in a factorization from the last step in the other factorization New situation with covering: So we have to study the case v =. Example: X = abc + bcd + cde u w

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 15 Cov – stability Def. M is cov-stable if w, vw, uvx, uy M, for x w and y vw Remark: cov-stable implies stable 1.If v, then vz M, for some z w Moreover vx M if y v 2. If v =, u and x y then t M, for some t proper suffix of ux

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 16 Cov-stable iff cov-free Proof: many cases and sub-cases (as in definition!) Theorem: M covering submonoid. M is cov-stable M is cov-free

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 17 Some consequences Fact 1: (cov-free cov-free) cov-free Fact 5: cov –free z-free free Fact 2: cov-free implies free (not viceversa) Fact 3: cov-free implies very pure (not viceversa) Fact 4: M covering submonoid, X= cov-G(M). M cov-free implies X * free. Remark: Covering not simple generalization of z-decomposition!

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 18 Cov - maximality and cov-completeness Fact: X cov-complete X cov-maximal Let X A *, covering code. X is cov-complete if Fact(X cov ). X is cov-maximal if X X 1, covering code X=X 1 Remark [MSS99] : X cov-complete X infinite (unless X=A) Example: X=ab + a +a Remark complete cov-complete (not viceversa) maximal cov-maximal (not viceversa)

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 19 B, 2FA recognizing X cov A, 1DFA recognizing X Counting minimal coverings X A*, regular language cov X : w number of minimal coverings of w Remark: B counts all coverings of w X cov X 1 A X

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 20 Remark on minimal coverings Remark: In minimal coverings, no 2 steps to the left under the same occurrence of a letter Crossing sequences in B for minimal coverings of w: w

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 21 A 1NFA automaton for cov X CS 3 = crossing sequences of length 3 and no twice state 1 (cs,a) =cs if cs matches cs on a C = (CS 3, (1),, (1) ) a a b b Example: X = ab + ba, A : C : a a a a a b b b b b

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 22 Some remarks Language recognized by C = X cov X regular implies X cov regular Behaviour of C is cov X X regular implies cov X rational X covering code iff C unambiguous (decidable) (different proof in [MSS99])

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 23 Conclusions and future works Formal language point of view is needed Covering not generalization of zig-zag (or z-decomposition): many new problems and results covering codes: measure special cases: |X| =1, X A k suggestions … Further problems:

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 24 w xxxx w xxxx w X X X X X X A k w isquasiperiodic x is a cover of w set of k-covers of w x covers w

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 25 Example: X = ab+ba a b a b a b X cov = (ab + ba+ aba + bab) * w = ababab X cov w = ababab (X, A * )

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 26 a b a b a b 1 : a b a b a b 2 : All the steps to the right are needed for covering w: δ 1, δ 2 are minimal coverings!

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 27 a b a b a b 4 : a b a b a b 5 : 3 : All blue steps are useless for covering w : δ 3, δ 4, δ 5 are not minimal. We count only minimal coverings.

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 28 Toward a cov-stability definition (I) stable u,w,uv,vw M v M u v w u v w z-stable w, vw M, uv, u Z-prefix-strict(uvw) v Z -prefix-strict(uvw)

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 29 a b c d e f g Set u=ab, v=c, w=defg, x=de, y=cd. Note vz=cdef M, z w. Therefore w, vw, uvx, uy M vx Example: X= abcd+bcde+cdef+defgM=X cov but vx =cde M.

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 30 a b c d e Set u=ab, v=, w=cde, x=cd, y=c. Therefore w, vw, uvx, uy M Note bcd M, bcd proper suffix of ux. Example: X = abc + bcd + cdeM=X cov u x w but vz M for no z w.

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 31 Case 1. u v w y x vz M z w u v w x y v y v v y v vx M

Ravello settembre 2003Covering Problems from a Formal Language Point of View M. Anselmo - M. Madonia 32 Case 2. v x y u t M, t proper suffix of ux u w y x