<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>A low-complexity algorithm to search for Legendre pairs</title></titleStmt>
			<publicationStmt>
				<publisher>Elsevier</publisher>
				<date>09/01/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10653641</idno>
					<idno type="doi">10.1016/j.laa.2025.01.010</idno>
					<title level='j'>Linear Algebra and its Applications</title>
<idno>0024-3795</idno>
<biblScope unit="volume">721</biblScope>
<biblScope unit="issue">C</biblScope>					

					<author>Sirani M Perera</author><author>Ilias S Kotsireas</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Not Available]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Hadamard matrices are n &#215; n matrices H with elements from {-1, +1} such that H &#8226; H t = n &#8226; I n , where t denotes matrix transposition and I n is the n &#215; n identity matrix. These matrices are considered trivial when their order is either n = 1 or n = 2. Beyond these two trivial orders, a well-known necessary condition for the existence of Hadamard matrices is that n &#8801; 0 (mod 4). The sufficiency of this condition is the famous Hadamard conjecture, still open after more than 130 years <ref type="bibr">[1,</ref><ref type="bibr">2]</ref>. Despite several dozens of known constructions for Hadamard matrices, the Hadamard conjecture remains open, mainly because each construction either covers a rather sparse set of orders or fails for several orders. There is a construction that furnishes a promising avenue towards a more structured form of the Hadamard conjecture, i.e., that conjecturally does not fail for any order which is a multiple of four <ref type="bibr">[3]</ref>. This construction is based on a combinatorial object called Legendre pairs. Legendre pairs were introduced in <ref type="bibr">[4]</ref>, where the authors show how to apply the DFT matrix to search for these combinatorial objects. The importance of Legendre pairs is that they can be used to build Hadamard matrices and the conjecture that Legendre pairs of every odd length exist, implies the Hadamard conjecture, albeit via the very specialized structure of Legendre pairs <ref type="bibr">[3]</ref>. From the computational point of view, the smallest odd order for which Legendre pairs are not known to exist is 115 <ref type="bibr">[5]</ref>. In order to tackle the smallest open case, i.e., &#8467; = 115 with our new algorithm, one would first have to further carefully integrate and incorporate the concept of Djokovic-Kotsireas compression <ref type="bibr">[6]</ref> into the current implementation, as well as further optimize the current code. This is planned to be the objective of future work.</p><p>In this paper, we explore a new perspective to search for Legendre pairs, i.e., using matrix analysis and linear algebra. We start by exploring the structure of the Legendre pair matrix equation. Structural properties of matrices can be explored to solve many problems in applied sciences and engineering efficiently. These matrices have been studied individually in mathematics, engineering, and computer science disciplines for quite a long time. Within the last two decades, the theories of structured matrices got more attention as they are positioned to bridge diverse disciplines <ref type="bibr">[7,</ref><ref type="bibr">8,</ref><ref type="bibr">9,</ref><ref type="bibr">10,</ref><ref type="bibr">11,</ref><ref type="bibr">12]</ref>. More specifically, recent work has been done to show that the theories of matrix analysis could be utilized to solve problems in narrowband multi-beam beamforming <ref type="bibr">[13]</ref>, wideband multi-beam beamforming <ref type="bibr">[14]</ref>, mutual coupling effects in antenna arrays <ref type="bibr">[15]</ref>, image processing <ref type="bibr">[16,</ref><ref type="bibr">17]</ref>, and reduction and minimization of circuit complexity and power consumption <ref type="bibr">[18,</ref><ref type="bibr">13,</ref><ref type="bibr">19,</ref><ref type="bibr">20,</ref><ref type="bibr">14,</ref><ref type="bibr">21]</ref> through the derivation of FFT-like algorithms. Challenges remain to develop algorithms for solving problems in diverse disciplines while offering low-complexity, accuracy, and stability at the same time <ref type="bibr">[9,</ref><ref type="bibr">22]</ref>. However, if we could solve linear systems using fast and recursive algorithms, we could obtain numerically stable algorithms with the same order of complexity <ref type="bibr">[23,</ref><ref type="bibr">24,</ref><ref type="bibr">25,</ref><ref type="bibr">26]</ref>. Thus, we exploit the structure of the Legendre pair matrix equation to obtain a low-complexity and exact algorithm for searching for these objects.</p><p>The FFT is an algorithm that is used to compute the DFT matrix and its inverse efficiently.</p><p>The FFT algorithm can be used to reduce the brute-force calculation of the n &#215; n DFT matrix by an n &#215; 1 vector from O(n 2 ) to O(n log(n)), where n = 2 t (t &#8805; 1) <ref type="bibr">[27,</ref><ref type="bibr">28,</ref><ref type="bibr">29]</ref>. The structure and properties of the DFT matrix yield this complexity reduction. An n &#215; n circulant is another structured matrix and can be defined using O(n) as opposed to O(n 2 ) parameters. More specifically, circulant matrices are completely determined using the first row (or column) by a cyclic shift of the entries to the right (or down). Furthermore, it is known that the circulant matrices can be diagonalized using the DFT and its conjugate transpose and hence computed by using the FFT algorithms <ref type="bibr">[30,</ref><ref type="bibr">31,</ref><ref type="bibr">32,</ref><ref type="bibr">33]</ref>. In this paper, we introduce and incorporate the FFT technique to search for Legendre pairs of odd length &#8467;, efficiently. Thus, we obtain visible speed-ups, especially for odd lengths &gt; 50 while reducing the arithmetic complexity from O(&#8467; 2 ) to O(n log(n)), where n &gt; &#8467; is the closest power of 2 to &#8467;.</p><p>The organization along with the contribution of the paper is as follows. Section 2 presents preliminary results illustrating the use of structured matrices to study the Legendre pair matrix equation and its correlation with the established properties of the two circulant core (2cc) Hadamard matrix. Section 3 presents an algorithm with low arithmetic complexity for computing the product of the DFT matrix with each sequence of the Legendre pair. This algorithm allows for an efficient search for Legendre pairs while minimizing both arithmetic and time complexities. Section 4 presents numerical results demonstrating that the sparse factorization discussed in Section 3 yields an FFT-like algorithm. This, in turn, is utilized in a C implementation, resulting in the algorithm with a low time complexity for searching for Legendre pairs. This algorithm overreaches the time complexity of the existing combinatorial algorithms in searching for Legendre pairs. Finally, Section 5 concludes the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Preliminaries and Trivial Properties of the Legendre Pair Matrix Equation via</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Structured Matrices</head><p>This section begins by reviewing the definition of the Legendre pair matrix equation and discussing its basic properties. In the sequel, the Legendre pair matrix equation will be presented as a structured matrix. Legendre pairs are defined via the concept of the periodic autocorrelation function (PAF). Thus, we start the discussion with the definition of the PAF followed by the Legendre pair sequence as stated below. </p><p>where k + s is taken mod n.</p><p>Each PAF A (s) value is the inner product of the sequence L A and its right cyclic shift by s. For technical reasons and w.l.o.g. (see <ref type="bibr">[34]</ref>) we impose the additional normalization conditions</p><p>where a i and b i , for i = 1, 2, . . ., &#8467; denote the elements of L A , L B respectively.</p><p>When (L A , L B ) forms a Legendre pair of order &#8467; and A, B are two &#8467; &#215; &#8467; circulant matrices with their first rows as L A , L B respectively, a 2cc Hadamard matrix can be constructed as:</p><p>where + stands for +1 and -stands for -1. Let us recall that the determinant of the Hadamard matrix (2), is given by</p><p>In the sequel, we show a relationship between det(H 2&#8467;+2 ) and the Legendre pair matrix equation, which will be defined next, to reassure the Property 3 based on the structured matrices. It is important to note that an even-order Legendre pair does not exist. Had there been one, we would have had a Hadamard matrix of order 2&#8467; + 2, which is congruent to 2 modulo 4. Nevertheless, such a matrix does not exist.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Fundamentals of the Legendre Pair Matrix Equation</head><p>This section starts with the Legendre pair matrix equation, followed by reestablishing the connection between the Legendre pair matrix equation and the 2cc Hadamard matrix via block Gauss-Jordan form and structured matrices.</p><p>Lemma 2.3. (Legendre pair matrix equation in <ref type="bibr">[35]</ref>) Let (L A , L B ) be a Legendre pair of (odd) order &#8467;. Let A, B be two &#8467; &#215; &#8467; circulant matrices, whose first rows are L A , L B respectively.</p><p>Then the following matrix equation is satisfied:</p><p>where I &#8467; denotes the &#8467; &#215; &#8467; identity matrix and J &#8467; denotes the &#8467; &#215; &#8467; all-ones matrix. Moreover, the equation ( <ref type="formula">4</ref>) is called the Legendre pair matrix equation.</p><p>We denote the right-hand-side matrix of the Legendre pair matrix equation by M (&#8467;) = (2&#8467; +</p><p>2)I &#8467; -2J &#8467; , and remark that M (&#8467;) is a circulant matrix with first row equal to r = [2&#8467;, -2, . . . -2</p><p>, where i, j = 1, 2, . . ., &#8467;, -2 if i &#824; = j, where i, j = 1, 2, . . ., &#8467;.</p><p>(</p><p>In the subsequent proposition, we show a relationship linking the determinants of 2cc</p><p>Hadamard matrices denoted as H 2&#8467;+2 in equation (2), with the Legendre pair matrix equation (4), using block Gauss-Jordan form of the 2cc Hadamard matrix. Proposition 2.4. Let H 2&#8467;+2 = &#63726; &#63728; H 11 H 12 H t 12 H 22 &#63737; &#63739; and A, B be two &#8467; &#215; &#8467; circulant matrices satisfying Equation (4), where</p><p>, and</p><p>Proof. One can decompose the matrix H 22 into lower and upper block triangular matrices using the Schur complement of the block A t of the matrix H 22 s.t.</p><p>where A is the non-singular circulant matrix. Thus, we get</p><p>Similarly, we could decompose H 2&#8467;+2 using the nonsingular block circulant matrix H 22 s.t.</p><p>and obtain det(</p><p>). On the other hand, we can continue the block lower and upper decomposition of H 22 in order to decompose the matrix H 22 using a block Gauss-Jordan form of H 22 s.t.</p><p>Since A is non-singular and H 22 admits the Gauss-Jordan elimination, we could obtain the inverse of H 22 s.t.</p><p>Thus, from the above, using the circulant matrices A and B generated by L A and L B , respectively, and followed by the block matrix multiplication, we get</p><p>Since A and B are circulant matrices derived from the Legendre pair L A and L B , respectively, with the normalization condition (1), the sum of each column in the circulant matrices (A t ) -1 B t and B(A t ) -1 equals 1. As a result, the entries in the first and last matrices in the factorization (8) will be simplified. Hence, from the above followed by the matrix multiplication, we get</p><p>From the above and using the matrix H 11 , we get</p><p>Thus, by ( <ref type="formula">7</ref>) and ( <ref type="formula">9</ref>), we get</p><p>Since A and B are non-singular circulant matrices, they are commutative, so we have</p><p>Thus, we get</p><p>Hence, from (4), <ref type="bibr">(10)</ref>, and (11), we get the result.</p><p>In the following proposition, we use the structure of the matrix M (&#8467;) identified via the Legendre pair matrix equation ( <ref type="formula">4</ref>) to obtain the determinant of the Legendre pair matrix equation, for any odd length &#8467;.</p><p>Proposition 2.5. Let M (&#8467;) be defined as in <ref type="bibr">(5)</ref>. Then,</p><p>Proof. The matrix M (&#8467;) is circulant. Thus, by using the well-known decomposition of the circulant matrices via the DFT matrices <ref type="bibr">[36,</ref><ref type="bibr">30,</ref><ref type="bibr">9,</ref><ref type="bibr">37,</ref><ref type="bibr">14]</ref>, M (&#8467;) can be expressed via</p><p>where</p><p>and F * &#8467; is the conjugate transpose of F &#8467; . Furthermore, the diagonal elements of D &#8467; are eigenvalues of the circulant matrix M (&#8467;) . Let these eigenvalues be represented as &#955; j 's associated with M (&#8467;) , then these can be explicitly expressed as</p><p>where j = 0, 1, . . ., &#8467; -1. Thus, the above equation is simplified into</p><p>Since F &#8467; and F * &#8467; are unitary matrices and following equations ( <ref type="formula">13</ref>) and ( <ref type="formula">15</ref>), we get the result.</p><p>We note that Propositions 2.4 and 2.5 confirm that the determinant of the Hadamard matrix can be calculated using equation (3).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Eigenvalues and Eigenvectors of the Legendre Pair Matrix Equation</head><p>In this section, we continue utilizing the structure of the Legendre pair matrix equation to obtain eigenvalues, eigenvectors, characteristic polynomial, spectral radius, and a bound for the spectrum of the matrices A and B. These properties will be utilized as auxiliary results for the facts on PSD values in Section 3.</p><p>Since the Legendre pair matrix equation can be seen as a circulant matrix M (&#8467;) and the matrix M (&#8467;) admits the decomposition (13), the normalized eigenvectors of the circulant matrix M (&#8467;) are the Fourier modes given via v j = 1 &#8730; &#8467; (1, &#969; j , &#969; 2j , . . ., &#969; (&#8467;-1)j ), for j = 0, 1, . . ., &#8467; -1. Moreover, the eigenvalues of the Legendre pair matrix equation are given via equation <ref type="bibr">(15)</ref>. Thus, the matrix M (&#8467;) has the eigenvalues 2 (with multiplicity 1) and 2&#8467; + 2 (with multiplicity &#8467; -1). This leads to the following immediate result based on the characteristic polynomial of the matrix M (&#8467;) . Corollary 2.6. Let M (&#8467;) be defined as in <ref type="bibr">(5)</ref>. Then its characteristic polynomial, denoted by</p><p>Proof. This immediately follows from equations ( <ref type="formula">13</ref>) and <ref type="bibr">(15)</ref>.</p><p>Since the eigenvalues of the Legendre pair matrix equation are known, we can state the spectral radius as follows.</p><p>Corollary 2.7. Let M (&#8467;) be defined as in <ref type="bibr">(5)</ref>. Then its spectral radius is given via</p><p>Proof. This is a direct consequence of the eigenvalues of M (&#8467;) listed in <ref type="bibr">(15)</ref>.</p><p>Since the eigenvalues and spectral radius of the Legendre pair matrix equation are stated, we could obtain a bound for the spectrum of eigenvalues based on the Gershgorin disc. Before presenting the next Corollary, let us introduce the Gershgorin disc as follows <ref type="bibr">[38,</ref><ref type="bibr">39]</ref>.</p><p>Definition 2.8. (Gershgorin disc) Let A be a complex n &#215; n matrix with entries a ij . For i &#8712; {1, 2, . . ., n}, let R i be the sum of the absolute values of the non-diagonal entries in the i th row</p><p>In the following, we use the notation D(a, R) &#8838; C to denote a closed disc with center a &#8712; C and radius R &gt; 0.</p><p>Corollary 2.9. Let M (&#8467;) be defined as in <ref type="bibr">(5)</ref>. Then its eigenvalues lie within the Gershgorin circle</p><p>Proof. This follows immediately from Propositions 2.4 and 2.5, and the Gershgorin circle theorem <ref type="bibr">[38,</ref><ref type="bibr">39]</ref>. We utilize the following example to illustrate the above Corollary.</p><p>Example 2.10. Consider the Legendre pair of order &#8467; = 45, given by the sequences L A and L B :</p><p>In Figure <ref type="figure">1</ref>  Continuing from Corollary 2.9, we obtain the following result based on the eigenvalues of the </p><p>where</p><p>. Furthermore, the matrices D A and D B consist of eigenvalues of the matrices A and B, respectively. Let us denote the eigenvalues of A and B by (&#955; A ) j and (&#955; B ) j , respectively, for j = 0, 1, . . ., &#8467; -1. Thus, using equation ( <ref type="formula">18</ref>) allows us to express the entries of D A and D B by:</p><p>Thus, when j = 0, the above equations simplify to</p><p>Therefore, based on property (1), i.e., the normalization property yielding the sums in the RHS of the above equation to 1, we get that 1 is an eigenvalue of A and also B.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">A Low-complexity Algorithm to Compute PSD Values and Search Legendre Pair</head><p>In this section, we first introduce the DFT matrix followed by the FFT and FFTW algorithms. Finally, we obtain bounds for the PSD values, which can be useful in further pruning the search space of Legendre pairs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">DFT, FFT, and FFTW</head><p>The FFT is the most frequently used algorithm in digital signal processing <ref type="bibr">[40,</ref><ref type="bibr">41,</ref><ref type="bibr">42]</ref>, and is used to efficiently compute the DFT and its inverse. The DFT of a sequence of n inputs x = {x k } n-1 k=0 is a sequence of n outputs y = {y k } n-1 k=0 defined via y = F n x, where</p><p>is the n &#215; n normalized DFT matrix and &#969; n = e -2&#960;i n , which is the superset of &#969; in <ref type="bibr">(13)</ref> as &#969; defines only the primitive odd, i.e., &#8467; th , root of unity. When n = 2 t (t &#8805; 1), the DFT matrix can be computed using the FFT algorithm <ref type="bibr">[27,</ref><ref type="bibr">28]</ref> because the DFT matrix admits the decomposition</p><p>where The difference in complexity of the FFT algorithms from 1965 <ref type="bibr">[27]</ref> and the lowest best-known FFT <ref type="bibr">[29]</ref> is about 25%, and yet there is a gap between mathematical theories and implementation of the highly optimized FFT packages <ref type="bibr">[43,</ref><ref type="bibr">44]</ref>. Authors in these books implemented FFT in practice by creating the FFTW library, which is a widely used free software library that computes the DFT and its various special cases. Here, we will adopt the FFTW to compute the PSD of the candidate Legendre pairs with the reduction of arithmetic complexity from O(&#8467; 2 ) to O(n log(n)), and also a drastic time complexity reduction in Section 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">A FFT-like Algorithm to Compute PSD Values</head><p>In this section, we will propose a low arithmetic complexity algorithm for the computation of the set of PSD values, as an alternative to the conventional brute-force approach involving the product of the DFT matrix with each of the two sequences L A and L B of the Legendre pair (L A , L B ). This low arithmetic complexity algorithm will be utilized as a foundation to search for Legendre pairs with a low time complexity algorithm. The algorithm is presented through the matrix representation of Bluestein's algorithm. Before starting the algorithm, let us define the PSD values. Then, the PSD values of these sequences are defined as: Based on the PSD values of the two sequences, we have the PSD invariant property s.t.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>PSD(L</head><p>In other words, Legendre pairs are characterized by the constancy of PAF (i.e., the PAF values sum to -2) and the constancy of the PSD (i.e., the PSD values sum to 2&#8467; + 2). We illustrate these constancy properties of PAF and PSD with the following example:</p><p>Example 3.2. Consider the Legendre pair of order &#8467; = 45 (for which m = 22, 2&#8467; + 2 = 92)</p><p>&#8226; the PAF constancy property (with the PAF constant -2) is materialized as follows:</p><p>2 -2 s 12 13 14 15 16 17 18 19 20 21 22</p><p>&#8226; the PSD constancy property (with the PSD constant 2&#8467; + 2 = 92) is materialized as follows:</p><p>s, PSD(L_A,s), PSD(L_B,s), PSD(L_A,s) + PSD(L_B,s)</p><p>1, 18.78398162, 73.21601830, 92 2, 75.60311755, 16.39688232, 92 3, 75.70559038, 16.29440935, 92 4, 67.60652789, 24.39347193, 92 5, 58.80933390, 33.19066596, 92 6, 58.94004336, 33.05995648, 92 7, 16.29533595, 75.70466380, 92 8, 12.42889922, 79.57110066, 92 9, 32.58359208, 59.41640783, 92 10, 8.393304174, 83.60669564, 92 11, 21.17900710, 70.82099280, 92 12, 43.12722512, 48.87277485, 92 13, 72.68711906, 19.31288084, 92 14, 89.20751650, 2.792483344, 92 15, 76, 16, 92 16, 88.23332322, 3.766676806, 92 17, 69.87139244, 22.12860750, 92 18, 59.41640784, 32.58359212, 92 19, 49.23886682, 42.76113297, 92 20, 4.797361782, 87.20263814, 92 21, 6.227140824, 85.77285911, 92 22, 6.864911913, 85.13508805, 92</p><p>We note here that the PSD(L A , s) and PSD(L B , s) are the square of the magnitude of the eigenvalues of the matrices A and B generated by the Legendre pair sequences (L A , L B ) in equation ( <ref type="formula">19</ref>) for s = 1, 2, . . ., &#8467;-1 2 .</p><p>Remark 3. </p><p>where</p><p>T n is the symmetric Toeplitz matrix determined via the first column (or row) s.t. t n&#215;1 = t 0 , t 1 , t 2 , . . ., t (&#8467;-1) , 0, . . ., 0 t , t j = e -&#960;j 2 i &#8467; , and D&#8467; = diag(e -&#960;k 2 i &#8467; ) &#8467;-1 k=0</p><p>.</p><p>The DFT(L B ) is computed using the same factorization as in <ref type="bibr">(23)</ref> with the input sequence L B .</p><p>Proof. The symmetric Toeplitz matrix T &#8467; is padded with zeros in order to obtain another symmetric Toeplitz matrix T n with a length of n, which is the closest power of 2 to &#8467;. The first column (or row) of T n is determined using t n&#215;1 = t 0 , t 1 , t 2 , . . . , t (&#8467;-1) , 0, . . . , 0 t . Next, we embed T n into the</p><p>, where a symmetric Toeplitz matrix Tn is determined via its first column (or row) s.t. tn&#215;1 = t 0 , 0, . . ., 0, t (&#8467;-1) , t (&#8467;-2) , . . ., t 2 , t 1 t . Next, we use 2-FFT (as opposed to the well-known 3-FFTs computing a Toeplitz matrix-vector product) to compute</p><p>&#63739; , and F2n is the normalized DFT matrix. Next, we extract</p><p>Afterwards, we extract T &#8467; from T n using K &#8467;&#215;n . Finally, scaling T &#8467; by diagonal matrices D&#8467; and getting the product of the matrices with each of the two sequences L A and L B of the Legendre pair (L A , L B ) gives the result.</p><p>Remark 3.5. 1. The above proposition shows that the matrix representation of Bluestein's FFT algorithm is executed via the symmetric Toeplitz matrices T &#8467; <ref type="bibr">[47,</ref><ref type="bibr">44]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>2.</head><p>We recall here that, computing the Toeplitz matrices by a vector using 2-FFTs <ref type="bibr">[14,</ref><ref type="bibr">37]</ref> as opposed to 3-FFTs <ref type="bibr">[9,</ref><ref type="bibr">15]</ref> for an even length s.t. n = 2 t had been proposed.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>3.</head><p>One could also pad the odd length &#8467; Legendre pair sequences (L A , L B ) to the closet even length of n = 2 t s.t. n &gt; &#8467;, and execute the product of the DFT matrix with each of the two sequences L A and L B of the Legendre pair (L A , L B ) by using the 2-FFT algorithms in <ref type="bibr">[14,</ref><ref type="bibr">37]</ref>. Since the purpose is also to search for Legendre pairs of odd length &#8467; using a low time complexity-based FFTW in C (as in Section 4), which is the Bluestein's FFT algorithm, we proceed with the matrix factorization of Bluestein's FFT in Proposition 23 in order to reduce arithmetic and time complexities. where n &gt; &#8467;.</p><p>Proof. Following equation ( <ref type="formula">23</ref>), the Toeplitz matrix T &#8467; is computed using T n followed by 2-FFTs with complexity O(n log(n)). The cost of computing each diagonal matrix D&#8467; and D 2n by a vector cost O(&#8467;) and O(n), respectively. Thus, the overall cost is O(n log(n)) as n &gt; &#8467;.</p><p>We recall here that there is also a Winograd FFT algorithm <ref type="bibr">[48]</ref> and it minimizes the number of multiplications at the expense of a large number of additions, but this trade-off didn't benefit current processors that need specialized hardware multipliers and was not utilized to implement the FFTW <ref type="bibr">[44]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Utilize the FFT-like Algorithm for Noise Filtering</head><p>The PSD shows the influence of noise signals over a spectrum of frequencies. Thus, the PSD serves as a tool for analyzing noise signals and identifying harmonics, guiding the design of filters.</p><p>The FFT algorithm is a powerful technique for analyzing the autocorrelation function of a discrete noise signal in order to characterize its PSD. Thus, the FFT-like algorithms are highly efficient in accurately determining the spectral information of dominant noise powers.</p><p>In this section, we utilize the proposed FFT-like algorithm with &#8467; = 45 for noise filtering with a simple example. We consider a function of time f (t) = cos(&#969; 1 t)+sin(&#969; 2 t) with frequencies &#969; 1 = 40&#960;</p><p>and &#969; 2 = 240&#960;. We then add a large amount of Gaussian white noise to this signal as shown in the first panel of  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Numerical Results for Time Complexity of Searching for Legendre Pairs</head><p>In this section, we show that the FFTW-based matrix factorization,i.e., Bluestein's algorithm in Section 3 could be utilized to speed up the process of searching Legendre pairs compared to the existing combinatorial searching algorithms. We illustrate these speedups in the particular cases s.t. &#8467; = 45 and &#8467; = 63. [</p><p>Here is a pair of sequences of length 5, that constitutes the 9-compression of the Legendre pair of order 45 presented in Example 3.2 s.t.</p><p>[[1, -3, 3, 3, -3], [1, 3, -3, -3, 3]].</p><p>Our currently available C code implementations find Legendre pairs of order &#8467; = 45 in about 20 minutes, while the FFTW-enabled C codes find Legendre pairs of order &#8467; = 45 in less than 10 seconds. Thus, the proposed FFT-like algorithm enables the search for Legendre pairs of order &#8467; = 45 with a 99% efficiency, outperforming existing methods.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Numerical Results for &#8467; = 63</head><p>The factorization &#8467; = 63 = 7 &#8226; 9 allows one to employ 7-decompression <ref type="bibr">[6]</ref> of a pair of sequences of length 9, to construct Legendre pairs of order &#8467; = 63. In particular, we employ two copies of the same sequence of length 9 s.t.</p><p>This sequence has the following properties: From the above data, one can conclude that the entire search space can be traversed super fast with our novel implementation, while the existing C implementation for Legendre pairs of order &#8467; = 63 did not even produce any results i.e. not even one Legendre pair after 24 hours.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Conclusion</head><p>In this paper, we provided novel perspectives on Legendre pairs, using concepts from matrix analysis and linear algebra. These perspectives can be used (with great benefits) in current computational schemes to search for Legendre pairs. The structured matrices perspectives on Legendre pairs make use of the Legendre pair matrix equation, to investigate its properties. We introduced a structured matrix approach to obtain a low arithmetic complexity algorithm for computing the product of the DFT matrix with each sequence of the Legendre pair, regardless of their odd lengths. This method enables efficient computation of power spectral density values, and hence, search for Legendre pairs with reduced time complexity. Finally, we showed numerical results based on the C implementation of FFTW in searching for Legendre pairs while attaining a low time complexity algorithm so that the proposed technique excels the conventional combinatorial algorithms in searching Legendre pairs. More specifically, we had shown that the proposed FFT-like algorithm significantly accelerates the search for Legendre pairs of orders 45 and 63, achieving at least 99% improvement in speed compared to conventional algorithms, in the literature.  </p></div></body>
		</text>
</TEI>
