This was given as a challenge problem during one of my lectures
Given any alphabet $\Sigma$, the language $L$ over $\Sigma^*$ described by $\{x: \text{any symbol of }x\text{ differs from the previous symbol}\}$ is regular.
How do I prove that this is true or false? The way I thought about it was that x could be any "symbol" and therefore the language could contain an infinite number of some "symbols", and since it is infinite it is therefore not regular, is this correct?
Can you think about a DFA accepting this language? Hint: there are only finitely many subsets $A$ of the alphabet $\Sigma$, try to use these as states in a machine for the symbols we have already "seen".