Example 4.1.6. This example illustrates the elimination of useless symbols using the algorithms from the proofs ofTheorems 4.1.2 and 4.1.3.
S _ bb | aB
A _ a | Aa
B _ bB | Ba | AB
C _ ba | aA | Bb | aCb.
First V0 = {S, A, C} = V1 = V' so B is dead and all redproductions can be removed.
Then R0 = {S}, R1 = {S, b} = R2 so a, A, and C are unreachable and all violet productions can be removed.
Previous slide | Next slide | Back to first slide | View graphic version |