2

how can it be that the rule "Aa -> aA" is context-sensitive? According to the definition, context-sensitive rules have to be like this form:

αAβ → αγβ 

where

A ∈ N, α,β ∈ (N∪Σ)* and γ ∈ (N∪Σ)+ 

Thanks.

1 Answer 1

1

It depends on what you mean. If you scroll down the Wikipedia entry, you can see that, formally,

cB → Bc

does not fit the scheme, but it can be simulated by 4 rules that do fit it:

  1. c B → W B
  2. W B → W X
  3. W X → B X
  4. B X → B c

So Aa → aA is not a CSG rule in itself, but the langue it generates is. Perhaps whoever told you it is, was using it as a shorthand (you could expand the definition of CSG rules to include these types of things as "macros").

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.