TOC Tut
TOC Tut
From <https://classroom.google.com/u/1/c/NDU1ODQ4NjY2Nzk5/m/NDU3NjExNTY5MTM1/details>
2. Formally define the #(a,s) operation where a is a symbol, s is a string and the operation returns
the number of occurrences of a in s.
From <https://classroom.google.com/u/1/c/NDU1ODQ4NjY2Nzk5/m/NDU3NjExNTY5MTM1/details>
If b != a, ans = #(a,y)
4. Define a languge L such that complement of L is { w : w contains neither the substrings ab nor ba }.
From <https://classroom.google.com/u/1/c/NDU1ODQ4NjY2Nzk5/m/NDU3NjExNTY5MTM1/details>
Sol ->
From <https://classroom.google.com/u/1/c/NDU1ODQ4NjY2Nzk5/m/NDU3NjExNTY5MTM1/details>
C -> A'
D -> B'
From <https://classroom.google.com/u/1/c/NDU1ODQ4NjY2Nzk5/m/NDU3NjExNTY5MTM1/details>