In: Computer Science
Prove whether the following are regular (include the file) or not regular (attach a proof). The alphabet is {0, 1}.
1. The set of strings that start with N 0's which are directly followed by 2N 1's.
2. The set of strings start with two 0's, followed by N 1's, followed by N 1's and end with three 0's.
3. The set of strings where every substring of length 5 has more 0's than 1's. Strings less than length five are not included in the set.
4. The set of strings that start with N 1's, followed by a 0, followed by N 1's.