⟨ TURING.MACHINE ⟩
🏅 Palindrome 🏅 Binary+1 🏅 aⁿbⁿ
SIMULATOR
PROGRAM
CHALLENGES
INPUT:
TAPE
STEP: 0
STATE: q0
5
STATE DIAGRAM
TRANSITION LOG
TRANSITION FUNCTION δ(state, symbol) → (new_state, write_symbol, direction)
STATEREADWRITEMOVENEXT STATE
CHALLENGES — EARN BADGES
🎯 PALINDROME RECOGNIZER
Build a TM that accepts strings which read the same forwards and backwards (e.g. "abba", "aba"). Try with input: abba
🎯 aⁿbⁿ RECOGNIZER
Accept strings with equal numbers of a's followed by equal b's: ab, aabb, aaabbb. Requires careful state design!
🎯 BINARY INCREMENT
Add 1 to a binary number written on the tape. e.g. 1011 → 1100. Handle carry propagation!