Boustrophedon Transform
   HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, the boustrophedon transform is a procedure which maps one
sequence In mathematics, a sequence is an enumerated collection of objects in which repetitions are allowed and order matters. Like a set, it contains members (also called ''elements'', or ''terms''). The number of elements (possibly infinite) is calle ...
to another. The transformed sequence is computed by an "addition" operation, implemented as if filling a
triangular array In mathematics and computing, a triangular array of numbers, polynomials, or the like, is a doubly indexed sequence in which each row is only as long as the row's own index. That is, the ''i''th row contains only ''i'' elements. Examples Notable ...
in a
boustrophedon Boustrophedon is a style of writing in which alternate lines of writing are reversed, with letters also written in reverse, mirror-style. This is in contrast to modern European languages, where lines always begin on the same side, usually the le ...
(
zigzag A zigzag is a pattern made up of small corners at variable angles, though constant within the zigzag, tracing a path between two parallel lines; it can be described as both jagged and fairly regular. In geometry, this pattern is described as a ...
- or serpentine-like) manner—as opposed to a "Raster Scan" sawtooth-like manner.


Definition

The boustrophedon transform is a numerical, sequence-generating transformation, which is determined by an "addition" operation. Generally speaking, given a sequence: (a_0, a_1, a_2, \ldots), the boustrophedon transform yields another sequence: (b_0, b_1, b_2, \ldots), where b_0 is likely defined equivalent to a_0. The entirety of the transformation itself can be visualized (or imagined) as being constructed by filling-out the triangle as shown in Figure 1.


Boustrophedon Triangle

To fill-out the numerical
Isosceles triangle In geometry, an isosceles triangle () is a triangle that has two sides of equal length. Sometimes it is specified as having ''exactly'' two sides of equal length, and sometimes as having ''at least'' two sides of equal length, the latter versio ...
(Figure 1), you start with the input sequence, (a_0, a_1, a_2, \ldots), and place one value (from the input sequence) per row, using the boustrophedon scan (
zigzag A zigzag is a pattern made up of small corners at variable angles, though constant within the zigzag, tracing a path between two parallel lines; it can be described as both jagged and fairly regular. In geometry, this pattern is described as a ...
- or serpentine-like) approach. The top vertex of the triangle will be the input value a_0, equivalent to output value b_0, and we number this top row as row 0. The subsequent rows (going down to the base of the triangle) are numbered consecutively (from 0) as integers—let k denote the number of the row currently being filled. These rows are constructed according to the row number (k) as follows: * For all rows, numbered k \in \mathbb, there will be exactly (k+1) values in the row. * If k is odd, then put the value a_k on the right-hand end of the row. ** Fill-out the interior of this row from right-to-left, where each value (index: (k,j)) is the result of "addition" between the value to right (index: (k,j+1)) and the value to the upper right (index: (k-1,j+1)). ** The output value b_k will be on the left-hand end of an odd row (where k is
odd Odd means unpaired, occasional, strange or unusual, or a person who is viewed as eccentric. Odd may also refer to: Acronym * ODD (Text Encoding Initiative) ("One Document Does it all"), an abstracted literate-programming format for describing X ...
). * If k is even, then put the input value a_k on the left-hand end of the row. ** Fill-out the interior of this row from left-to-right, where each value (index: (k,j)) is the result of "addition" between the value to its left (index: (k,j-1)) and the value to its upper left (index: (k-1,j-1)). ** The output value b_k will be on the right-hand end of an even row (where k is
even Even may refer to: General * Even (given name), a Norwegian male personal name * Even (surname) * Even (people), an ethnic group from Siberia and Russian Far East ** Even language, a language spoken by the Evens * Odd and Even, a solitaire game w ...
). Refer to the arrows in Figure 1 for a visual representation of these "addition" operations. For a given, finite input-sequence: (a_0, a_1, ... a_N), of N values, there will be exactly N rows in the triangle, such that k is an integer in the range: ,_N)_(exclusive)._In_other_words,_the_last_row_is_k_=_N_-_1.


_Recurrence_relation

A_more_formal_definition_uses_a_recurrence_relation._Define_the_numbers_T__(with_''k'' ≥ ''n'' ≥ 0)_by :T__=_a_k :T__=_T__+_T_ :\text :\quad_k,n_\in_\mathbb :\quad_k_\ge_n_>_0. Then_the_transformed_sequence_is_defined_by_b_n_=_T__(for_T__and_greater_indices). Per_this_definition,_note_the_following_definitions_for_values_outside_the_restrictions_(from_the_relationship_above)_on_(k,n)_pairs: \begin T_\,_\overset&_\,_a__\,_\overset_\,_b_\\ \\ T_\,_\overset&_\,_a__\,_\iff_k_\,_\text\\ T_\,_\overset&_\,_b__\,_\iff_k_\,_\text\\ \\ T_\,_\overset&_\,_b__\,_\iff_k_\,_\text\\ T_\,_\overset&_\,_a__\,_\iff_k_\,_\text\\ \end


__Special_Cases_

In_the_case_''a''0_=_1,_''a''''n''_=_0_(''n''_>_0),_the_resulting_triangle_is_called_the_Seidel–Entringer–Arnold_Triangle_and_the_numbers_T__are_called_Entringer_numbers_. In_this_case_the_numbers_in_the_transformed_sequence_''b''''n''_are_called_the_Euler_up/down_numbers._This_is_sequence_oeis:A000111.html" "title="recurrence_relation.html" ;"title=", N) (exclusive). In other words, the last row is k = N - 1.


Recurrence relation

A more formal definition uses a recurrence relation">, N) (exclusive). In other words, the last row is k = N - 1.


Recurrence relation

A more formal definition uses a recurrence relation. Define the numbers T_ (with ''k'' ≥ ''n'' ≥ 0) by :T_ = a_k :T_ = T_ + T_ :\text :\quad k,n \in \mathbb :\quad k \ge n > 0. Then the transformed sequence is defined by b_n = T_ (for T_ and greater indices). Per this definition, note the following definitions for values outside the restrictions (from the relationship above) on (k,n) pairs: \begin T_\, \overset& \, a_ \, \overset \, b_\\ \\ T_\, \overset& \, a_ \, \iff k \, \text\\ T_\, \overset& \, b_ \, \iff k \, \text\\ \\ T_\, \overset& \, b_ \, \iff k \, \text\\ T_\, \overset& \, a_ \, \iff k \, \text\\ \end


Special Cases

In the case ''a''0 = 1, ''a''''n'' = 0 (''n'' > 0), the resulting triangle is called the Seidel–Entringer–Arnold Triangle and the numbers T_ are called Entringer numbers . In this case the numbers in the transformed sequence ''b''''n'' are called the Euler up/down numbers. This is sequence oeis:A000111">A000111 A, or a, is the first letter and the first vowel of the Latin alphabet, used in the modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in English is ''a'' (pronounced ), plural ''aes' ...
on the On-Line Encyclopedia of Integer Sequences. These enumerate the number of alternating permutations on ''n'' letters and are related to the Euler numbers and the Bernoulli numbers.


Algebraic definition(s)

Building from the geometric design of the boustrophedon transform, algebraic definitions of the relationship from input values (a_i) to output values (b_i) can be defined for different
algebras In mathematics, an algebra over a field (often simply called an algebra) is a vector space equipped with a bilinear product. Thus, an algebra is an algebraic structure consisting of a set together with operations of multiplication and addition ...
("numeric domains").


Euclidean (Real) values

In the Euclidean (\mathbb^) Algebra for Real (\mathbb^)-valued scalars, the boustrophedon transformed
Real Real may refer to: Currencies * Brazilian real (R$) * Central American Republic real * Mexican real * Portuguese real * Spanish real * Spanish colonial real Music Albums * ''Real'' (L'Arc-en-Ciel album) (2000) * ''Real'' (Bright album) (2010) ...
-value is related to the input value, , as: \begin b_n &= \sum_^n \binom a_k E_ \\ \end, with the reverse relationship (input from output) defined as: \begin a_n &= \sum_^n (-1)^ \binom b_k E_ \end, where is the sequence of "up/down" numbers—also known as secant or
tangent In geometry, the tangent line (or simply tangent) to a plane curve at a given point is the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points on the curve. More ...
numbers.Weisstein, Eric W.
"Boustrophedon Transform." Fro
MathWorld
-A Wolfram Web Resource. http://mathworld.wolfram.com/BoustrophedonTransform.html


The exponential generating function

The
exponential generating function In mathematics, a generating function is a way of encoding an infinite sequence of numbers () by treating them as the coefficients of a formal power series. This series is called the generating function of the sequence. Unlike an ordinary series ...
of a sequence (''a''''n'') is defined by : EG(a_n;x)=\sum _^ a_n \frac. The exponential generating function of the boustrophedon transform (''b''''n'') is related to that of the original sequence (''a''''n'') by : EG(b_n;x) = (\sec x + \tan x) \, EG(a_n;x). The exponential generating function of the unit sequence is 1, so that of the up/down numbers is sec ''x'' + tan ''x''.


References

* * {{cite book , author=Weisstein, Eric W. , title=CRC Concise Encyclopedia of Mathematics, Second Edition , publisher=Chapman & Hall/CRC , year=2002 , page=273 , isbn=1-58488-347-2 Integer sequences Triangles of numbers Permutations Transforms