5. (6 marks) Let S be the set of all binary strings of length 6. Consider the relation ρ on the set S in which for all a,b ∈ S, (a,b) ∈ ρ if and only if the length of a longest substring of consecutive ones in a is the same as the length of a longest substring of consecutive ones in b. (a) Is 011010 related to 000011? Explain why or why not. (b) Prove that ρ is an...
2. 9 marks] Strings. Consider the following definitions on strings Let U be the set of all strings Let s be a string. The length or size of a string, denoted Is, is the number of characters in s Let s be a string, and i e N such that 0 < ί < sl. We write s[i] to represent the character of s at index i, where indexing starts at 0 (so s 0] is the first character, and...