GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 89

Decidability of an enumeration-order language

Theory of Computation · Decidability & Computability · Full GATE CSE 2004 paper

GATE 2004, Q89 2 marks · MCQ
Report issue

Decidability & Computability

Question 89, GATE 2004: L1 is recursively enumerable over Σ. Algorithm A enumerates its words as w1,w2,w3,… . Let #∉Σ and L2={wi#wj:wi,wj∈L1 and i<j}. Consider S1: if L1 is recursive then L2 is recursive; S2: if L2 is recursive then L1 is recursive. Which is true? The reproduction does not state whether enumeration can repeat words; keep that distinction explicit.
Options:
(A) Both S1 and S2
(B) S1, but S2 need not be true
(C) S2, but S1 need not be true
(D) Neither need be true
Tap to enlarge
Your answer
Answer & solution

Answer: None (no official key was published)

1. Under repetition-free enumeration, both S1 and S2 hold (A). For S1, first decide membership of both components in recursive L1; if either is absent reject, otherwise run A until both appear and compare their unique indices.

2. For S2, if L1 is empty it is recursive. Otherwise fix its first enumerated word w1.

3. Decide whether x is in L1 by accepting x=w1 and otherwise asking the L2 decider whether w1#x belongs. Every other word appears later, so this is correct.

4. The S2 argument also survives repetitions. However, if arbitrary repetitions are permitted, S1 can fail: let recursive L1 consist of all distinct tags ae and be.

5. Enumerate each be before its ae, and repeat be after ae exactly if machine e halts, using dovetailing. Then ae#be belongs to L2 exactly for halting machines, making L2 nonrecursive despite recursive L1.

6. Thus with repetitions allowed only S2 is necessarily true (C). No unconditional option is assigned without fixing the enumeration convention.

7. Teaching check: The relation depends on enumeration positions, not a lexicographic order on words. If words repeat, one pair may have witnesses in both directions. That is why a proof using unique indices needs an explicit repetition-free convention instead of being applied automatically.

Original paper, page 12