Can someone help me write an MSO formula to capture this.
The words in the language are formed using 0s and 1s . At every position, number of 1s in the prefix is greater than or equal to the number of 0s . For Example, 1100 is a valid word but 1001 is not.
I also need to encode the fact that the string has equal number of 1s and 0s.
The words in the language are formed using 0s and 1s . At every position, number of 1s in the prefix is greater than or equal to the number of 0s . For Example, 1100 is a valid word but 1001 is not.
I also need to encode the fact that the string has equal number of 1s and 0s.