0 votes 0 votes The value of a regular expression r over ∑, denoted by Val(r), is defined as follows : 1. Val (Ø) = 0 2. Val (ε) = 0 3. Val (a) = 0 for every a ε ∑ 4. Val ((r. s)) = Val ((r + s)) = max(Val (r), Val (s)) 5. Val ((r*)) = Val (r) + 1 Find the value of regular expression (a (a + a*a a)) (1) 3 (2) 2 (3) 1 (4) 0 How max function working here? Theory of Computation finite-automata + – srestha asked Apr 11, 2019 srestha 275 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes $Val(a(a+a^*aa))=max(val(a),val(a+a^*aa))$ $=max(0, val(a+a^*aa))$ $=max(val(a),val(a^* aa))$ $=max(0, val(a^*aa))$ $=max(0,max(val(a^*),val(aa)))$ $=max(val(a^*),0)\;\;$ ($ \because val(aa)=max(val(a),val(a))=max(0,0)=0$ $=max((val(a)+1),0)$ $=1$ Verma Ashish answered Apr 11, 2019 • selected Apr 11, 2019 by srestha Verma Ashish comment Share Follow See all 0 reply Please log in or register to add a comment.