7 votes 7 votes Which of the following languages is/are regular? (Mark all the appropriate choices) $L = \{xww_R \mid w,x \in ({a+b})^+\}$ $L = \{xww \mid w,x \in ({a+b})^*\}$ $L = \{xwyw \mid w,x,y \in ({a+b})^+\}$$L = \{wxw_R\mid w,x \in ({a+b})^+\}$ Theory of Computation go2025-toc-1 identify-class-language multiple-selects + – gatecse asked Sep 29, 2020 gatecse 517 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply diptanshu malviya commented Nov 4, 2023 reply Follow Share For Option C:formal languages - Is $L = \{xwyw^r \mid x,w,y \in (a+b)^+ \}$ regular? - Mathematics Stack Exchange 0 votes 0 votes Omi Kakadiya commented Jan 3 reply Follow Share option A was gem 💎 0 votes 0 votes Please log in or register to add a comment.
Best answer 4 votes 4 votes A - non determinism required to guess the start of $w$ as it cannot be empty string. $L$ is NCFL. B - $x$ can include all strings in $\Sigma^*$ when $w = \epsilon.$ So, $L$ reduces to $(a+b)^*$ which is regular. C - this is all strings of length at least $4$ over $\{a,b\}$ where the last letter repeats in between the second and third last. Regular D - this is all $3$ length strings over $\{a,b\}$ starting and ending with same letter. Regular. So, correct answer: B;C;D Reference: https://gatecse.in/identify-the-class-of-a-given-language gatecse answered Sep 29, 2020 • selected Sep 26, 2021 by Arjun gatecse comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments gatecse commented Dec 11, 2022 reply Follow Share What about the string aabba then? 1 votes 1 votes Sunnidhya Roy commented Dec 12, 2022 reply Follow Share okay Sir, got my mistake. 0 votes 0 votes Sanidhya Dakhera commented Sep 26, 2023 reply Follow Share @gatecse sir, In option A can’t we just check the last 2 letters in the string and consider the rest all as a part of x? That will leave us with just matching the second last and last character, making it regular. 0 votes 0 votes Please log in or register to add a comment.