ContextSensitive Languages and LinearBounded Automata - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

ContextSensitive Languages and LinearBounded Automata

Description:

Context-Sensitive Languages and Linear-Bounded Automata. Another Intermediate ... Upon encountering l, either M halts or M's read/write head must move to right ... – PowerPoint PPT presentation

Number of Views:152
Avg rating:3.0/5.0
Slides: 15
Provided by: rgregor
Category:

less

Transcript and Presenter's Notes

Title: ContextSensitive Languages and LinearBounded Automata


1
Context-Sensitive Languages and Linear-Bounded
Automata
  • Another Intermediate-Strength Model of Computation

2
Context-Sensitive Grammars
  • Language anbncnn gt 0 not context-free
  • Application of Pumping Lemma for Context-Free
    Grammars
  • Generative grammars exist that generate L
  • Example 9.8.3

3
Example 11.1.1
4
Context-Sensitivity
  • Context-sensitive production any production a b
    satisfying a ? b.
  • Context-sensitive grammar any generative grammar
    G ?S, G, ?, s? such that every production in ?
    context-sensitive.
  • No empty productions.

5
Context-Sensitive Language
  • Language L context-sensitive if there exists
    context-sensitive grammar G such that either L
    L(G) or L L(G) ? e.

6
Context-Free and Context-Sensitive Languages
  • Any context-free language context-sensitive
    despite fact that there exist context-free
    grammars that are not context-sensitive grammars.
  • A bit of engineering.

7
Generates aibjcidji, j ? 1
8
Generates aibjck1 ? i ? j ? k
9
Linear-Bounded Automaton
  • Special sort of nondeterministic, single-tape
    Turing machine
  • Language acceptor only
  • Left endmarker l and right endmarker r flanking
    input
  • Multiple tapes possible (also with l and r in
    same positions)

10
Summary of Formal Definition
  • Upon encountering l, either M halts or Ms
    read/write head must move to right
  • Upon encountering r, either M halts or Ms
    read/write head must move to the left.
  • M nevers writes either l or r.
  • l and r can never be moved.
  • Mark bounds of memory.

11
Word Acceptance
  • Input tape contains w immediately preceded by l
    and immediately followed by r and otherwise
    blank.
  • M (is able to) halt scanning symbol 1 on a tape
    that contains string l1Bw-1r and that is blank
    otherwise.
  • Input w ? a special case.

12
LBA-Acceptable Language
  • LBA M accepts language L if M accepts all and
    only words of L.
  • L is LBA-acceptable if there exists LBA that
    accepts it.

13
Powerful Model of Computation
  • N. Savoius Deus ex machina (software simulation)
  • Example 11.3.1 accepts anbncnn ? 1.
  • Example 11.3.2 accepts aii prime
  • Example 11.3.3 accepts ai2i ? 0

14
Context-Sensitive Languages and Linear-Bounded
Automata Related
  • L is context-sensitive language if and only if L
    is LBA-acceptable.
  • Tool (equivalent) variant notion whereby M
    accepts by terminal state
Write a Comment
User Comments (0)
About PowerShow.com