2 votes 2 votes Identify weather the following language is regular? ∀m,n ∈ N 1)a^m b^n | LCM(m,n)=0 2)a^m b^n | LCM(m,n)=1 3)a^m b^n | LCM(m,n)<100 4)a^m b^n | GCD(m,n)=1 BharathiCH asked Aug 21, 2018 BharathiCH 727 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 4 votes 4 votes 2: LCM(M.N) =1 iff m=1,n=1 --> Regular 3: LCM(M,N)<100 for finite number of m & n , number of strings becomes finite -->Regular 4:GCD(M,N)=1 , their could be infinite combination of m & n which are relatively prime to each other -->Non Regular Shiv Gaur answered Aug 21, 2018 • selected Aug 21, 2018 by Shaik Masthan Shiv Gaur comment Share Follow See all 2 Comments See all 2 2 Comments reply MiNiPanda commented Aug 21, 2018 reply Follow Share LCM(M.N) =0 when m=0 or n= 0 or both m=n=0. So the language is {a+ ∪ b+ ∪ Epsilon}. This is union of regular language which is also regular. a+ is when n=0 i.e. 0 occurrences of b. b+ is when m=0 i.e. 0 occurrences of a. Epsilon when 0 occurrences of both. Is it correct? 0 votes 0 votes Shiv Gaur commented Aug 21, 2018 reply Follow Share In LCM we do not count 0 as a common multiple, if we count 0 as a common multiple the 0 would be the LCM of any m & n as m*0=0 and n*0=0 In context of TOC we could make an exception where definition of LCM would deviate from its mathematical definition when m=0 or n= 0 or both m=n=0 .............which would give the answer as REGULAR LANGUAGE 2 votes 2 votes Please log in or register to add a comment.