If i have a sequence of bits. Say it is 010001011101. What is a sequence run?
I am trying to make a script that will check Golomb and this has to do with one of the three tests.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityIf i have a sequence of bits. Say it is 010001011101. What is a sequence run?
I am trying to make a script that will check Golomb and this has to do with one of the three tests.
A run of a sequence $(a_1, a_2, \ldots, a_n)$ is a maximal subsequence consisting of a single character repeated. That is, a subsequence $(a_i, a_{i+1}, \ldots, a_j)$ (with $i \leqslant j$) is a run if and only if the following three conditions are satisfied:
For example, the sequence $$\huge \color{Magenta}{0} \color{cyan}{1} \color{Red}{000} \color{Black}{1} \color{DarkOrange}{0} \color{DarkGreen}{111} \color{maroon}{0} \color{Blue}{1}$$ has eight runs as the color coding shows.