3 3 votes Consider the following regular expression over the alphabet $\Sigma=\{a, b\}$ that represents a specific class of tokens in a new programming language:$$r=(a+b)^* a b b$$A lexical analyzer uses a Minimal Deterministic Finite Automaton (DFA) to recognize this pattern. If the DFA is constructed using the standard powerset construction from an NFA, how many states will the Minimal DFA contain? Compiler Design goclasses compiler goclasses-cs-dpp goclasses-cs-dpp-day-181 goclasses-compiler-practice-questions numerical-answers + – GO Classes 333 views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Aman Shukla commented Mar 28 reply Follow flag 3 0 0 replyShare One_Last_Hope commented Jun 13 reply Follow flag Actually u did silly mistake here question miss understanding he is try to make u dump don't fool here NFA to DFA using subset construction then how many states are required for not DFA it is MDFA then he is aksing normal minimal dfa for given regular expression that's it. 0 0 replyShare Please log in or register to add a comment.
1 1 vote Answer : 4 States Aman_Kumar 6 answered Apr 20 Aman_Kumar 6 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes For a pattern of length $n$ representing "ends with [string]", the minimal DFA requires $n+$ 1 states. Here $n=3(a b b)$, so $3+1=4$ states. GO Classes answered Jan 20 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.