next up previous
Next: Unit Productions Up: Simplification of CFG Previous: Useless Symbols

tex2html_wrap_inline502 -Productions: tex2html_wrap_inline368

Nullable Variables: tex2html_wrap_inline506
Algorithm to determine Nullable Variables
tex2html_wrap_inline508
Iteratively
if tex2html_wrap_inline510 , and all symbols in
tex2html_wrap_inline512 ,
then tex2html_wrap_inline514
e.g. tex2html_wrap_inline516
tex2html_wrap_inline518
tex2html_wrap_inline520
tex2html_wrap_inline522
tex2html_wrap_inline524
  1. tex2html_wrap_inline528
  2. tex2html_wrap_inline530 because tex2html_wrap_inline532
  3. tex2html_wrap_inline534 because tex2html_wrap_inline536

Removal of tex2html_wrap_inline502 -Productions
If tex2html_wrap_inline540 , then add all productions
tex2html_wrap_inline542 where
  1. if tex2html_wrap_inline546 is not nullable, then tex2html_wrap_inline548
  2. if tex2html_wrap_inline546 nullable, then tex2html_wrap_inline552 is either tex2html_wrap_inline546 or tex2html_wrap_inline502 .
  3. not all tex2html_wrap_inline558 are tex2html_wrap_inline502 .

e.g. P:
tex2html_wrap_inline565
Since tex2html_wrap_inline564 must be present.

P' :
tex2html_wrap_inline566

- If L(G) does not contain tex2html_wrap_inline502 , then G can be converted to equivalent G' without any tex2html_wrap_inline502 -produtions.



Sushil Prasad
Tue Jul 14 11:59:47 EDT 1998