Interleave sequence

In mathematics, an interleave sequence is obtained by merging or shuffling two sequences.

Let S be a set, and let (x_i) and (y_i), i=0,1,2,\ldots, be two sequences in S. The interleave sequence is defined to be the sequence x_0, y_0, x_1, y_1, \dots. Formally, it is the sequence (z_i), i=0,1,2,\ldots given by

 z_i := \begin{cases} x_k & \text{ if } i=2k \text{ is even,}\\
 y_k & \text{ if } i=2k+1 \text{ is odd.} \end{cases}

Properties

References

  1. Strichartz, Robert S. (2000), The Way of Analysis, Jones & Bartlett Learning, p. 78, ISBN 9780763714970.
  2. Mamoulis, Nikos (2012), Spatial Data Management, Synthesis lectures on data management 21, Morgan & Claypool Publishers, pp. 22–23, ISBN 9781608458325.

This article incorporates material from Interleave sequence on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.

This article is issued from Wikipedia - version of the Friday, March 18, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.