I am trying to construct this problem:
A fair coin is tossed until two heads appear in a row. What is the expected number of coin tosses? Design a DFA for the language L+ {w|w has 11 as a substring}
Use this DFA as a Markov chain to calculate the required probability. (Specifically for each state q,let P(q) be the probability of reaching the accepting state, if q is the start state.)
I'm having trouble designing the DFA and need some help.