907 views
0 votes
0 votes
WHICH OF THE FOLLOWING IS NOT A VALID DESCRIPTION OF THE INPUT ALPHABET SET?

ANSWER IS GIVEN AS {01,110,NULL}

WITH A EXPLAINATION THAT ALPHABET CANNOT CONTAIN NULL .

NOW I HAVE A QUESTIONN REGARDING THAT {0,1,01 } IS NOT ALPHABET WHY ?

AND {01,10} IS ALPHABET WHY ??

PLEASE GIVE REASON ? AS I KNOW FOR {0,1,01} IS WHEN WE WRITE 01  WE CANT DIFFERENTIATE IT IS FROMM 0 AND 1 OR 01?? RIGHT??

1 Answer

2 votes
2 votes
An alphabet is a finite collection of unique symbols and it does not contain null. So  {01,110,NULL} is not a valid alphabet.

 {0,1,01 } is not a valid alphabet as 01 is made up of the other 2 alphabets 0 and 1 i.e is a superset of the given symbols..

{01,10} is valid as both are distinct symbols.. had there been 0,1 in this alphabet set it would also have become invalid

No related questions found