characterizations of bounded semilinear languages by one-way and two-way deterministic machines

26
Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines Oscar H. Ibarra 1 and Shinnosuke Seki 2 1. Department of Computer Science, University of California, Santa Barbara, USA 2. Department of Systems Biosciences for Drug Discovery, Kyoto University, Japan

Upload: cicero

Post on 22-Feb-2016

16 views

Category:

Documents


0 download

DESCRIPTION

Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines. Oscar H. Ibarra 1 and Shinnosuke Seki 2 Department of Computer Science, University of California, Santa Barbara, USA Department of Systems Biosciences for Drug Discovery, Kyoto University, Japan. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Characterizations of Bounded Semilinear Languages by One-way and Two-way

Deterministic Machines

Oscar H. Ibarra1 and Shinnosuke Seki2

1. Department of Computer Science, University of California, Santa Barbara, USA2. Department of Systems Biosciences for Drug Discovery, Kyoto University, Japan

Page 2: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Conceptual diagram of a counter machine

2011/8/18Automata and Formal Languages (AFL 2011)

2

finite state control

a binput tape

p

c1 c2 ck

can be tested for zero

counters…

Page 3: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Conceptual diagram of a counter machine

2011/8/18Automata and Formal Languages (AFL 2011)

3

finite state control

a binput tape

p

c1 c2 ck

can be tested for zero

counters

𝛿 (𝑝 ,𝑎 ,1 ,1 ,…,0 )=(𝑞 ,𝑅 ,0 ,−1 ,…,+1)

q

Page 4: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Variants of counter machine

2011/8/18Automata and Formal Languages (AFL 2011)

4

finite state control

a binput tape

p

c1 c2 ck

counters…

• Pushdown counter machines• 2-way counter machines

𝛼

𝛼𝛽

stackend markers

Page 5: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Formal definition of pushdown counter machines

2011/8/18Automata and Formal Languages (AFL 2011)

5

For a pushdown -counter machine is a 7-tuple , where a finite set of statesinput and stack alphabetsthe bottom stack symbolthe initial statea set of accepting states

and is a relation

Page 6: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Reversal-bounded counter machines

2011/8/18Automata and Formal Languages (AFL 2011)

6

For a positive integer , a counter machine is -reversal if for each of its counters, the number of alternations between non-decreasing mode and non-increasing mode – called reversal – is upper-bounded by in any computation.

Definition [Baker and Book 1974, Ibarra 1978]For a positive integer , a counter machine is -reversal if for each of its counters, the number of alternations between non-decreasing mode and non-increasing mode – called reversal – is upper-bounded by in any accepting computation.

Definition (Equivalent*)

A finite automaton augmented with 2 counters is Turing-complete. [Minsky 1961]

* This equivalence needs a help of finite state control to remember how many reversals each counter has made.

Page 7: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

-reversal counter and 1-reversal counter

2011/8/18Automata and Formal Languages (AFL 2011)

7

One can simulate a counter that makes -reversals by counters that make reversal.

This lemma enables us to focus on the -reversal counter machines.

For any positive integer , an -reversal counter can be simulated by -reversal counters.

Lemma

Page 8: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Classes of counter machines

2011/8/18Automata and Formal Languages (AFL 2011)

8

• the class of deterministic -counters machinesDCM (𝑘)

• The class of (non-deterministic) -counters machinesNCM (𝑘)

• The class of deterministic pushdown -counters machinesDPCM (𝑘)

• The class of pushdown -counters machinesNPCM (𝑘)

• The class of 2-way deterministic -counters machines2DCM (𝑘)

For a machine class , by , we denote the set of all languages accepted by a machine in .

Page 9: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Classes of counter machines (cont.)

2011/8/18Automata and Formal Languages (AFL 2011)

9

is the class of deterministic counter machines.

Note that .

Page 10: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Semilinear sets

2011/8/18Automata and Formal Languages (AFL 2011)

10

A subset is a linear set if there exist -dimensional integer vectors such that

A set is semilinear if it is a finite union of linear sets.

Page 11: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Bounded semilinear languages

2011/8/18Automata and Formal Languages (AFL 2011)

11

A language is bounded if there exist and such that .

If are letters, is especially said to be letter-bounded.

For a bounded language , let

.

If this set is semilinear, then we say that is bounded semilinear.

Definition

Page 12: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Finite-turn machines

2011/8/18Automata and Formal Languages (AFL 2011)

12

For an integer , a 2-way machine is -turn if the machine can accept an input with at most “turns” of the input head. A 2-way machine is finite-turn if it is a -turn for some .

Finite-turn

For an integer , a 2-way machine is -crossing if every accepted input admits a computation by the machine during which the input head crosses the boundary between any two adjacent symbols no more than times. A 2-way machine is finite-crossing if it is a -turn for some .

Finite-crossing

Finite-turn Finite-crossing

Page 13: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Main theorem

2011/8/18Automata and Formal Languages (AFL 2011)

13

The following 5 statements are equivalent for every bounded language :1. is bounded semilinear; 2. can be accepted by a finite-crossing ; 3. can be accepted by a finite-turn whose stack is

reversal-bounded; 4. can be accepted by a finite-turn ; 5. can be accepted by a .

Main Theorem

Page 14: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Main theorem

2011/8/18Automata and Formal Languages (AFL 2011)

14

The following 5 statements are equivalent for every bounded language :1. is bounded semilinear; 2. can be accepted by a finite-crossing ; 3. can be accepted by a finite-turn whose stack is reversal-bounded; 4. can be accepted by a finite-turn ; 5. can be accepted by a .

Main Theorem

and trivially hold since • , and • Let us prove 1

2 5

3 4

Page 15: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Proof direction for

2011/8/18Automata and Formal Languages (AFL 2011)

15

LanguageAccepted by

is semilinear is semilinear

result 1[Ibarra 78]

Use result 1 and non-deterministic guess.

orLinear Diophantine-

equations turn out to be solvable by these

machines

Page 16: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Letter-bounded to bounded

2011/8/18Automata and Formal Languages (AFL 2011)

16

Let s.t. is semilinear. Given a word ,

.

Let , and construct a for it.

for 1. reads ; 2. non-deterministically decomposes it as ; 3. runs on , and returns ’s decision as its decision for and .

Page 17: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Proof direction for

2011/8/18Automata and Formal Languages (AFL 2011)

17

LanguageAccepted by

is semilinear is semilinear

result 1[Ibarra 78]

Use result 1 and non-deterministic guess.

orLinear Diophantine-

equations turn out to be solvable by these

machines• How can a deterministic machine non-deterministic

decompose an input?• Our answer is “this decomposition does not require

non-determinism.”

Page 18: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Deterministic decomposition

2011/8/18Automata and Formal Languages (AFL 2011)

18

Let be a sufficiently-large constant. This is efficiently computable from a given language s.t. is

semilinear. Let .

Based on this theorem, we can figure out that looking-ahead by some constant distance on an input tape settles the decomposition.

Let be primitive words. If and share their prefix of length , then .

Theorem [Fine and Wilf 1965]

Page 19: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Main theorem

2011/8/18Automata and Formal Languages (AFL 2011)

19

The following 5 statements are equivalent for every bounded language :1. is bounded semilinear;

2. can be accepted by a finite-crossing ; 3. can be accepted by a finite-turn whose stack is

reversal-bounded; 4. can be accepted by a finite-turn ; 5. can be accepted by a .

Main Theorem

Page 20: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Proof for

2011/8/18Automata and Formal Languages (AFL 2011)

20

If a letter-bounded language is accepted by a finite-crossing , then it is accepted by a finite-crossing .

Lemma

Proof idea• In a computation by a finite-crossing 2DPDA,

contents of ’s stack consist of constant # of blocks of the form (pumped structure).

• Each of these blocks correspond to a writing phase during which the stack is never popped.

• # of “long” writing phases is bounded by a constant .

• We build a , and let its counters to store , and let its finite state control to remember 𝑢1𝑣1

𝑖1𝑤1

𝑢2𝑣2𝑖2𝑤2

𝑢3𝑣3𝑖 3𝑤3

stack

Page 21: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Proof for

2011/8/18Automata and Formal Languages (AFL 2011)

21

If a letter-bounded language is accepted by a finite-crossing , then it is accepted by a finite-crossing .

Lemma

The previous result is generalized for a broader class of finite-crossing .

Page 22: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Proof for

2011/8/18Automata and Formal Languages (AFL 2011)

22

A bounded language that is accepted by a finite-crossing is effectively semilinear.

Theorem

Proof. Let be a finite-crossing for some s.t. .

1. It is easy to construct a finite-crossing for . 2. This language is letter-bounded, and hence, this machine

can be converted into an equivalent finite-crossing . 3. It is known that if a letter-bounded language is accepted by

a finite-crossing , then the language is bounded semilinear. 4. Thus, is semilinear.

Page 23: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

Main theorem

2011/8/18Automata and Formal Languages (AFL 2011)

23

The following 5 statements are equivalent for every bounded language :1. is bounded semilinear; 2. can be accepted by a finite-crossing ; 3. can be accepted by a finite-turn whose stack is

reversal-bounded; 4. can be accepted by a finite-turn ; 5. can be accepted by a .

Main Theorem (Proved!!)

Is every bounded language accepted by a finite-crossing bounded semilinear.

Open

Page 24: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

AcknowledgementsThis research was supported by

• National Science Foundation Grant• Natural Sciences and Engineering Research Council of

Canada Discovery Grant and Canada Research Chair Award in Biocomputing to Lila Kari

• Funding Program for Next Generation World-Leading Researchers (NEXT Program) to Yasushi Okuno

2011/8/1824 Automata and Formal Languages (AFL 2011)

Page 25: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

References

2011/8/18Automata and Formal Languages (AFL 2011)

25

[Baker and Book 1974] B. S. Baker and R. V. Book. Reversal-bounded multipushdown machines. Journal of Computer and System Sciences 8: 315-332, 1974.

[Fine and Wilf 1965]N. J. Fine and H. S. Wilf. Uniqueness theorem for periodic functions. Proc. Of the American Mathematical Society 16: 109-114, 1965.

[Ibarra 1978]O. H. Ibarra. Reversal-bounded multicounter machines and their decision problems. Journal of the ACM 25: 116-133, 1978.

Page 26: Characterizations of Bounded Semilinear Languages by One-way and Two-way Deterministic Machines

References

2011/8/18Automata and Formal Languages (AFL 2011)

26

[Minsky 1961]M. L. Minsky. Recursive unsolvability of Post’s problem of “tag” and other topics in theory of turing machines. Annals of Mathematics 74: 437-455, 1961.