Computer Sciences > GATE 2025 SET-1 > Regular Languages
Consider the following two languages over the alphabet {a, b}:
L1={αβα|α∈{a,b}+ AND β∈{a,b}+}
L2={αβα|α∈{a}+ AND β∈{a,b}+}
Which ONE of the following statements is CORRECT?
A
Both L1 and L2 are regular languages.
B
L1 is a regular language but L2 is not a regular language.
C
L1 is not a regular language but L2 is a regular language.
D
Neither L1 nor L2 is a regular language.

Explanation

Correct : c

Similar Questions

What is the worst-case time complexity of insertion in an AVL tree?
Question #23 Medium
Which operations on a binary search tree have O(h) complexity?
Question #31 Easy
Compare search complexities of sorted array vs balanced BST.
Question #47 Hard

Related Topics

Data Structures Binary Search Tree Time Complexity Algorithm Analysis Tree Algorithms Computer Science