A sequence of geometric random variables of length n is a sequence of n independent and identically distributed geometric random variables (Γ1, Γ2, . . . , Γn) where P(Γj = i) = pq i−1 for 1 ≤ j ≤ n with p + q = 1. We study the number of distinct adjacent two letter patterns in such sequences. Initially we directly count the number of distinct pairs in words of short length. Because of the rapid growth of the number of word patterns we change our approach to this problem by obtaining an expression for the expected number of distinct pairs in words of length n. We also obtain the asymptotics for the expected number as n → ∞.
A word over an alphabet [k] can be represented by a bargraph, where the
height of the i-th column is the size of the i-th part. If North is in the
direction of the positive y-axis and East is in the direction of the positive
x-axis, a light source projects parallel rays from the North-West direction,
at an angle of 45 degrees to the y-axis. These rays strike the cells of the
bargraph. We say a cell is lit if the rays strike its West facing edge or
North facing edge or both. With the use of matrix algebra we find the
generating function that counts the number of lit cells. From this we find
the average number of lit cells in a word of length n.
International audience
Random sequences from alphabet $\{1, \ldots,r\}$ are examined where repeated letters are allowed. Binary search trees are formed from these, and the average left-going depth of the first $1$ is found. Next, the right-going depth of the first $r$ is examined, and finally a merge (or 'shuffle') operator is used to obtain the average depth of an arbitrary node, which can be expressed in terms of the left-going and right-going depths. The variance of each of these parameters is also found.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.