Math Words and Their Dendrograms

A hierarchical clustering algorithm based on graph theory is presented, which, from generation of a path from a given vertex, builds a math word and calculates clusterization under an index. This is possible due to modification of Tarry ’ s algorithm, through exchange of path elements. The unidimensional clustering index applied to σ gives us what I have called Tarry ’ s hierarchy. From the definition of net word, cycle, tree, tree word, and vertex, a theorem on the relationship between vertices, lines, and letters of a labyrinth is shown, which allows the generation of words and their dendrograms with the application of the Euclidean distance. Practical use of these concepts provides possibilities of connections in arrangements for telephone centrals and robotic arms ’ paths.


Introduction
The first person to study the combinatory properties of schemes was Leonard Euler in 1736, who studied the network of the seven bridges in Königsberg, and he wrote in Berlin 1739 "in Königsberg Pomeranie, they have a little island named Kneiphof, the river is divided by two and around the island seven bridges. You can arrange a network where you walk only one over in one time". And Euler continues, "this is possible for every one and impossible for others, but anyone has the certitude" [1].
The modern theorem enunciated by Euler demonstrated that the necessity of the parity of the valence in every vertex is a theorem: A connexe graphic is eulerienne if all vertex has degree pair. Till date, the graphic theory has developed slowly but steadily. The principal contributors of this theory are Tarry [2,3], Konig [4], Berge [5], Tutte [6], Bollobas [7], and Rosenstielh [8,9,10].
The randomized Tarry algorithm is used in searching a graph of Urretabizkaya and Rodríguez 2004 [13] as they implement the Tarry algorithm for solving mazes of known structure. The graph theory is used in branches of mathematics like theory of groups, topology, theory of numbers, data analysis, and clusters. Among those who have contributed the most to the development of theory and models in telephone connections are Erlang, who implemented the well-known Erlang Probability Density Function, and his published works of 1917 and 1918 [14], and Elldin [15]. More recent contributors to this theorem are Ahuja et al. [16] and Mateus et al. [17].
As a starting point, let us see some graph theory definitions and concepts used in the generation of modification made to Tarry's algorithm, as well as the definition of applied distance, called minimum ultrametric distance in the application of Tarry's modified algorithm on telephone centrals arrangements. In the development of application, a theorem on the relationship between the maximum number of lines in a geometrical arrangement with n vertices and k letters is shown and demonstrated, which is made with the method known as mathematical induction.

Definitions and algorithms
Definition. One graphic is a couple G ¼ (X, U), where X is a finite set, of edges of G, each element of which is incident to two elements of another finite set V, named the set of vertices [5].

Definition.
A labyrinth L is a finite set A non-empty and of pair cardinality, named set of words of L or alphabet, supplied of one involution l without an indeterminate point (i.e., without a tendency change) called by the prime operator: l ∈ A then l' ∈ A; l' 6 ¼ l and ðl'Þ' ¼ l ð1Þ And one equivalence relation (named "with the same right than" where the classes are "the points" of labyrinth, the letters of same class have the same right as the point) indicated by the application of the letters which belongs to the letters in the set X of class: By < the right of l is equal to right of k >, where < l has the same right as that of k > [9].
It is possible to speak of the left of letter too, making: g: A -! X with g(l) ¼ d(l') ∀ l∈A, as far as the labyrinth expressed by triad (A, i, d).
Definition. One labyrinth (A, i, d) is said to be orientated, if it exists one part A þ of A such that: Definition. Given a labyrinth (A þ , i, d), σ is called a word of this labyrinth if it belongs to some of following classes: • Δ α ∀ α ∈ X is called empty words of L • l with l ∈ A is called word letter of the L, and Therefore, let X be the set of vertex, you can have lefts and rights applications in all words of the labyrinth L defined as d, g: To continue the definitions of tree, pure word, and neutral word, see Refs. [7,18].
Definition. One tree A is a graph G ¼ (X, U) connected and noncyclical.
Let us see below how to materialize the above definitions. Given is the structure of a labyrinth oriented L: A þ ∪ A À , Figure 1, where sets of letters A þ and A À are defined as A þ ¼ a b e f i j c f d g h k lg and A À ¼ a´b´e´f´i´j´c´d´g´h´k´lf g . In addition, the vertex set of L is It must be taken into account that L is the application of labyrinth and L is the labyrinth which, in this case, is the union of a finite set A þ 6 ¼ ɸ, with direction toward the right, and a finite set A À 6 ¼ ɸ, with direction toward the left, and X is the vertex set of the labyrinth.
A line of L would be a af g⊂ U L , with U L being the set of lines of L. Some words of L with Δ α being the empty word are e f j i f g, a´b´f g f g , g d f´i´jf g , and Δ α e f g. Cardinality of L is as follows: A net word would be σ ¼ e f j i b a a´b´i´j´g h l k d c c´d´k´l´h´g´f´ef g , and right and left applications of σ are, respectively, as follows:  It must be noticed that σ is cyclic: We may also build a tree A 0 , Figure 2, a tree net word and its dendrogramatic relationship. The hierarchical relationships that shall be seen are classifications with an aggregation criterion in accordance with the oriented path of the labyrinth under analysis.
It must be noticed that the word created based on the tree built is cyclic and its hierarchy does not exist, since it is nested (Figure 3a). Such nesting means that there is no aggregation criterion among the letters of the labyrinth alphabet ( Figure 3b).  From labyrinth of Figure 1, we may build another tree and another tree net word, as shown in Figures 4a, b. The net word of tree A 1 , Figure 5a, and his free aggregation criteria, Figure 5b, is as follows: The new σ word is not completely cyclic, but even then, a hierarchy for such may not be built, since it is, mostly, nested.
it is a pure word if inside σ exists an occurrence of each letter of A.
Definition. If σ ∈ L and σ ≈ Δ α ∀ α ∈ X, σ is called neutral word in α if the neutral element Δ α is a neutral word in some α-particular.

Algorithm of Tarry
Definition. Let L labyrinth be connected, we say Tarry's word of L all pure word Θ ∈ L such that the entry tree V of Θ and the out tree W of Θ are opposites, i.e., W ¼ V'.
Let L be the lexical of connected labyrinth L ¼ (A, i, g), with l 1 ∈ A. Let V(σ) be the entry tree of σ with σ a left factor of Tarry's word Θ to apply the following algorithm ( Figure 6) [3]:  Note: The contrary of all entry letter is an out letter in Θ ¼ σ, cause Θ is a cyclical word, and all letter of A has the same right than the same left of Θ [19].

Attachment index
With the classification level of ways connected or paths of labyrinth L, they begin with the first cycle or pleat of the Tarry's word. In this case, the index level is unit. When the Tarry's word σ is formed, you have to replace σ, writing always in first place the first obtained cycle.
Definition. Let two paths l 1 and l 2 ∈ L and let α all letters with the same left g(Θ) and β all letter with the same right d(Θ), the minimal distance d M or the inferior ultra-metric minimal distance over a point x 0 ∈ l 1 and Remember, the algorithm is applied after finding the Tarry's word and his cluster by couples or pleats. To finish the last pleat, begin the letter's arrangement in σ. You must begin with the first pleat.

Tarry's algorithm in pseudocode
In order to describe briefly the operative principle of modified Tarry's algorithm, its procedure is shown below in pseudocode, where, based on which, one may develop it in a programming language under conventional programming.
//In Tarry's algorithm, there is the eventuality to go beyond this point to the first step if, by L's own nature, there is no other way to construction of Tarry's word, thus making a truncated Tarry's word// End of Procedure

Application in basic telephone centrals arrangements
One of the great problems in telephony is to calculate telephone traffic increase, which allows designing telephone centrals and calculating the number of lines which shall satisfy the demand. Let us take the real case of Figure 7 and apply the theory referred to above in order to obtain Tarry's trees, words, dendrograms, or clustering for optimal connection paths. If we take only the lowest part of Figure 7 (telephone centrals and area centrals, Figure 8), the L labyrinth may be built: Figure 7. Basic arrangement diagrams between telephone centrals.
The number of trunks or telephone lines is m ¼ 5, and the number of letters is 2m ¼ 10. If x 0 ∈X and {a, a'} ⊂ A, the net word of Figure 8 is obtained. Figure 9 is the net word of the L labyrinth: Thus, seven trees related to vertex x 0 are obtained. To every tree corresponds one or several words (net, neutral, or Tarry's). Every tree thus built has 4 vertices, 5 lines and 10 letters. Figure 10 shows all the trees related to x 0 vertex. It must be remembered that the same trees may be found in every vertex different from x 0 .
Based on the above definition, a telephone communications network is a symmetrical graphic, since every pair of terminals or adjacent vertices is linked in two directions.   Theorem. Let n be the number of vertices; m the maximum number of lines; and k the number of letters. If loops are not considered and we only study triangular geometrical arrangements, the relationship on the maximum number of m lines in a set of n vertices and k letters is: Demonstration. This algorithm shall be demonstrated through the induction mathematical concept (tested for one, supposed for n, and tested for nþ1).
If n ¼ 1, there is no labyrinth. If n ¼ 2, then m ¼ n À 1 ð Þn 2 ¼ 1 and k ¼ 2. In this case, there is only one line in two directions (⇆). Let us suppose that n ¼ n, then: If we ask if this is valid for n ¼ nþ1. Then that is, the number of vertices ≤ maximum number of lines ≤ number of letters, which complies with the theorem.
From our example: When we apply the hierarchical distances geometrical theory [20] to build the tree or dendrogram of the labyrinth net word, Figure 11, hierarchical geometry shown is a starting sequence of isosceles triangles crowned by a sequence of scalene triangles. Partial hierarchies show a monotonous series, and in the following selection of classes to be added, there are always partial hierarchies corresponding to a primary telephonic connection. As for dendrograms of every word built based on vertex x 0 , Figure 12, it may be seen that the hierarchy does not change for each tree. Their geometry is identical for each different mathematical word obtained from the labyrinth.
Based on construction of dendrograms, the values of fractal dimension, its standard deviation, and que regression line equation have been obtained ( Table 1). In the last column, the table shows to graphs: that of the fractal of the peak of the dendrogram and the geometrical Figure 11. Dendrogram of the labyrinth's net word. structure of the hierarchy. Obtained values have been corroborated using Software Benoit 1.3 [21]. It must be considered that σ measures probability that an observation is at a certain distance from average observation, and it is valid if system under analysis is random.
Let us now talk about the polygonal case of the labyrinth's net word, as well as that representing all the trees, words, and dendrograms of vertex x 0 , showing the sequence of variables incorporations into the hierarchical analysis developed. It must be considered that figures in Table 1 are not at the same hierarchical scale. In the first one, case in which the dendrogram built is only for the labyrinth's net word, the polygonal sketches the trend of the final structure of each basic arrangement between telephone centrals, which is, in this case, the generator of fractal curves characterizing the dendrograms for each communication path between telephone centrals.
The segments of the generator are built linearly from the base of the class to the terminal point of a higher class, so that the sequence of such set of classes is conceptually defining part of the behavior of the net word's letters. The fractal's generator defines the characteristic of data under study, which in fact gives value to the construction of the hierarchical dendrograms [22].
The first four columns of method. Since it is a well-known theory, the description of such is not described in detail [23,24,25]. The last column, as described above, shows the fractal and its geometrical structure.

Application to industrial robots' paths
From the point of view of robotics, a robot is the technique applying informatics to design and use of equipment which, instead of people, carries out operations or tasks, generally, in industrial facilities. There is the problem of controlling kinematic and dynamic models. To define the movement of a robot implies controlling such in order that it may follow a pre-planned path. Therefore, the objective is to establish which are the paths to be followed by every articulation of the robot in time in order to achieve the objectives established, as well as it is required to comply with a series of physical restrictions imposed by actuators and the quality of the path, such as smoothness and precision.
In order to make an animation of a rotational robot with x-degrees of freedom, a simple planning of the path to be followed by the robot must be made, taking into account the actuators, so that the movement of the robot may be smooth and coordinated. The types of paths of industrial robots currently are as follows: point-to-point path, coordinated or isochrone path, and continuous paths. For 3D paths, related to 2D paths, the versatility of inverse kinematics and dimensions of existing algorithms are different.
Let us consider now an industrial robot making a complex set of paths in three dimensions to assemble a device, as shown in Figure 13. Here, the oriented path set for the mechanic arm and the points, in our case vertices, where such shall implant an element or component of the system being assembled are shown. Treatment of the path under the theory shown is as follows: It must be said that through desired paths generated by a specific function, it must be segmented into enough points to describe follow-up on the path made by the robot manipulator. Thus, high accuracy may be achieved; however, the search process extends the convergence Figure 13. Robot with ellipsoidal-oriented paths. time of algorithms. This is also true for traditional numerical solutions, such as Newton-Raphson's, since it has a small differential step.
The sets of letters are: direction toward the right A þ ¼ {a b c d e f g}, direction toward the left Figure 14 shows the non-neural Tarry's labyrinth word diagram. Therefore, a Tarry's word to see the circular permutations of letters and vertices is: Word Θ built is, evidently, nonneural ( Figure 15). Its diagram is shown in Figure 16a, but almost always another word may be built, Figure 16b, which is hierarchical: Word Θ built is neutral but not Tarry's, since its folding into e does not allow it to be so. Its diagram is shown in Figure 17.
In this example, the informatics algorithms defining the paths of a robotic arm are related to the work cycles and co-cycles of their industrial task or partial graphics of the paths. This duality between cycles and co-cycles is extended to the concept of tree. Figure 18 shows the graphic representation of entrance-exit or right-left trees. Based on labyrinth oriented L,    Figure 19). Figure 20 shows its diagram.
Definition of cocycle. A cocycle of vertex x ∈ G is the addition of every w(x) edge where an end is vertex x.  Based on labyrinth-oriented L described in Figure 13, a new ξ Tarry's word and its hierarchical relationship are built, which diagram is shown in Figure 21.
Inside an L labyrinth, it is possible to make permutations of letters (it had already been done here, but it had not been explained), as well as of lines, and vertices, respectively. If the labyrinth is connected, it is possible to make permutations of elements already mentioned, but in a circular manner.  Definition. A circular transformation in a connected labyrinth is a substitution of the order of letters, lines, or points with another order, without negatively affecting the nature of such labyrinth.
Let k ≥ 0 and Φ: A ! U the application that relates every letter to the corresponding line or arch in labyrinth L, where U is the family of arcs. Therefore, it is said that (i) two letters m 1 and m 2 are k-adjacent if there is a word of L with less than k þ 2 occurrences of letters, where the first word is m 1 and the second word is m 2 . (ii) The sets of words A 1 and A 2 are k-adjacent if there are two letters k-adjacent m 1 and m 2 , such that Φ(m 1 ) ¼ A 1 and Φ(m 2 ) ¼ A 2 and (iii) two vertices x 1 and x 2 are k-adjacent if there are two letters, also k-adjacent, m 1 and m 2 , such that x 1 ¼ g(m 1 ) and x 2 ¼ g(m 2 ).
Based on the above, let us now keep only the odd rank letters of word ξ Word ξ or p 0 is a circular permutation of letters with 0-adjacenty, that is, k ¼ 0. ξ in p 1 is a circular permutation of lines with 1-adjacency ( Figure 22). Using the entrance tree, Figure 18, the ξ word of the corresponding entrance tree is shown in Figure 23a and its hierarchical relationship in Figure 23b.  Keeping from ξ the odd rank letters and relating each of them to a vertex, in accordance with the rule, we obtain: which makes p 2 a circular permutation of dots with 2-adjacency.

Conclusions
It is known that all expositions need a complete solution, with links' help, which suggests the path, as horizontally as and vertically, from algorithm's solution that insides in a formal language able to analyze the system to rebuild the principal structure. The modification in the algorithm of Tarry through exchange of elements allows a better arrangement or letters couple assembly to permit the mathematical word building. The unidimensional attachment index is applied to σ giving the Tarry's hierarchical.
There is no published clustering algorithm (whether hierarchical or not), based on graph theory, which, from generation of a path starting on a given vertex, builds a math word and calculates clustering under an index. This has been possible by modification to Tarry's algorithm, through exchange of elements, which has allowed a better arrangement of letters coupling and the construction of a math word. The unidimensional clustering index applied to σ gives what I call Tarry's hierarchy. The path planning problem may be approached with classical approaches, such as the potential fields, or more modern approaches, such as Fuzzy techniques [26], or the one shown here, through Tarry's modified algorithm, which takes into account the work cycles and co-cycles in the orientation of the labyrinth of paths defined to carry out a particular task. In addition, the set of defined paths has an order and hierarchy, for which reason, it is revealing the building of dendrogramatic trees based on net words built, which allows to analyze if work paths defined for the robotic arm are optimal.
Methodology for fractal analysis of geometric discontinuity or polygon created by unions of midpoints of vertices, nodes, or peaks of dendrograms' terminal classes is based on the following: (i) the outline of the dendrogram under study is drawn, linking the midpoints of the vertices, nodes, or peaks of the terminal classes, verifying the sectioned behavior of the polygon; (ii) any mirror behavior in any section of the curve is identified; (iii) the curve showing the direction of its fractal propagation is isolated and a straight line is drawn from the starting point to the ending point, calculating, regarding the ordinates axis, its propagation angle; (iv) the scale factor of the fractal curve is calculated; (v) the curve generator is reproduced to scale; (vi) meshing is created for calculation of the fractal dimension of the polygon; (vii) the fractal dimension for every different meshing and rotation is calculated, graphing the results in accordance with each estimation methods theoretically accepted; and (viii) the self-similarity property of the polygon is verified.