Turing machine for wcwᴿ

December 4, 2026 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CD-501 Theory of Computation November 2023 Solved Paper

Question

Design a Turing machine accepting L={wcwᴿ | w∈(0+1)} (notation as printed).

Asked in: CD-501 | November 2023 | 7(a)

Answer

Literally w∈(0+1) gives only 0c0 and 1c1. A finite-control TM can read the first bit, require c, match the stored bit and require blank. For the likely intended w∈{0,1}*, first check exactly one c. Repeatedly mark the leftmost unmarked bit before c, remember it in the state, scan to the rightmost unmarked bit after c, compare and mark it. Return left and repeat. Accept when both sides are exhausted, otherwise reject on mismatch or missing symbol. Each round removes a pair, so the machine halts.

← RGPV CD-501 Theory of Computation November 2023 Solved Paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion