GATE CS 2018 · Question 62 · Theory of Computation · Numerical answer (NAT) · 2 marks · no negative marks

Given a language L, define Lⁱ as follows:
L⁰ = {ε}Lⁱ = Lⁱ⁻¹ · L for all i > 0
The order of a language L is defined as the smallest k such that Lᵏ = Lᵏ⁺¹.
Consider the language L₁ (over alphabet 0) accepted by the following automaton.
The order of L₁ is ______.

Finite automaton over alphabet {0} with three states drawn left to right. The leftmost state has an incoming start arrow and is drawn as a double circle (accepting). An edge labelled 0 goes from the start state to the middle state, which is also a double circle (accepting). From the middle state, an upper curved edge labelled 0 goes to the rightmost state, which is a single circle (non-accepting). A lower curved edge labelled 0 goes from the rightmost state back to the middle state. There are no other transitions.
Answer

Answer 2

Answer from the official GATE CS 2018 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes