0 votes 0 votes Assume, L is regular language. Let statements S1 and S2 be defined as : S1 : SQRT(L) = { x| for some y with |y| = |x|2, xy ∈L}. S2 : LOG(L) = { x| for some y with |y| = 2|x|, xy ∈ L}. Which of the following is true ? (A) S1 is correct and S2 is not correct. (B) Both S1 and S2 are correct. (C) Both S1 and S2 are not correct. (D) S1 is not correct and S2 is correct. Sanjay Sharma asked Apr 19, 2016 Sanjay Sharma 1.7k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes Both are correct. MAX, MIN, ROOT, HALF, CYCLE, LOG Regular languages are closed under these operations. Digvijay Pandey answered Apr 19, 2016 • selected Apr 19, 2016 by Praveen Saini Digvijay Pandey comment Share Follow See all 3 Comments See all 3 3 Comments reply srestha commented Apr 19, 2016 reply Follow Share I think log definition is incorrect |y| = 2|x| 0 votes 0 votes Praveen Saini commented Apr 19, 2016 reply Follow Share @srestha in $S_1$ : $|y|= |x|^2$ and in $S_2$ : $|y|= 2^{|x|}$ 1 votes 1 votes craft commented Apr 27, 2016 reply Follow Share Could you prove that regular expressions are closed over all those operations? 0 votes 0 votes Please log in or register to add a comment.