Site icon

Context Sensitive Grammar and Linear Bounded Automata

Context Sensitive Grammar Under TOC

A context sensitive grammar (CSG) is a grammar where all productions are of the form αAβ → αγβ where γ ≠ ε.

During derivation non-terminal A will be changed to γ only when it is present in the context of α  and β. 

*Note the constraint that the replacement string γ ≠ ε ; as a consequence we have α ⇒ β implies |α| ≤ |β|

CSG is a Noncontracting grammar.

Formal Definition of Context Sensitive Grammar

A context sensitive grammar G = ( N, Σ, P, S), where

The production S → ε is also allowed if S is the start symbol and it does not appear on the right side of any production.

Linear Bounded Automata

Linear Bounded Automata (LBA) is a single tape Turing Machine with two special tape symbols call them left marker < and the right marker >.

The transitions should satisfy these conditions:

Thus the initial configuration will be : < q0a1a2a3a4a5…..an >

Real Also Definition of Pushdown Automata

Formal Definition

Formally Linear Bounded Automata is a non-deterministic Turing Machine , M = ( Q, Σ, Γ, δ, ε, q0, <, >, t, r)

Exit mobile version