Probabilistic and Nondeterministic Unary Automata

Similar documents
Minimizing NFA s and Regular Expressions

Learning Unary Automata

Maria Paola Bianchi 1 and Giovanni Pighizzini 1

Two-Way Automata and Descriptional Complexity

Lower and Upper Bound Results for Hard Problems Related to Finite Automata

CS 455/555: Finite automata

Nondeterminism. September 7, Nondeterminism

The Separating Words Problem

6.045 Final Exam Solutions

Two-Way Automata Characterizations of L/poly versus NL

Deterministic Finite Automata. Non deterministic finite automata. Non-Deterministic Finite Automata (NFA) Non-Deterministic Finite Automata (NFA)

Finite Automata. BİL405 - Automata Theory and Formal Languages 1

Parikh s Theorem and Descriptional Complexity

Chapter 6: NFA Applications

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

Lecture 1: Finite State Automaton

QUANTUM FINITE AUTOMATA. Andris Ambainis 1 1 Faculty of Computing, University of Latvia,

Limitations of Non-deterministic Finite Automata Imposed by One Letter Input Alphabet

CP405 Theory of Computation

Decision, Computation and Language

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

COL 352 Introduction to Automata and Theory of Computation Major Exam, Sem II , Max 80, Time 2 hr. Name Entry No. Group

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

Nondeterministic Finite Automata

Finite Automata and Regular languages

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

CSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont )

Exam Computability and Complexity

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

Space Complexity. The space complexity of a program is how much memory it uses.

Closure under the Regular Operations

CSE 311 Lecture 25: Relating NFAs, DFAs, and Regular Expressions. Emina Torlak and Kevin Zatloukal

Finite Automata. Theorems - Unit I SUSAN ELIAS. Professor Department of Computer Science & Engineering Sri Venkateswara College of Engineering

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,

Nondeterministic Finite Automata

SOLUTION: SOLUTION: SOLUTION:

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Computational Complexity of NFA Minimization for Finite and Unary Languages

Announcements. Problem Set 7 graded; will be returned at end of lecture. Unclaimed problem sets and midterms moved!

Theory of computation: initial remarks (Chapter 11)

Lecture 3: Nondeterministic Finite Automata

Minimizing finite automata is computationally hard

State Complexity Advantages of Ultrametric Automata

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan August 30, Notes for Lecture 1

CSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata

Theory of Computation p.1/?? Theory of Computation p.2/?? Unknown: Implicitly a Boolean variable: true if a word is

The Separating Words Problem

Complexity. Complexity Theory Lecture 3. Decidability and Complexity. Complexity Classes

UNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r

The efficiency of identifying timed automata and the power of clocks

On Probabilistic Pushdown Automata

The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational

Boolean Circuit Complexity of Regular Languages

Finish K-Complexity, Start Time Complexity

Quantum walk algorithms

Introduction Long transparent proofs The real PCP theorem. Real Number PCPs. Klaus Meer. Brandenburg University of Technology, Cottbus, Germany

DESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY

CSE 105 THEORY OF COMPUTATION

Open Problems in Automata Theory: An Idiosyncratic View

Duality in Probabilistic Automata

Lecture 15: A Brief Look at PCP

Lecture 22: PSPACE

Turing Machines. Wolfgang Schreiner

Time to learn about NP-completeness!

CSE 555 Homework Three Sample Solutions

Lecture 16: Time Complexity and P vs NP

CS Lecture 28 P, NP, and NP-Completeness. Fall 2008

HKN CS/ECE 374 Midterm 1 Review. Nathan Bleier and Mahir Morshed

Final exam study sheet for CS3719 Turing machines and decidability.

Advanced topic: Space complexity

Chapter 5. Finite Automata

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam

Limits of Feasibility. Example. Complexity Relationships among Models. 1. Complexity Relationships among Models

Universal Disjunctive Concatenation and Star

Unconventional Finite Automata and Algorithms

CSE 105 THEORY OF COMPUTATION

CS 322 D: Formal languages and automata theory

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT.

Lecture 7: Polynomial time hierarchy

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

Theory of Computation

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama

Finite Automata and Regular Languages

Lecture 17: Cook-Levin Theorem, NP-Complete Problems

CS 154. Finite Automata, Nondeterminism, Regular Expressions

CSE 311: Foundations of Computing. Lecture 23: Finite State Machine Minimization & NFAs

Quantum Computing Lecture 8. Quantum Automata and Complexity

Chapter 6. Properties of Regular Languages

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc.

Classes and conversions

Outline. Nondetermistic Finite Automata. Transition diagrams. A finite automaton is a 5-tuple (Q, Σ,δ,q 0,F)

NOTES ON AUTOMATA. Date: April 29,

Computability and Complexity

Finite Automata. Mahesh Viswanathan

State Complexity of Two Combined Operations: Catenation-Union and Catenation-Intersection

3 Probabilistic Turing Machines

Complementing two-way finite automata

On NFAs Where All States are Final, Initial, or Both

CSE 105 Homework 3 Due: Monday October 23, Instructions. should be on each page of the submission.

Complexity Theory Part II

Transcription:

Probabilistic and Nondeterministic Unary Automata Gregor Gramlich Institute of Computer Science Johann Wolfgang Goethe-Universität Frankfurt August 2003

Unary Regular Languages Unary Language L {a}. Unary DFA 2 3 4 } {{ } k states 1 d d 1 d 2. period(l) = number of states in the cycle of the minimal DFA. Cyclic language for k = 0, empty path. L cyclic period(l) = number of states of the minimal DFA. 1

Topics Determinism versus probabilism: Comparing the number of states. Approximating minimal NFA s: Given a unary NFA, how complex is it to determine an equivalent (almost) minimal NFA? Given a unary cyclic DFA, does the possibly exponentially larger input size allow efficient approximation? 2

Unary PFA s Unary PFA M = (Q, A, π, η). Q = set of states. A = stochastic transition matrix describes a Markov chain. π = initial distribution (stochastic row vector). η = vector indicating final states. Acceptance probability for input a j : πa j η. Cutpoint λ specifies the language L(M, λ) = {a j πa j η > λ}. Cutpoint λ is ɛ-isolated if j N 0 : πa j η λ ɛ. Determinism versus probabilism 3

Previous Results Given a PFA, what is the size of the equivalent minimal DFA? Fixed isolation for arbitrary alphabets: Exponential blow up. Fixed isolation for unary alphabet: Exponential blow up for the initial path. (Freivalds, 1982) Arbitrarily small isolation for unary alphabet: Blow up Θ(e n ln n ) for the cycle. (Milani and Pighizzini, 2000) Determinism versus probabilism 4

A tight polynomial bound for the period a) For any unary PFA M with n states and ɛ-isolated cutpoint λ period(l(m, λ)) n 1 2ɛ. Polynomial relationship for fixed ɛ. b) Result is almost tight: For any α < 1 and any ɛ there is a PFA M with n states and ɛ-isolated cutpoint λ, such that period(l(m, λ)) > n α 1 2ɛ. Determinism versus probabilism 5

Finite Markov Chain Strong components with no outgoing arc are ergodic components. Ergodic component B i : d i = period of B i. r i = absorption probability = prob[b i is eventually reached]. Determinism versus probabilism 6

Behaviour of a Markov Chain in the Long Run For a PFA with individual ergodic periods d 1, d 2,..., d k let D := lcm {d 1, d 2,..., d k }. Size of the PFA d i. For large m : πa m η πa m+d η. period(l) divides D. Do we need ALL the prime powers dividing D? Determinism versus probabilism 7

How to leap over the gap? λ + ɛ λ λ ɛ An ergodic component can provide at most its absorption probability. Ergodic components can add up their absorption probabilities, if they accept and reject in a synchronized manner : periods have common divisors. Determinism versus probabilism 8

Leaping Strength of a Prime Power Ergodic component B i : d i = period of B i. r i = absorption probability of B i. For a prime power q = p α leap(q) = i:q divides d i r i is the leaping strength of q. Determinism versus probabilism 9

Proof Sketch: Only Prime Powers with High Leaping Strength Count Call a prime power q weak if leap(q) < 2ɛ. Crucial Step 1: A weak prime power cannot divide period(l). Hence period(l) divides D := lcm {q leap(q) 2ɛ}. Determinism versus probabilism 10

Proof Sketch: D = lcm {q leap(q) 2ɛ} and the Number of States Crucial Step 2: If q is not weak: q 2ɛ q leap(q) = q Consequence: D 2ɛ d r i i. Conclusion: i:q divides d i r i. n d i r i d i d r i i D 2ɛ period(l) 2ɛ. period(l) n 1 2ɛ Determinism versus probabilism 11

Computing Minimal NFA s, Previous Results For a regular language L let nsize(l) be the size of a minimal NFA accepting L. L is specified by a DFA (or NFA): Determining nsize(l) is P SP ACE-hard. L is specified by a unary NFA: Determining nsize(l) is N P -hard. L is specified by a unary cyclic DFA: Determining nsize(l) efficiently implies NP DT IME(n O(log n) ). How hard is approximation? Approximating minimal NFA s 12

Approximating Minimal NFA s Given a unary cyclic DFA accepting L with n states, an NFA for L with at most nsize(l) (1 + ln n) can be efficiently constructed. This ( result implies an approximation with factor O(ln n) or nsize(l) ) O ln nsize(l). Shown by reduction to a set cover problem, easy to approximate within ratio O(ln n). Given a unary NFA N with s states, it is impossible to efficiently approximate nsize(l(n)) within a factor of s ln s unless P = NP. Moreover, every approximation algorithm with approximation factor bounded by a function with nsize(l) as its only argument solves an NP-hard problem. Approximating minimal NFA s 13

NP Hardness of the Universe Problem for NFA s Result of Stockmeyer and Meyer (1973): For a given unary NFA N, it is NP -hard to decide, if L(N) a. Given an instance Φ of the 3SAT problem, construct a unary NFA N Φ that accepts a, iff Φ is not satisfiable. We put this into an approximation framework: Reduction is gap producing! Φ 3SAT L := L(N Φ ) = a and thus nsize(l) = 1. Φ 3SAT nsize(l) = Ω(n 2 ln n) for Φ defined over n variables. Approximating minimal NFA s 14

Conclusions Approximating minimal NFA s: NP -hard to approximate within s ln s if the language is represented by an s-state unary NFA. Factor (1 + ln n) is possible if the language is represented by an n-state unary cyclic DFA. Determinism versus probabilism with fixed isolation: Short-term behaviour (length of the initial path) with exponential blow up, but long-term behaviour (length of the cycle) with only polynomial blow up. 15