1.

What Is The Difference Between Semiword And Word Please Also Give An Example Regarding This?

Answer»

Word: A word is COMPLETE combinations of terminals only e.g. abba or AB or a or NULL string.

Semiword: A semiword is a string of terminals (may be none) concatenated with exactly ONE nonterminal on the right i.e. a semi word, in general, is of the following form (terminal)(terminal) ——- (terminal)(nonterminal)

For EXAMPLE

aaaaaaB , aabbaaaA , A.

Word: A word is complete combinations of terminals only e.g. abba or ab or a or null string.

Semiword: A semiword is a string of terminals (may be none) concatenated with exactly one nonterminal on the right i.e. a semi word, in general, is of the following form (terminal)(terminal) ——- (terminal)(nonterminal)

For example

aaaaaaB , aabbaaaA , A.



Discussion

No Comment Found