retagged by
2,379 views
1 votes
1 votes

Which of the following classes of languages can validate an $\text{IPv4}$ address in dotted decimal format? It is to be ensured that the decimal values lie between $0$ and $255$.

  1. RE and higher
  2. CFG and higher
  3. CSG and higher
  4. Recursively enumerable language
retagged by

2 Answers

2 votes
2 votes
Answer: a) RE and higher.

To validate IPV4 in dotted decimal format the values should be between 0-255. We can draw a DFA for it since the values are finite.

For other options if we select them then it means we cannot do it using RE which is false. Thus best option is a).
0 votes
0 votes
the dotted decimal values are from 0 to 255 whicn\h means finite . so we can draw DFA which conforms to Regular Language .Also higher languages CFG,CSG,REC will validate IPV4 address on dotted decimal.
Answer:

Related questions

7 votes
7 votes
5 answers
1
Satbir asked Jan 13, 2020
7,115 views
Minimum number of states required in DFA accepting binary strings not ending in $\text{“101”}$ is$3$$4$$5$$6$
2 votes
2 votes
4 answers
2
6 votes
6 votes
3 answers
3
Satbir asked Jan 13, 2020
3,941 views
The following circuit compares two $2$-bit binary numbers, $X$ and $Y$ represented by $X_1X_0$ and $Y_1Y_0$ respectively. ($X_0$ and $Y_0$ represent Least Significant Bit...