A polynomial-time reduction from the multi-graph isomorphism problem to additive codeequivalence
Abstract
We present a polynomial-time reduction from the multi-graph isomorphism problem to the problem of code equivalence of additive codes over finite extensions of the field with two elements.
Full text
A polynomial time reduction from the multi-graph isomorphism problem to additive code equivalence Simeon Ball∗and James Dixon Abstract We present a polynomial time reduction from the multi-graph isomorphism problem to the problem of code equivalence of additive codes over finite extensions of F2. 1 Introduction Let F be a finite field of characteristic p , where p is a prime. An additive code of length n over F is a subset of Fn with the property that for all u, v ∈C , we have that u+v∈C . It is easy to prove that an additive code over F is linear over Fp , the finite field with p elements. Thus, an additive code over F can be defined as the row space over Fp of a matrix whose elements are from F . The code equivalence problem for additive codes is the following. Given two k×n matrices over F , when is there a permutation of the columns of one of the matrices, together with a permutation σi , for i∈ {1, . . . , n} , which is a permutation of the elements of F in the i -th coordinate, so that the row-spaces over Fp are the same. If F=Fp then an additive code is linear and if, furthermore, p= 2 then the code is a binary linear code. If the permitations σi are all additive then the codes are additively equivalent. It is not known if equivalent additive codes are necessarily additively equivalent, see [1]. A multi-graph is a graph whose edges are assigned a weight from {1, . . . , h} , for some natural number h . An edge joining vertices u and v of weight w is interpreted as w edges joining u and v . The multi-graph isomorphism problem is the following. Given two multi-graphs determine if there a bijection between the set of vertices which induces a bijection on the edges. i.e. edges of weight ware mapped to edges of weight w. If h= 1 then a multi-graph is simply a graph. In [ 7 ], Petrank and Roth provide a polynomial time reduction from the graph isomorphism problem to the binary linear code equivalence problem. The graph isomorphism problem is in ∗ 30 August 2021. The first author acknowledges the support of the Spanish Ministry of Science and Innovation grant MTM2017-82166-P. 1
2 NP but is not known to be NP-complete. The problem is not known to be solvable in polynomial time either and is therefore a good candidate to belong to the computational complexity class NP- intermediate. Known algorithms for graph isomorphism include McKay’s Nauty algorithm [ 5 ], Ullmann’s algorithm [ 10 ], the VF2 algorithm [ 3 ] and the parameterised matching algorithm [ 6 ]. All these algorithms have exponential worst case performance. Solving isomorphism generally takes much longer time if there is no match, since all possible mappings are eventually searched until it is shown that there is no isomorphism. The latter extends to multi-graph isomorphism and is based on a parameterised sequence which is a walk that covers every vertex in the graph. In this note we extend the polynomial time reduction of Petrank and Roth [ 7 ] to a polynomial time reduction of multi-graph isomorphism to additive code equivalence, where the code is over an extension of F2 . Since a graph on n vertices has at most 1 2n(n−1) edges, we assume that the multi-graph has h⩽1 2n(n−1) weights and that these are from the set {1, . . . , h}. 2 The reduction of multi-graph isomorphism to additive code equivalence Let Γ be a multi-graph with vertex set V , whose edges have weights belonging to the set {1, . . . , h} . Let A be the incidence matrix of Γ , whose rows are indexed by the edges, whose columns are indexed by the vertices and where the edge-vertex entry is equal to the weight of the edge if the edge is incident with the vertex and zero otherwise. Let E denote the set of edges of Γand let Eibe the subset of Eof edges of weight at least i(so E1=E). Let e be a primitive element of F2r , where r > log2h . Let Di be the |Ei|×|Ei| diagonal matrix indexed by the edges of Ei whose diagonal entry is ej−1 , where j is the weight of the edge indexing the row of Di. Let N= (h+ 2)|E1|+|E2|+· · · +|Eh|+|V|. We map Γto the additive code which is the F2-row span of the |E| × Nmatrix G(Γ) = D1|D1| · · · | D1 | {z } h+2 |O2 D2|O3 D3| · · · | Oh Dh |A where Oi is a matrix of zeros, whose dimensions are determined by the fact that the matrix G(Γ) is a |E| × Nmatrix and the matrix Diis a |Ei|×|Ei|matrix. The following two observations will be vital. (O1) The row of G(Γ) indexed by an edge of weight i is a codeword of weight h+3+i whose coordinates are either 0or ei−1.
3 (O2) The only codewords of weight at most 2h+ 3 are rows of G(Γ). The following is the main theorem of this note. Theorem 1. The multi-graphs Γ and Γ0 are isomorphic if and only if the additive codes generated by G(Γ) and G(Γ0)are equivalent. Proof. Suppose the multi-graphs Γ and Γ0 are isomorphic. Then there is a permutation of the columns of A and a permutation of the rows of A , which gives A0 , the incidence matrix of the multi-graph Γ0 . Apply the column permutation to the last |V| columns of Γ and the permutation of the rows of A to the rows of G(Γ) . Since the permutation of the rows of A , takes edges of weight i to edges of weight i , it takes codewords of weight h+ 3 + i , which are rows of G(Γ) , to codewords of weight h+3+i , which are rows of G(Γ0) by (O1) and (O2). Thus, G(Γ) and G(Γ0)generate equivalent codes. Now suppose the additive codes generated by G(Γ) and G(Γ0) are equivalent. Then, by definition, there is an N×N permutation matrix P , a |E|×|E| change of basis matrix S and permutations σi , i∈ {1, . . . , N} , such that we can apply P to the columns of G(Γ) , S to the rows of G(Γ) and the permutation σi to the i -th coordinate and obtain a matrix whose generates, over F2 , the same code as G(Γ0). Properties (O1) and (O2) imply that the change of basis matrix S is in fact a permutation matrix, since rows of G(Γ) must be mapped to rows of G(Γ0) . Furthermore, S maps codewords of weight h+3+i to codewords of weight h+3+i , so the initial N− |V| columns of SG contain each vector of weight one, with a non-zero coordinate indexed by an edge of weight i , precisely h+ 1 + i times. Hence, the first N− |V| columns of G0 can be obtained by permuting the first N− |V| columns of SG . This permutation of the columns then maps the columns of A to columns of A0. The permutation σi must fix all elements of F appearing in the i -th column of a column of A , since by property (O1) the rows of G(Γ0)of weight h+3+ihave coordinates 0or ei−1. Hence, we obtain G(Γ0) from G(Γ) by applying a permutation of the columns of A and a permutation of the rows of A. Thus, Γand Γ0are isomorphic. The polynomial time reduction follows from Theorem 1, by noting that |N|< chn2< n4 , for some constant c . Note also that we can replace equivalence with additive equivalence, since the permutations σiare always trivial. It is interesting to ask if N could be decreased, possibly by increasing the size of the field extension. For h= 2 it is possible to reduce N to 3|E1|+|E2|+|V| by simply deleting one of the initial D1 matrices. One can check that the proof still works, although a little more subtlety is required. Observe that the sum of two codewords of weight 5 (corresponding to edges of weight one) cannot produce a codeword of weight 6 since this would require a repeated single edge, which is an edge of weight two.
4 3 Code equivalence algorithms We discussed known algorithms for solving the graph isomorphism problem in the introduction. Algorithms for solving binary linear code equivalence include Bouyukliev’s algorithm [ 2 ], which is similar to McKay’s graph isomorphism algorithm [ 5 ], Leon’s algorithm [ 4 ] and the support splitting algorithm of Sendrier [ 8 ], [ 9 ]. The latter does not apply to all binary linear codes but it is interesting because it is fast for binary linear codes in which the dimension of the hull H(C) = C∩C⊥ is small. It seems that this is the case for codes obtained from the polynomial time reduction of the graph isomorphism problem due to Petrank and Roth [ 7 ]. This warrants further investigation. The support splitting algorithm allows one to determine signatures from the weight distribution of the hull of truncated binary linear codes, truncating one coordinate at a time. This works because one of the hulls of either the truncated code or the truncations of its dual is non-trivial. This can be seen as follows. Let Ci be the code obtained from C be setting the i -th coordinate to zero in all codewords. Suppose that H(C) = {0}. Thus, Fn 2=C⊕C⊥. Without loss of generality, we consider a truncation on the first coordinate. We have that (1,0,...,0) = u+v, for some u∈Cand v∈C⊥. If (u1, v1) = (1,0) then, since v1= 0 , we have that v∈(C1)⊥ and since v= (1,0,...,0) + u , we have that v∈C1. Hence, v∈H(C1). Similarly, if (u1, v1) = (0,1) then, since u1= 0 , we have that u∈((C⊥)1)⊥ and since u= (1,0,...,0) + v, we have that u∈(C⊥)1. Hence, u∈H((C⊥)1). This truncation trick does not carry over to additive codes. It is possible that both H((C⊥)1) and H(C1) are trivial. However, if we are interested in establishing additive equivalence then we can employ a slightly modified support splitting algorithm; instead of removing the i -th coordinate we take a subspace. In effect, truncating in the binary case would be equivalent to taking the subspace {0} . This is done in the following way. The i -th column of a generator matrix for C is a vector vi∈Fk 2r , where |C|= 2k . Writing vi out over the basis {1, α, . . . , αr−1} of F2r over F2 , vi= r−1 X j=0 v(j) iαj, where v(j) i∈Fk 2 . Let ρi be the subspace of Fk 2 , of dimension at most r , spanned by v(0) i, . . . , v(r−1) i . The subspace ρi is unaffected by an additive permutation on the i -th coordinate, which only has the effect of changing the basis. Thus, we can select a subspace πi of ρi and replace the i -th column of the generator matrix with the corresponding vector of Fk 2r obtained from the subspace πi by reversing the construction of ρi above. This code we denote by Ci,πi , where i is the selected
5 coordinate and πi is the subspace. For equivalent codes, we have that selecting a coordinate and a subspace in C , there must be a corresponding coordinate and subspace in C0 which is equivalent, i.e. Ci,πi is equivalent to C0 i0,π0 i0 , for some i0 and π0 i0 . The weight distribution of the hull of Ci,πi can then be used as a signature with an aim of establishing the permutation taking C to C0 , as in the support splitting algorithm. References [1] S. Ball and J. Dixon, The equivalence of linear codes implies semi-linear equivalence, preprint (2021). arXiv:2107.07912. [2] I. Bouyukliev, About the code equivalence. in: Advances in coding theory and cryptography, Ser. Coding Theory Cryptol.,3(2007) 126–151. [3] L. P. Cordella, P. Foggia, C. Sansone, M. Vento, A (sub) graph isomorphism algorithm for matching large graphs, IEEE Transactions on Pattern Analysis and Machine Intelligence, 26 (2004) 1367–1372. [4] J. Leon, Computing automorphism groups of error-correcting codes, IEEE Trans. Inform. Theory,28 (1982) 496-511. [5] B. D. McKay, Practical graph isomorphism, Congressus Numerantium,30 (1981) 45-87. [6] J. Mendivelso, S. Kim, S. Elnikety, Y. He, S. Hwang, Y. Pinz ´ on Y, Solving Graph Isomorphism Using Parameterized Matching. In: Kurland O., Lewenstein M., Porat E. (eds) String Processing and Information Retrieval. SPIRE 2013. Lecture Notes in Computer Science, vol 8214 . Springer, Cham, 2013. https://doi.org/10.1007/978-3-319-02432-5_ 26 [7] E. Petrank and R. M. Roth, Is code equivalence easy to decide?, IEEE Trans. Inform. Theory, 43 (1997) 1602–1604. [8] N. Sendrier, The support splitting algorithm, Research report no 3637, 33 pages 1999. [9] N. Sendrier, Finding the permutation between equivalent linear codes: the support splitting algorithm, IEEE Trans. Inform. Theory,46 (2000), 1193–1203. [10] J. R. Ullmann, An algorithm for subgraph isomorphism. Journal of the ACM, 23 (1976) 31–42. [11] Lamand SR Bateman JF.Collagen VI disorders: Insights on form and function in the extracellular matrix and beyond. Matrix Biol. 2018 Oct;71-72:348-367. doi: 10.1016/j.matbio.2017.12.008. Epub 2017 Dec 22.
6 Simeon Ball Departament de Matem` atiques, Universitat Polit` ecnica de Catalunya, Carrer Jordi Girona 1-3, 08034 Barcelona, Spain [email protected] James Dixon Facultat de Matem` atiques, Universitat Polit` ecnica de Catalunya, Carrer de Pau Gargallo, 14, 08028 Barcelona, Spain [email protected]