• retagged by
4,892 views
3 3 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

2 Answers

4 4 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 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:
Position:
Show:

Related questions

11 11 votes
5 answers 5 answers
11.1k
11.1k views
Satbir asked Jan 13, 2020
11,111 views
Minimum number of states required in DFA accepting binary strings not ending in $\text{“101”}$ is$3$$4$$5$$6$
4 4 votes
4 4 answers
3.7k
3.7k views
Satbir asked Jan 13, 2020
3,659 views
The language which is generated by the grammar $S \rightarrow aSa \mid bSb \mid a \mid b$ over the alphabet of $\{a,b\}$ is the set ofStrings that begin and end with the ...
7 7 votes
3 3 answers
7.3k
7.3k views
Satbir asked Jan 13, 2020
7,282 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...
4 4 votes
2 2 answers
4.3k
4.3k views
Satbir asked Jan 13, 2020
4,347 views
For the distributions given below:Which of the following is correct for the above distributions?Standard deviation of $A$ is significantly lower than standard deviation o...