Skip to content
GATEiit

GATE CSE 2018 Q62: Order of a unary language accepted by a three-state automaton

Syllabus topic: Regular expressions and finite automata

Question

Given a language L, define Li as follows:

L0={ε}

Li=Li−1⋅Lfor all i>0

The order of a language L is defined as the smallest k such that Lk=Lk+1.

Consider the language L1 (over alphabet 0) accepted by the following automaton.

Finite automaton with three states in a row. The first state is the start state (incoming arrow) and is accepting (double circle). It goes on 0 to the second state, which is also accepting. The second state goes on 0 to the third state, which is not accepting, and the third state goes on 0 back to the second state.
Tap the figure to enlarge

The order of L1 is _____.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 2 (official GATE 2018 final answer key)

Concept used: Powers of a language grow until they stabilise; since ε∈L1, L1k⊆L1k+1, and the order is where the chain stops growing.

Concept notes

Loading notes…

First step: Read off L1 from the automaton (it is ε plus strings with an odd number of 0s), then compute L11, L12, L13 and see when they become equal.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Regular expressions and finite automata

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2018 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key