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,..., 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,... given by

 z_i := \left\{\begin{matrix} x_k & \mbox{ if } i=2k \mbox{ is even,}\\ y_k & \mbox{ if } i=2k+1 \mbox{ is odd.} \end{matrix}\right.

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.