Looking for answers? Westonci.ca is your go-to Q&A platform, offering quick, trustworthy responses from a community of experts. Discover in-depth solutions to your questions from a wide range of experts on our user-friendly Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

i. For the alphabet Σ = {a, b, c}, construct a DFA for the language { w ∈ Σ* | w contains exactly two cs. }
ii. For the alphabet Σ = {a, b}, construct a DFA for the language { w ∈ Σ* | w contains the same number of instances of the substring ab and the substring ba }. Note that substrings are allowed to overlap, so aba ∈ L and babab ∈ L.
iii. For the alphabet Σ = {a, b, c, ..., z}, construct a DFA for the language { w ∈ Σ* | w contains the word “cocoa” as a substring }.