You may make a copy of a worksheet and complete this activity, or type your answers in any text editor.
You may work alone or with at most two other students in this course.
A ::= MO | MB | MOB M ::= "1" | "2" | "3" | "4" O ::= "e" | "a" | "t" B ::= "h" | "u" | "n" | "g" | "r" | "y" | "w"
4
14
A ::= MO, there are 4 * 3 = 12 possible strings A ::= MB, there are 4 * 7 = 28 possible strings A ::= MOB , there are 4 * 3 * 7 = 84 possible strings 124 possible valid strings, including: 1an (MOB), 2t (MO)
Dozens for each string
Here are some possible valid mutants:
For 1an — 2an (terminal symbol replacement), 1a (nonterminal symbol deletion)
For 2t — 2n (nonterminal symbol replacement), 2tw (nonterminal symbol insertion)
Thousands for each string
Here are some possible invalid mutants:
For 1an — 1at (MOB, terminal symbol replacement), ran (BOB, nonterminal symbol replacement)
For 2t — 2te (MOO, nonterminal symbol insertion), 2 (M, nonterminal symbol deletion)
CC-BY-NC-SA 4.0 license.