Transfer test of Word Ladder with $|\Sigma| = 4$ nucleotides ({'A','C','G','T'}) and fixed length 8. Mutate characters, validate against gene bank, and remove from bank upon queue insertion to guarantee $O(1)$ cycle avoidance.
bankSet prevents revisiting nodes and guarantees minimal mutation count on first arrival.
"This is Word Ladder (LC 127) with a smaller alphabet: $|\Sigma| = 4$ for nucleotides ('A','C','G','T') and fixed length $L = 8$."
"Instead of a separate visited hash set, we remove matching genes directly from bankSet upon enqueuing: bankSet.remove(next)."
"Word Ladder counts vertices in sequence ($steps + 1$). Genetic Mutation counts transition moves ($steps$), returning 0 if start equals end."
"Each gene generates $8 \times 3 = 24$ mutations. With bank size $B \le 10$, BFS visits at most $B$ nodes in $O(B)$ time — near instantaneous."