scieee AI-readable full text Open interactive document viewer

The tower matrix, an alternative to deal with distances and quasi-distances

Zhang, Yulin; Veloso da Costa, António; Simões-Pereira, J. M. S.

Abstract

To any given n × n matrix D, associate a so-called tower matrix T with n × n rows and n columns. This matrix T deserves attention because it gives more information than D: in fact, the tower matrix exhibits, not only the shortest length of the paths from point p to point q, but also, for each third point k, the shortest length of the paths from p to q that pass through k. Interpretations of interest for business management and international commerce, for instance, emphasize the advantage of this supplementary information.

Full text

The Tower Matrix, an Alternative to deal with Distances and Quasi-distances Yulin Zhang1, António Veloso da Costa2and J. M. S. Simões-Pereira3 (orcids: 0000.0003.1833.7456, 0000.0003.4178.8757 and 0000.0001.8930.5932) Key words: Distance; Quasi-distance; Distance matrix; Quasi-distance matrix; Tower matrix. Abstract: To any given n×nmatrix D, associate a so-called tower matrix Twith n×nrows and ncolumns. This matrix Tdeserves attention because it gives more information than D: in fact, the tower matrix exhibits, not only the shortest length of the paths from point pto point q, but also, for each third point k, the shortest length of the paths from pto qthat pass through k. Interpretations of interest for business management and international commerce, for instance, emphasize the advantage of this supplementary information. 1. The numerical tower matrix: By definition, a distance matrix is a square matrix Dwhose entries are non-negative real numbers which satisfy the following three conditions: ∀i:di,i = 0;∀i, k :di,k =dk,i;∀i, j, k :di,k ≤di,j +dj,k. It is usually assumed that di,k >0for i6=k. And if the symmetry is not required in the definition, then Dwill be called a quasi-distance matrix. Recall that distances and quasi-distances have been studied in terms of graphs and digraphs (see [1], [2], [3], [4] [5], [7]): the length of a shortest path from vertex pto vertex qis the value of entry dp,q of the matrix D. This matrix is associated to a graph (when Dis symmetric) or to a digraph (when Dis not symmetric). Defining the numerical tower matrix: Given an arbitrary (that means, not necessarily a distance or quasi-distance) matrix D, of type n×nand whose entries dp,q are real nonnegative numbers, the tower matrix Twill be formed with ncolumns and n×nrows denoted L(p, q), where L(p, q)is the sum of L(p), the row p, and C(q), the column q, of D; and the rows L(p, q)are ordered in lexicographic order of p, q, that is to say, by increasing values of pq, this pair pq being seen as a two-digits integer written using the number system of radix n+ 1. By other words, the rows of Tappear, from top to bottom, as L(1,1),L(1,2), ..., L(1, n);L(2,1),L(2,2), ... L(2, n); ... ; L(n, 1),L(n, 2), ..., L(n, n). The reason for the name tower matrix is that Tcan be seen as a pile of nmatrices T1, ..., Tn, each one of type n×n, with L(1,1), ..., L(1, n) forming T1,L(2,1), ..., L(2, n)forming T2, and so on. As immediate consequences of the definition, in the tower matrix Tof a matrix D, the entry in position pof the row L(p, p)is equal to 2×dp,p, that is, zero, when Dis a distance or quasi-distance matrix; in this case, entries in positions pand qof row L(p, q)are both equal to dp,q, and entry in position k, distinct from pand q, of row L(p, q)is equal to dp,k +dk,q. This makes 1 the tower matrix really interesting. In comparison with D, the tower matrix Texhibits some pieces of information in a much more direct way: while the entries of D, say dp,q, just show the length of the shortest route from pto q, the matrix T, besides exhibiting dp,q, it exhibits also the length of the shortest routes from point pto point qwhich pass through each one of the other points. It is important to note that all these entries are not necessarily lengths of routes. They may be, for instance, travel times or transportation costs; or phylogenetic distances (see [8]) or even costs of making business (see [9]). Think that, in contemporary global markets, closing a business deal between two players Aand Bhas a cost, say dA,B. If there is an intermediary K, the total cost may be dA,K +dK,B. The respective tower matrix may be formed and, if some event (say political or economic) makes a direct negotiation between Aand Bimpossible, resorting to an intermediary chosen from a set of intermediaries will be necessary and the important role of a tower matrix becomes obvious in such a situation. A natural question is to ask when is Da distance or quasi-distance matrix, by just looking at its rower matrix T. The answer might be understood almost as a necessary and sufficient condition for Dto be a distance or quasi-distance matrix. In fact, as an immediate consequence of the definitions, the following result holds: Theorem: Let Dbe a matrix of type n×nand whose entries dp,q are real nonnegative numbers. 1. A necessary and sufficient condition for Dto be a quasi-distance matrix is that, in its tower matrix T, position pof L(p, p)be zero (for every p), positions pand qof L(p, q)be equal to one another and position kof L(p, q) be equal to dp,k +dk,q; 2. A necessary and sufficient condition for Dto be a distance matrix is that, besides the conditions in the previous item, the following additional one be also met: in the tower matrix T, for any pand q, position qof L(p, q)is equal to position pof L(q, p). As an example of matrices Dand T, look first at the digraph of Figure 1, with 1,2,3,4as main vertices and xas an auxiliary one. 1 2 1 4 3 3 x 1 1 2 24 Figure 1: A digraph and its quasi-distances. For the matrices see Figure 2 In Figure 2, see the quasi-distance matrix Dand the tower matrix T, 2 yielded by the digraph of Figure 1. D=      0 1 3 2 7 0 2 3 7 8 0 3 4 5 7 0      and T=      T1 T2 T3 T4      =                                 08 10 6 1 1 11 7 3339 24 6 2 7 7 9 7 8010 8 10 2 2 10 9353 715 77 88 8 8 10 10 010 9 11 3 3 412 14 4 5515 5 7 7 7 7 6 8 10 0                                 Figure 2: A quasi-distance matrix Dand its tower matrix T Look at Tand consider it partitioned into nsquare sub-matrices T1,T2, ..., Tn, where T1is formed by the top nrows of T,T2formed by the following nrows, and so on. As is easy to verify, in Tiits diagonal and its column C(i) are equal, element to element, to the row L(i)of D. Note that all entries of D appear in T, but they don’t use up all positions of T. In Figure 2, we have in bold, the entries of Twhich are equal to the entries in the rows of D. 2. Defining the Boolean tower matrix: To end up this note consider a variant of the tower matrix defined in boolean terms: call it the boolean tower matrix. Where the numerical version exhibits path lengths, the boolean variant exhibits simply the existence of paths or links. Remember (see [6], for instance) that the boolean adjacency matrix Dof a graph or digraph Gwith nvertices is a square matrix of type n×nwhose entries dp,q are defined as follows: - For every p,dp,p = 1; for p6=q, it is dp,q = 1 when there is an arc (oriented edge) from pto qin the digraph G, or an edge when Gis a graph; otherwise, dp,q = 0. Note that, in terms of graphs and digraphs, the existence of loops from each vertex to itself is always assumed. These loops are oriented in digraphs, non-oriented in graphs. Keeping the notation of the previous section, define the boolean tower matrix Bassociated to Das a matrix of type n2×nwhose row L(p, q)is the boolean product (not the boolean sum!) entry by entry, of the prow L(p)by the qcolumn C(q)of D. This is an unexpected but necessary, or at least convenient difference between the definitions of numerical and boolean tower matrix. Otherwise, the matrix Bmay also be seen as a pile of square matrices B1, ..., 3 Bn, of type n×n, which play here the roles of T1, ..., Tn, respectively. Thus, the entry kof L(p, q)is 1if and only if there is, in G, a directed path from p to qconsisting of two arcs (p, k)and (k, q). Don’t forget that an arc (p, q)may be understood as the path (p, p),(p, q)or as the path (p, q),(q, q); this means that, when the arc (p, q)exists, the entries pand qof L(p, q)are equal to 1. Obviously, when Gis a graph, edges will play the role of the (oriented) arcs in digraphs. In Figure 3, see, as an example, the boolean adjacency matrix Dand the boolean tower matrix Bof the digraph pictured in Figure 4. D=      1 0 1 1 0 1 0 0 1 0 1 0 0 1 1 1      and B=      B1 B2 B3 B4      =                                 1010 0 0 0 1 1011 10 0 1 0 0 0 0 010 0 00 0 0 0000 1010 00 0 0 1 0 10 1 0 0 0 00 1 0 0101 0 0 1 1 0001                                 Figure 3: A boolean adjacency matrix Dand its boolean tower matrix B Recalling what was pointed out for the matrices Ti, it holds also here that, in each Bi, the main diagonal and the column Ci(in bold) are equal, entry by entry, to the row L(i)of D. 1 4 2 3 Figure 4: The digraph whose associated matrices are in Figure 3 3. Some conclusive remarks: The tower matrix defined in this paper may be associated to any square matrix whose entries take numerical or Boolean values. 4 The focus of the analysis in this paper is on tower matrices which are associated with distance, quasi-distance or adjacency matrices. Their huge potential for applications is pointed out. In fact, transport costs, travel times, genetic similarities and negotiation difficulties, among many others, all these variables may play the role of traditional distances, quasi-distances, existence or non-existence of links. Note also that tower matrices may be naturally associated to graphs and digraphs. Plus, an unexpected difference in the definitions of the numerical versus the Boolean versions of the tower matrix is impressive and pointed out in this note. References [1] Agnese Baldisserri and Elena Rubei: Distance matrices of some positive-weighted graphs, Australasian Journal of Combinatorics, 70-2 (2018), pp. 185-201. [2] P. Buneman: A note on the metric properties of trees, J. Comb. Theory Ser. B, 17 (1974), pp. 48-50. [3] S. L. Hakimi and S. S. Yau: Distance matrix of a graph and its realizability, Quart. Applied Math. 22 (1964-65), pp 305-317. [4] J. M. S. Simões-Pereira: A note on the tree realizability of a distance matrix, J. Combin. Theory, 6 (1969) pp. 359-374. [5] J. M. S. Simões-Pereira: A note on optimal and suboptimal digraph realizations of quasidistance matrices, SIAM J. Alg. DIsc. Math, 5 (1984) pp.117-132. [6] J. M. S. Simões-Pereira: Matemática Discreta: Grafos, Redes, Aplicações, (Portuguese), Editora Luz da Vida, Coimbra, Portugal, 2009. [7] K. A. Zaretzki: Constructing a tree on the basis of a set of distances between pendant vertices, Uspekhi Mat. Nauk, 20-6 (1965), pp.90-92 (in Russian). [8] Seen on 2018, December 29: Distance Matrices in Phylogeny, in https://en.wikipedia.org/wiki/Distance Matrices in Phylogeny. [9] Seen on 2018.12.29: Mediation in Politics and the Politics of Mediation, https://www.mediate.com/articles/benjamiminpolitics.cfm. −−−−−−−−− 5 Research by authors Zhang and da Costa was supported by Portuguese Funds through FCT - Fundação para a Ciência e Tecnologia, within Project UID/MAT/00013/2013. Simões-Pereira received a grant from the Divine Cities Foundation. −−−−−−− 1,2Dept. of Math., University of Minho, Braga, Portugal. E-mails: zhang@ math.uminho.pt, av[email protected].pt, 3Dept. of Math., University of Coimbra, Coimbra, Portugal. E-mail: [email protected] 6