Full text
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures GREGORIO QUINTANA-ORTΓ, FERNANDO HERNANDO, and FRANCISCO D. IGUAL The minimum distance of a linear code is a key concept in information theory. Therefore, the time required by its computation is very important to many problems in this area. In this paper, we introduce a family of implementations of the Brouwer-Zimmermann algorithm for distributed-memory architectures for computing the minimum distance of a random linear code over F2 . Both current commercial and public-domain software only work on either unicore architectures or shared-memory architectures, which are limited in the number of cores/processors employed in the computation. Our implementations focus on distributed-memory architectures, thus being able to employ hundreds or even thousands of cores in the computation of the minimum distance. Our experimental results show that our implementations are much faster, even up to several orders of magnitude, than current implementations widely used nowadays. ACM Reference Format: Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual. 2020. Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures. ACM Trans. Math. Softw. 0, 0, Article 0 ( 2020), 24 pages. https://doi.org/0 1 INTRODUCTION In 1948, Claude Shannon published his seminal paper βA Mathematical Theory of Communicationsβ [ 22 ], which is widely recognized as the foundation of the Information Theory field. As of today, this work is still considered a key reference in the area, as it describes the concept of information and how to measure it; actually, nowadays it is even more up-to-date than ever given the widespread development of network communications. As information is sensitive to be corrupted due to external factors βe.g. noiseβ, Coding Theory can be leveraged to detect and correct errors [ 16 ]. It is worthwhile mentioning that Coding Theory goes beyond error correction, as it can be used for many other purposes, namely: quantum computing [ 7 ], biological systems [ 1 , 17 ], data compression [ 2 , 15 ], cryptography [ 18 , 19 ], network coding [ 13 ], or secret sharing [ 8 , 21 ], among others. For practical reasons, the most common codes employed are usually linear codes, i.e., vector subspaces πΆ of dimension π within a vector space of dimension π . In addition to π and π , a crucial parameter to be considered is the Hamming minimum distance π of the vector subspace πΆ , since it strongly determines error detection and error correction capabilities. In other words, if a corrupted word π is received, the most likely codeword that was sent is the closest to π in πΆ , according to the mentioned metric. If the minimum distance of a linear code is π , up to πβ 1errors can be detected and up to βπβ1 2β errors can be corrected. The knowledge of π is not only crucial to detect and correct errors, but also in the other applications mentioned above. Authorsβ address: Gregorio Quintana-OrtΓ; Fernando Hernando; Francisco D. Igual. Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]. Β©2020 Association for Computing Machinery. 0098-3500/2020/0-ART0 $15.00 https://doi.org/0 ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:2 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual The scientific literature contains fast algorithms for computing βor boundingβ the minimum distance of linear codes with a complex structure, such as the Reed-Solomon codes or the BCH codes [ 16 ]. In contrast, computing the minimum distance of random linear codes is an NP-hard problem. As of today, the fastest algorithm for computing this minimum distance is the so-called Brouwer-Zimmerman algorithm [ 24 ], which was described and updated by Grassl [ 9 ]. Nevertheless, there are some other algorithms that are faster in some special cases, such as when the dimension is small and the length is large. Hernando et al. [ 11 ] carried out a brief performance comparison of an implementation of Brouwer-Zimmermann and an exhaustive algorithm based on the Gray code for some linear codes with different dimensions and lengths. The commercial software MAGMA [ 4 ] contains an implementation of this algorithm over both small and large fields. The public-domain software GAP [ 3 , 10 ] contains an implementation of this algorithm over F2 and F3 . A family of implementations of this algorithm over F2 with much higher performances has been recently developed [ 11 ]. These implementations produced higher performances on both serial computers (unicore processors) and shared-memory architectures with multiple/multicore processors by exposing and efficiently exploiting thread-level and data-level parallelism by means of vector instructions. After submitting this manuscript, Bouyukliev et al. [ 6 ] developed a modification of the Brouwer- Zimmermann algorithm that can accelerate the original algorithm in some cases by creating and processing additional systematic sets in order to enumerate a fewer number of codewords. However, the computation cost of computing the distance of large random linear codes is really humongous even when employing shared-memory architectures with several cores. As the number of cores in these architectures is limited, a new approach is presented in this paper. We introduce several new efficient implementations, also over F2 , that can be employed in distributedmemory architectures with hundreds (or even thousands) of cores. Experiments show that the new implementations are scalable and can compute the minimum distance of the random linear codes much faster than current optimized shared-memory implementations. In fact, the computation of the minimum distance of a random linear code with the public-domain GAP (Guava) software took 5 days, whereas the computation of the same distance took only 5 minutes with our new implementations. This article is organized as follows: Section 2 introduces the necessary background in order to make this article self-contained. Section 3 describes several new algorithms and implementations for distributed-memory architectures. Section 4 presents the performances of the the new algorithms, and compares the results with current software. Section 5 contains the conclusions. 2 BACKGROUND The objective of this section is twofold: First, to provide the necessary mathematical tools employed in the rest of the manuscript; second, to review the new fast implementations for computing the minimum distance of a random linear code introduced in [11]. Although a part of the mathematical background is described for Fπ , the algorithms are described and implemented over F2. 2.1 Mathematical Background Let π be a prime number and π=ππ a power of it. We denote by Fπ the finite field with π elements. By definition, a linear code πΆ is a vector subspace of Fπ π . The dimension of πΆ as a vector subspace is denoted by π and is referred as the dimension of the linear code. The encoding is done via the generator matrix, i.e., a πΓπ matrix denoted by πΊ , whose rows form a base of πΆ . After elementary row operations and columns permutations, any generator matrix can be written in the systematic form πΊ=(πΌπ|π΄) , where πΌπ is the identity matrix of dimension π , and π΄ is a πΓ (πβπ) matrix. To ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures 0:3 encode the information, it is only needed to multiply (π1, . . . ,ππ)(πΌπ|π΄)=(π1, . . . ,ππ,ππ+1, . . . ,ππ) , introducing πβπ new symbols, which eventually will help to detect and correct errors. In the decoding process, if a corrupted word is received, it is replaced by the closest codeword, in case it is unique. Therefore, a metric to measure the closeness is needed. In coding theory, the most common metric is the Hamming distance. Given two vectors π,π βFπ , the Hamming distance between π=(π1, . . . , ππ)and π=(π1, . . . ,ππ)is: d(π,π)=#{π|ππβ ππ}. Then, the minimum distance of a linear code πΆis: d(πΆ)=min{d(π,π) | π,π βπΆ}. Since the code is linear, the minimum distance coincides with the minimum weight: wt(πΆ)=min{wt(π) | πβπΆ}, where wt(π)=d(π, 0). For the sake of simplicity, in the following we will use π instead of d(πΆ) will refer to either the minimum distance or the minimum weight. A linear code with minimum distance π can detect up to πβ 1errors and can correct up to βπβ1 2β errors. Computing the parameter π for a random linear code is a NP-hard problem [23], and the corresponding decision problem is NP-complete. To this day, the fastest algorithm for computing the minimum distance of a random linear code is the so-called Brouwer-Zimmerman algorithm [ 24 ], which was described and slightly modified in [ 9 ]. The method for F2 is outlined in Algorithm 1. The key components in this algorithm are the information sets, i.e, a subset of π indices π={π1, . . . , ππ} β { 1 , . . . , π} such that the corresponding columns of the generator matrix πΊ are linearly independent. There are several approaches for finding the maximum number of disjoint information sets. Despite its crucial role, the computational cost of this step is negligible compared with the rest of the algorithm. Assume that one has found πβ 1disjoint information sets ππ , π= 1 , . . . ,π β 1. For each disjoint information set ππ , a matrix in systematic form Ξπ=(πΌπ|π΄π) can be obtained. In addition to that, there are πβπ(πβ 1 ) columns in πΊ that do not form an information set, i.e., the corresponding columns have rank strictly less than π , say ππ . After elementary row operations and column permutations, the following matrix can be obtained: Ξ π=ξπΌπππ΄ 0π΅ξ. Once the matrices Ξ 1, . . . , Ξ π have been computed, the process of enumerating codewords can proceed. This process is as follows: A lower bound πΏ is initialized to one, and an upper bound π is initialized to πβπ+ 1. First, all the linear combinations of the form πΒ·Ξπ , π= 1 , . . . ,π where wt(π)= 1are generated. For each linear combination, if its weight is smaller than π , the upper bound π is updated to the new weight. After processing all the vectors π of weight one, the lower bound is increased in πβ 1units. Then, if πΏβ₯π , the minimum weight is π and the algorithm stops. Otherwise, this same process is repeated for all vectors π such that wt(π)= 2, then wt(π)= 3, and so on, until πΏβ₯π, in which case πis the minimum distance. 2.2 Improved algorithms Hernando et al. [ 11 ] introduced several new algorithms and implementations that were faster than both current commercial software and public-domain software, including accelerated versions of both the brute-force algorithm and the Brouwer-Zimmermann algorithm. These algorithms were designed for both unicore systems and shared-memory architectures (multicore and multiprocessors). Since the new parallelizations for distributed-memory computers are based on and make ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:4 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual Algorithm 1 Minimum weight algorithm for a linear code πΆ Require: A generator matrix πΊof the linear code πΆwith parameters [π,π,π]. Ensure: The minimum weight πof πΆ. 1: πΏ:=1;π:=πβπ+1; 2: π:=1; 3: while πβ€πand πΏ<πdo 4: for π=1, . . . ,π do 5: π:=min{π, min{wt(πΞπ):πβFπ 2|wt(π)=π}} ; 6: end for 7: πΏ:=(πβ1)(π+1) + max{0,π +1βπ+ππ}; 8: π:=π+1; 9: end while 10: return π; heavy use of these algorithms, we proceed first with a brief description of these serial versions. The reader can refer to [11] for an in-depth description and detailed analysis. The focus of all the algorithms is the generation of all the linear combinations since it is the most compute-intensive part. The next descriptions and algorithms do not show the updates of the lower and upper bounds ( πΏ and π , respectively), nor the termination condition to simplify the notation. All the algorithms stop as soon as the lower bound is equal to or larger than the upper bound after processing a Ξmatrix. A common first step is the computation of the Ξ matrices out of the generator matrix πΊ . As the cost of this part is usually much cheaper than the rest of the algorithm, and its results can greatly affect the overall computational cost of the algorithm, several random permutations are applied to the original generator πΊ in order to find one permutation with both the largest number of full-rank Ξ matrices and the largest rank in the last Ξ matrix. LisonΔk et al. [ 14 ] described how to perform a more clever election of the Ξmatrices. Once the Ξ matrices have been computed, the basic goal of the Brouwer-Zimmermann algorithm is simple: For every Ξ matrix, the additions of all the combinations of its rows taken one at a time must be computed, and then the minimum of the weights of those additions must be computed. This process is repeated then taking successively two rows at a time, then taking three rows at a time, etc. After processing each Ξ matrix in each of these stages, the lower and upper bounds are checked, and this iterative process finishes as soon as the lower bound is equal to or larger than the upper bound. 2.2.1 Serial algorithms . All the algorithms presented hereafter focus on how to generate the different codewords, that is, line 5 in Algorithm 1, with as few additions as possible. All of them enumerate exactly the same number of codewords, which depends on the maximum number of linear combinations πgenerated. The number of linear combinations enumerated is: π π βοΈ π=1ξπ πξ, where π is the number of Ξ matrices. This number depends on the ranks of Ξ matrices. On the other hand, the number of additions carried out in each algorithm is completely different. In [ 11 ], we describe in detail the cost in terms of additions of the code within the innermost for loop. Further interesting references for algorithms that minimize the number of additions are [ 12 ] as a general reference and [5] for linear codes. ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures 0:5 Basic algorithm. This is an straightforward implementation of the Brouwer-Zimmermann algorithm. Let us say that a Ξ matrix has π rows, then the basic algorithm generates all the combinations of the π rows taken with an increasing number of rows. For every generated combination, the rows of this combination are added, and the overall minimum weight is updated. This method is outlined in Algorithm 2. The Get_first_combination() function returns true and the row indices of the first combination, such as ( 0 , 1 , 2 , . . . ,π β 1 ) . In this one and the next algorithms a combination is represented as a sequence of row indices, where the first row index is zero. The Get_next_combination( π) function receives a combination π and returns both true and the next one if there is one. The Process_combination( π,Ξ) function computes the weight of the addition of the rows of Ξ with indices in π . Besides, it updates the lower and upper bounds if needed. Though in this algorithm the order in which the combinations are generated is not important, the lexicographical order was employed to reduce the number of cache misses. Algorithm 2 Basic algorithm Require: A generator matrix πΊof the linear code πΆwith parameters [π,π,π]. Ensure: The minimum weight of πΆ, i.e., π. 1: Beginning of Algorithm 2: [Ξπ] = Compute_gamma_matrices( G ); 3: for π=1,2, . . . do 4: for every Ξmatrix (πΓπ) of πΊdo 5: // Process all combinations of the πrows of Ξtaken πat a time: 6: ( done, c ) = Get_first_combination(); 7: while ( ! done ) do 8: Process_combination( c, Ξ); 9: ( done, c ) = Get_next_combination( c ); 10: end while 11: end for 12: end for 13: End of Algorithm Optimized algorithm. In the lexicographical order, the only difference between each combination and the next one (or the previous one) is usually the last element; hence, this algorithm reduces the number of additions by saving and reusing the addition of the first πβ 1rows. The outline of this algorithm is very similar to the previous one. The main difference is that combinations are generated with πβ 1rows instead of π rows. Therefore, the new Process_combination( π,Ξ ) function must perform the following two tasks: First, it adds and saves the combination with the πβ 1rows with indices in π . Then, it builds all the combinations with π rows by adding the corresponding rows to the previous addition, thus saving a considerable number of row additions (compute operations) and row accesses (memory operations). Stack-based algorithm. The goal of this algorithm is to further reduce the number of additions needed to compute the addition of the πβ 1rows, performed in each iteration of the while loop, by using a stack with πβ 1vectors of dimension π and the lexicographical order. The stack, which only requires a few KB, stores data progressively. When the combination π=(π1,π2, . . . , ππβ1) , where ππ is a row index, is being processed, the stack contains the following elements (incremental additions): row π1 , the addition of rows (π1,π2) , the addition of rows (π1,π2,π3) , ..., and finally the addition of rows (π1,π2,π3,Β· Β· Β·ππβ1) . The main savings of this algorithm are obtained in the computation of ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:6 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual the addition of the πβ 1rows because the top of the stack contains that information. Then, when computing the next combination of πβ1rows, the contents of the stack must be rebuilt from the left-most index that has changed between the current combination and the next one. Algorithm with saved additions. The key to this algorithm is the efficient composition of combinations with up to π elements to build combinations with larger number of elements. If π=π+π with numbers π and π such that 0 <πβ€π , 0 <πβ€π , the addition of the rows of the combination π with indices (π1,π2, . . . , ππ,ππ+1. . . ,ππ) can be computed as the addition of the rows of the combination (π1,π2, . . . , ππ) (called left combination) and the combination (ππ+1. . . ,ππ) (called right combination). In this way, with just one addition the desired result can be obtained if the additions of the combinations with up to at least max(π,π) rows have been previously saved. Therefore, if π=π+π , to obtain the combinations of π rows taken π at a time, the combinations of π rows taken π at a time (left combinations) and the combinations of π rows taken π at a time (right combinations) must be composed. However, not all those combinations have to be processed since there are some restrictions. These restrictions to the combinations must be applied efficiently to accelerate this algorithm since otherwise an important part of the performance gains could be lost. The outline of the method is very different to the previous ones since it can be implemented as a recursive algorithm (see [ 11 ] for further details). The data structure that stores the saved additions of the combinations of the rows of every Ξ matrix must be built in an efficient way. Otherwise, the algorithm could underperform for matrices that finish after only a few generators. For every Ξ matrix, this data structure contains several levels ( π= 1 , . . . , π ), where level π contains all the combinations of the π rows of the Ξ matrix taken π at a time. The way to do it in an efficient way is to use the previous levels of the data structure to build the current level. A similar approach proposed by Bouyukliev [ 5 ] further reduces the number of additions to one. This method is even faster, but its execution for larger number of rows is limited by the available memory. In contrast, our implementation performs some more additions in some cases, but it works for any number of rows (since it does not exceed the available total memory). Algorithm with saved additions and unrolling. This algorithm reduces the number of memory accesses (not additions) by processing several left combinations at the same time (called unrolling). To do that, right combinations will be reused when brought from main memory. For instance, by processing two left combinations at the same time, the number of data being accessed can be nearly halved since each accessed right combination is used twice (one time for every one of the two left combinations), thus doubling the ratio of vector additions to vector accesses. However, this technique is more effective when the two left combinations must be composed with the same subsets. To achieve that, the right-most element of the two left combinations must be the same. As in the lexicographical order the right-most index always changes, a variant was employed. Vectorization and other implementation details. The main advantage of hardware vector instructions is to be able to process many elements simultaneously by using data stored in large vector registers. Although the length π is usually smaller than a few hundreds (very small compared with the size of modern vector registers), an efficient vectorization was achieved. Four-byte integers were employed to store data, thus packing 32 elements into each integer and hence leveraging vector instructions to boost performance on modern and legacy computing architectures. 2.2.2 Parallel algorithms for shared-memory architectures . The parallelization of the basic, optimized, and stack-based algorithms do not render good results because of the restrictions of the loop sizes and the size of the critical regions in comparison with the amount of work that can be simultaneously executed. See Hernando et al. [11] for more details. ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures 0:7 In contrast, the parallelization of the two algorithms with saved additions is much easier and more effective. However, to create a large-grain parallelism, it must be parallelized only for the first level of the recursion. Though we used a small critical region for updating the overall minimum weight (a reduction operation), the impact of this critical region was minimized because of the small computational cost of the operation and by making every thread work with local variables throughout its execution, and by updating the global variables just once at the end. In the parallelized codes, OpenMP [20] was employed. 3 NEW ALGORITHMS AND IMPLEMENTATIONS FOR DISTRIBUTED-MEMORY ARCHITECTURES This section describes several new algorithms for distributed-memory architectures. Two families of algorithms have been developed: The first family employs a dynamic distribution of tasks, whereas the second family employs a static distribution of tasks. Each family comprises four different algorithms. Algorithm 3 Distributed algorithm Require: A generator matrix πΊof the linear code πΆwith parameters [π,π,π]. Require: A prefix size π(integer value). Require: The number of processes to employ π(integer value). Ensure: The minimum weight of πΆ, i.e., π. 1: Beginning of Algorithm 2: π= Process_identifier(); // Number between 0 and π-1. 3: [Ξπ] = Compute_gamma_matrices( G ); 4: for π=1,2, . . . do 5: for every Ξmatrix (πΓπ) of πΊdo 6: // Process all combinations of the πrows of Ξtaken πat a time: 7: Process_all_combinations( Ξ,π,π,π,π); 8: end for 9: end for 10: End of Algorithm 3.1 Distributed-memory algorithms outline The main outline of all the distributed algorithms is common, and can be found in Algorithm 3. Although the structure is similar to the Brouwer-Zimmermann algorithm (see Algorithm 1) and the serial algorithm (see Algorithm 2), there are some subtle differences that need to be described. As usual in distributed-memory programming, in this distributed algorithm all processes execute the algorithm from the beginning. Then, inside the Process_all_combinations function both the distribution among processes and the parallel computation of all the combinations of the rows of Ξ taken π at a time are performed. This distribution of combinations among processes can be performed in a dynamic or in a static way, thus generating two different families of algorithms. The Process_all_combinations function will be described later for both families of algorithms. Note that this algorithm requires two new parameters: π is the so-called prefix size, and π is the number of processes to be employed. These two parameters strongly determine the parallelization of the computational process. Usually, the prefix size π must be smaller than π . Although inside the innermost for loop combinations must contain π rows of Ξ , in the computational process the basic task to be assigned ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:8 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual to processes contains only π rows (assuming πβ€π ). If only one different combination of π rows was assigned to every process, the overhead generated by a too small computational task would make the parallelization very slow and thus useless. In contrast, by assigning π rows to every process, we can increase the size of the computational task assigned to every process. Once a process receives a combination π of π elements, it must generate and process all the combinations with π elements starting with π . Therefore, π determines the task size of the distributed algorithms, where each one can be assigned to a different process in a distributed implementation. A task or combination π with π elements is also called a prefix, since the combination π will be then employed to generate all the combinations with πelements starting with π. It is important to study in detail the effect of the prefix size on the number of tasks and on the computational cost of tasks. 3.1.1 Impact of the prefix size on the number of tasks. First, the effect of the prefix size on the number of tasks is explored. The number of tasks is (ξπβ(πβπ) πξ) for every value of π being processed (every iteration of the For π loop). In fact, when working with usual values of π and π ( π is usually smaller than a few hundreds and π is usually smaller than 20), the smaller the prefix size, the fewer tasks will be generated. With those values, just by increasing the prefix size by one, the number of prefixes (and tasks) to be processed is increased by about one order of magnitude. 3.1.2 Impact of the prefix size on the computational cost of tasks. A prefix size π requires that in every task only the proper combinations of πβπ elements are composed with the prefix. Therefore, the smaller the prefix size, the larger the computational cost of tasks will be, and vice versa. It is interesting to note that the cost of processing a prefix is very heterogeneous, and it strongly depends on the right-most element in the prefix, since it determines the number of combinations with π elements to be generated starting with the prefix (or combination with π elements). Obviously, the smaller the right-most element of the prefix, the more combinations with π elements must be generated and processed, and the larger the right-most element of the prefix, the fewer combinations with π elements must be generated and processed. For instance, if π= 50, π= 5, and π= 3, the cost of processing the prefix ( 0 , 1 , 2 ) is much larger than the cost of processing the prefix ( 0 , 1 , 47 ) , since the first prefix requires a lot of combinations with 5 elements to be generated and processed, whereas the second prefix only requires one combination with 5 elements to be generated and processed: (0,1,47,48,49). The advantage of distributing prefixes is that every prefix can be processed in parallel, but its main disadvantage is the extremely wide range of the computational cost of processing prefixes. Some prefixes require a lot of time, whereas other prefixes are almost instantaneous. 3.1.3 Orderings in combination generation. The distributed algorithm shown in Algorithm 3 can employ any order to generate the combinations with π rows inside the Process_all_combinations function. Nevertheless, in our implementation we have employed two orders: the lexicographical order and the left-lexicographical order, a variant of the first one: β’ In the lexicographical order, the right-most element is the one that changes most. For instance, if π= 6, π= 4, π= 3, the prefixes are generated in the following order: ( 0 , 1 , 2 ) , ( 0 , 1 , 3 ) , (0,1,4),(0,2,3),(0,2,4),(0,3,4),(1,2,3),(1,2,4),(1,3,4), and (2,3,4). With this ordering, the computational cost of the prefixes is usually (although not always) decreasing, as it depends on the right-most element of the prefix. For instance, in the previous example the prefix ( 0 , 1 , 4 ) appears before the prefix ( 0 , 2 , 3 ) , but the cost of processing the latter is higher than the cost of processing the former one. ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures 0:9 β’ In the left-lexicographical order, the left-most element is the one that changes most. For instance, if π= 6, π= 4, π= 3, the prefixes are generated in the following order: ( 0 , 1 , 2 ) , (0,1,3),(0,2,3),(1,2,3),(0,1,4),(0,2,4),(1,2,4),(0,3,4),(1,3,4), and (2,3,4). As can be seen, in this ordering the right-most element of each prefix is always the same as or larger than the previous one. Therefore, the first prefixes are always much more expensive than the last ones. This might be an advantage when scheduling prefixes to avoid that expensive prefixes arise in the final stages of the algorithm, thus slowing some processes and unbalancing the load. 3.2 Dynamic algorithms Both dynamic algorithms and static algorithms share general outline depicted the Algorithm 3 presented above. However, both families of algorithms implement the the Process_all_combinations function in a different way. Therefore, only this function is presented when describing both families. Algorithm 4 depicts the implementation of the function for the dynamic family. Algorithm 4 Process_all_combinations( Ξ,π,π,π,π) Require: πΊππππ: A gamma matrix. Require: π: The number of elements of Ξtaken at a time. Require: π: The prefix size. Require: π: The process identifier. Require: π: The number of processes. 1: Beginning of Algorithm 2: if π= 0 then 3: // Coordinator process. 4: ( done, c ) = Get_first_combination_with_π_elements(); 5: while ( ! done ) do 6: Receive request of prefix from any process. 7: Send prefix πto the process that just asked for it. 8: ( done, c ) = Get_next_combination_with_π_elements( c ); 9: end while 10: for all the rest of processes do 11: Receive request of new prefix and previous result from any process. 12: Send a poisonous prefix πto the process that just asked for it. 13: end for 14: else 15: // Rest of processes. 16: Send request of new prefix to process 0. 17: Receive prefix πfrom process 0. 18: while (πis not poisonous )do 19: Process_prefix( c, Ξ,π); 20: Send request of new prefix and previous result to process 0. 21: Receive prefix πfrom process 0. 22: end while 23: end if 24: End of Algorithm ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:16 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual Sca Basic Sca Optimized Sca Stack-based Sca Saved Sca Sav.Unr. Vec Saved Vec Sav.Unr. Node engine 0 200 400 600 800 Times in seconds (lower is better) 820 255 196 134 135 96 95 Times vs node engines for ua-mat015 Sca Basic Sca Optimized Sca Stack-based Sca Saved Sca Sav.Unr. Vec Saved Vec Sav.Unr. Node engine 0 5000 10000 15000 20000 25000 Times in seconds (lower is better) 26384 9396 5520 3435 3375 1354 1180 Times vs node engines for ua-mat023 Fig. 1. Times (in seconds) of several node engines on ua for the algorithm D-Lex with prefix 3 and 1 thread per process on the two linear codes. Sca means scalar codes (non-vectorized), whereas Vec means vectorized codes. To improve legibility, the time in seconds is shown on top of all bars. ( Vec Saved and Vec Saved Unrolled ) and the scalar codes of the saved variants ( Sca Saved and Sca Saved Unrolled ), the vectorized codes are about 1.4 times as fast as the scalar codes for the mat015 linear code, and the vectorized codes are about 2.5 times as fast as the scalar codes for the mat023 linear code. The main reason behind the larger impact on the mat023 linear code might be its larger length ( π= 232 versus π= 150). On the other side, the unrolling only seems effective for the mat023 linear code, which can be caused by the larger computational cost of this linear code. Unless otherwise stated, from now on, the node engine with saved additions and vectorization will been employed in the remaining experiments. 4.3 Impact of the prefix size Figure 2 reports the times spent by different distributed implementations on ua to compute the minimum distance versus the prefix size, using one thread per process. Each plot shows four lines: Two different distributed algorithms ( D-Lex Vec and S-Lex Vec ), and two different node configurations (5 and 15 nodes, that is, 60 and 180 cores). Prefix sizes are absolute for the dynamic algorithms, and relative the static algorithms. The D-Lex Vec name means the distributed algorithm D-Lex and the vectorized Saved node engine. Analogously, the S-Lex Vec name means the distributed algorithm S-Lex and the vectorized Saved node engine. Similar results were obtained for the remaining distributed algorithms. As can be seen in Figure 2, for the dynamic algorithm D-Lex the prefix size with the best performances is 3 for the mat015 linear code, and 4 for the mat023 linear code. For this dynamic algorithm, performances drop very quickly as the prefix size increases. This is due to the fact that for the dynamic algorithms the number of parallel tasks generated, assigned and then recollected among the processes is 2 (ξπβ(πβπ) πξ) , where π is the number of rows in the combinations, and π is the prefix size. Therefore, as the prefix increases in one unit, the number of tasks to be processed increases in nearly one order of magnitude, which correspondingly increases the communications costs. As observed in Figure 2, for the static algorithm S-Lex the relative prefix size with the best performances is 4 for mat015, and 6 for mat023. Note that the performances of this algorithm are not so affected by the prefix sizes, and the range of optimal prefix sizes is much larger. The reason is that the communication cost of this algorithm is much smaller and therefore having a larger number of tasks does not usually harm performances so much. ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures 0:17 234567 Prefix size 0 50 100 150 200 250 300 350 Times in seconds (lower is better) Times vs prefixes for ua-mat015 D-Lex Vec on 5 nodes S-Lex Vec on 5 nodes D-Lex Vec on 15 nodes S-Lex Vec on 15 nodes 2345678910 Prefix size 0 500 1000 1500 2000 2500 3000 3500 Times in seconds (lower is better) Times vs prefixes for ua-mat023 D-Lex Vec on 5 nodes S-Lex Vec on 5 nodes D-Lex Vec on 15 nodes S-Lex Vec on 15 nodes Fig. 2. Times (in seconds) of two distributed algorithms on ua for several prefix sizes on the two linear codes. 4.4 Number of threads per process Figure 3 reports the times spent by the distributed implementations on ua to compute the minimum distance versus the number of threads per process. The prefix sizes have been obtained from the previous experiment: The dynamic algorithms employ 3 for mat015 , and 4 for mat023 , whereas the static algorithms employ 4 for mat015 , and 6 for mat023 . Each plot shows four lines: Two different distributed algorithms ( D-Lex Vec and S-Lex Vec ), and two different node configurations (5 and 15 nodes, that is, 60 and 180 cores). Similar results were obtained for the other distributed algorithms. 1 2 3 6 12 Threads per process 0 100 200 300 400 500 Times in seconds (lower is better) Times vs threads per process for ua-mat015 D-Lex Vec on 5 nodes S-Lex Vec on 5 nodes D-Lex Vec on 15 nodes S-Lex Vec on 15 nodes 1 2 3 6 12 Threads per process 0 500 1000 1500 2000 2500 3000 Times in seconds (lower is better) Times vs threads per process for ua-mat023 D-Lex Vec on 5 nodes S-Lex Vec on 5 nodes D-Lex Vec on 15 nodes S-Lex Vec on 15 nodes Fig. 3. Times (in seconds) for different number of processes per node and nodes on ua for the two linear codes. To efficiently employ all the cores in every node, when increasing the number of threads per process, a proportional reduction in the number of total processes must be applied. If each node has 12 cores, π is the number of nodes being used, and π‘ is the number of threads being deployed by each process, then the number of processes must be: π=(πΒ· 12 )/π‘ . When the number of threads per process is increased, the communication cost is usually reduced since there are fewer processes communicating among themselves. In contrast, the computing power of each process is increased since each process has several threads and therefore several cores to process tasks. This larger computational power per process requires larger tasks, which can only be achieved by ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:18 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual generating fewer tasks, which can unbalance the load. Therefore, a balance must be found between the communication cost and the number of tasks. As can be observed in Figure 3, for the dynamic algorithm D-Lex the optimal number of threads per process is 1 when using 5 nodes, and about 2 or 3 when using 15 nodes. In the first case (5 nodes) the number of total processes is not so high, and thus the coordinator process can keep up with the requests. However, in the second case (15 nodes) the number of total processes is much higher, and thus the burden on the coordinator process can reduce performances. In this case, 2 or 3 threads per process are optimal, and achieve a good balance between the communication cost and the task size. On the other hand, for the static algorithm S-Lex the optimal number of threads per process is 1, since the communication cost of this type of algorithms is very small, and they require many tasks to effectively balance the load. 4.5 Distributed-memory algorithms: performance comparison Figure 4 compares the proposed distributed implementations on ua . The prefix sizes and the numbers of threads per process employed in these experiments are the optimal values obtained in the above experiments. For the dynamic algorithms, the prefix size employed by the dynamic algorithms is 3 for mat015 , and 4 for mat023 , and the number of threads per process is 2 in both cases. For the static algorithms, the prefix size employed by the dynamic algorithms is 4 for mat015 , and 6 for mat023 , and the number of threads per process is 1 in both cases. Each plot contains two blocks of bars: one for 5 nodes and the other one for 15 nodes. Each block shows the performances of the eight distributed algorithms. In all cases, the vectorized Sav node engine has been employed. 5 nodes 15 nodes Configuration 0 25 50 75 100 125 150 175 Times in seconds (lower is better) Times vs dist. alg. for ua-mat015 D-Lex D-Lex-2cm D-Lle D-Lex-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc 5 nodes 15 nodes Configuration 0 200 400 600 800 1000 1200 1400 Times in seconds (lower is better) Times vs dist. alg. for ua-mat023 D-Lex D-Lex-2cm D-Lle D-Lex-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc Fig. 4. Times (in seconds) for several distributed algorithms and nodes on ua for the two linear codes. When comparing the dynamic algorithms with the static algorithms, the static algorithms clearly outperform the dynamic algorithms on the mat015 linear code. This improvement is larger when the number of nodes is smaller. In contrast, on the mat023 linear code dynamic algorithms are slightly faster. The reason of this performance difference in the two linear codes might be that the computation of the linear distance of mat015 requires the generation of a much larger number of tasks than the computation of the linear distance of mat023 . Recall that the number of tasks generated by the dynamic algorithms is 2 (ξπβ(πβπ) πξ) , and that π= 77 in mat015 , whereas π= 51 in mat023 . A large number of tasks ( mat015 ) allows the static algorithms to balance the load more evenly, while simultaneously taking advantage of their lower communication cost. Moreover, if the number of cores is not so large (such as in the 5-node configuration), performances of the static algorithms increase because the load balancing of the static algorithms improves with fewer ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures 0:19 processes and because the static algorithms employ one more process to perform computations. In contrast, a smaller number of tasks ( mat023 ) allows the dynamic algorithms to balance the load more evenly than the static algorithms while simultaneously reducing the communication cost. Therefore, the static algorithms seem to require a large number of tasks to balance the load evenly on all the cores, which is a bit difficult when πis small. When comparing the four dynamic algorithms, performances are similar. The mat015 linear case (the one with the shortest computational cost), and the 5-node configuration, performances of the D-Lex are the better. In the other cases, performances are very similar. When comparing the four static algorithms, the performances of the two D-Lex variants (lexicographical order) are slightly better than those of the two D-Lle variants (left-lexicographical order). Figure 5 compares the distributed implementations on skx . The prefix sizes for the dynamic and the static algorithms employed in these experiments are 5 and 6, respectively, since they are optimal or very close to optimal. In both cases, the numbers of threads per process is two. In this case, we only assessed the mat023 linear code since it is more expensive and many cores are going to be employed. The plot contains four blocks of bars for several number of nodes: 8 nodes (384 cores), 16 nodes (768 cores), 32 nodes (1536 cores), and 64 nodes (3072 cores). Each block shows the performances of the eight distributed algorithms. In all cases, the vectorized Sav node engine has been employed. 8 nodes 16 nodes 32 nodes 64 nodes Configuration 0 50 100 150 200 250 300 350 Times in seconds (lower is better) Times vs dist. alg. for skx-mat023 D-Lex D-Lex-2cm D-Lle D-Lex-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc Fig. 5. Times (in seconds) for several distributed algorithms and nodes on skx for mat023. As may be seen in Figure 5, when comparing the dynamic algorithms with the static algorithms, the dynamic algorithms clearly outperform the dynamic algorithms when employing 8, 16, and 32 nodes. When employing 64 nodes, the static ones are very competitive with respect to the dynamic ones. This can be due to the fact that the dynamic algorithm is based on a central process (the coordinator) that distributes the work and gathers the results. As the number of processes grow, this central coordinator may become the bottleneck of the application. On the other hand, static algorithms are not based on a central coordinator and can work independently, but the distribution of the work might not be so efficient. When comparing the four dynamic algorithms, performances of the two algorithms that assigns two tasks at a time ( D-Lex-2cm and D-Lle-2cm ) are always better. This fact can support the previous hypothesis of the bottleneck in the dynamic algorithms. When comparing the four static algorithms, the performances of the new algorithms based on the left-lexicographical order and the snake cyclic ( S-Lex-Snc , S-Lle , and S-Lle-Snc ) are much better for 8, 16, and 32 nodes than the basic static algorithm (S-Lex). ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:20 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual 4.6 Scalability To measure the scalability of our implementations, Figure 6 shows the speedups obtained by several configurations to compute the minimum distance of both linear codes on ua . The prefix sizes and the numbers of threads per process employed in these experiments are the optimal values obtained in the above experiments. Recall that the speedup is the number of times that the parallel algorithm is as fast as the serial (one core) algorithm. Obviously, all the number of cores assessed in this experiment were multiple of 12 (the number of cores per node). 1 12 36 60 120 180 240 Cores 0 50 100 150 200 Speedup (higher is better) Speedup vs cores for ua-mat015 with sca code Perfect Speedup D-Lex D-Lex-2cm D-Lle D-Lle-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc 1 12 36 60 120 180 240 Cores 0 50 100 150 200 Speedup (higher is better) Speedup vs cores for ua-mat023 with sca code Perfect Speedup D-Lex D-Lex-2cm D-Lle D-Lle-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc 1 12 36 60 120 180 240 Cores 0 50 100 150 200 Speedup (higher is better) Speedup vs cores for ua-mat015 with vec code Perfect Speedup D-Lex D-Lex-2cm D-Lle D-Lle-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc 1 12 36 60 120 180 240 Cores 0 50 100 150 200 Speedup (higher is better) Speedup vs cores for ua-mat023 with vec code Perfect Speedup D-Lex D-Lex-2cm D-Lle D-Lle-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc Fig. 6. Speedups of configurations with several number of nodes (and cores) for the two linear codes. on the ua multicomputer. The top row shows the results for the scalar node engine Sav ; the bottom row shows the results for the vectorized Sav node engine. As may be observed in Figure 6, the static algorithms are faster on the mat015 linear code, whereas the dynamic algorithms are faster on the mat023 linear code. As was commented, this might be related to the number of parallel tasks generated: the static algorithms require many tasks to balance the load, and the number of tasks greatly depend on the dimension π . Note that the speedups on the mat015 linear code are smaller than those on the mat023 linear code. The reason is that the computational cost of the mat015 linear code is about one order of magnitude smaller than the computational cost of the mat023 linear code. Note that for the mat015 linear code the total time on 240 cores is about 44 seconds, which is very small in comparison with the total number of cores. The speedups for the scalar codes (top row) are slightly larger that the speedups of the vectorized codes (bottom row) since the vectorized codes are much more efficient on one core. Note that the speedups achieved are remarkable and can be up to about 200 when employing 240 cores. ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures 0:21 Next, we measure the scalability of our implementations on the skx multicomputer to assess a larger number of cores. Figure 7 shows the speedups obtained by several configurations to compute the minimum distance on the skx multicomputer. This figure shows the results for the mat023 linear code (left side) since it is the most expensive one of both previous linear codes. Besides, it also shows the results for the mat020 linear code with parameters [235,51,64] (right side), since this requires twice the total time of the previous one. As many cores (several thousands) are going to be employed, more expensive linear codes must tested. The prefix sizes for the dynamic and the static algorithms employed in these experiments are 5 and 6, respectively, since they are optimal or very close to optimal. In both cases, the numbers of threads per process is two. Obviously, all the number of cores assessed in this experiment were multiple of 48 (the number of cores per node). 1 384 768 1536 3072 Cores 0 500 1000 1500 2000 2500 3000 Speedup (higher is better) Speedup vs cores for skx-mat023 with vec code Perfect Speedup D-Lex D-Lex-2cm D-Lle D-Lle-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc 1 384 768 1536 3072 4608 Cores 0 1000 2000 3000 4000 Speedup (higher is better) Speedup vs cores for skx-mat020 with vec code Perfect Speedup D-Lex D-Lex-2cm D-Lle D-Lle-2cm S-Lex S-Lex-Snc S-Lle S-Lle-Snc Fig. 7. Speedups of configurations with several number of nodes (and cores) for the mat023 linear code (left) and mat020 , a linear code with parameters [235,51,64] (right) on skx . The second linear code requires about twice the cost of the first one. As can be easily observed in Figure 7, the dynamic algorithms are usually faster when employing up to 1536 cores. However, when employing 3072 cores or more, the static algorithms clearly outperform the dynamic ones. Note that the efficiency (speedup divided by the number of cores) is smaller on the skx multicomputer than on the ua one. The reason is that the number of cores employed on the skx is more than one order of magnitude higher whereas similar linear codes are employed. Moreover, the total run time when employing so many cores on the skx is very short. For instance, when employing 3072 cores, the total runtime of processing the mat023 linear code is about 34 seconds, which is a very short execution time. However, when employing more expensive linear codes such as mat020 , speedups and efficiencies grow higher when comparing the same algorithms and same number of cores (such as 1536). Note that the mat020 linear code obtains higher speedups than the mat023 since its computational cost is twice higher. In any case, note that the speedups achieved are remarkable, and they grow as the computational cost grows. 4.7 Comparison with state-of-the-art software implementations Now we compare the performances of the new distributed algorithms in the ua cluster with the performances of both commercial and public-domain software published by Hernando et al. [ 11 ]. In this paper the times were obtained in the cplex server, which is a computer based on AMD processors. It contained an AMD Opteronβ’Processor 6128 (2.0 GHz), with 8 cores (though only 6 were used to let other users work). Its OS was GNU/Linux (Version 3.13.0-68-generic). Gcc compiler (version 4.8.4) was employed. ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:22 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual Although the computational power of the cores in the cplex server is not exactly the same as that of the cores in the ua cluster, the processors were released in similar dates: The processor in the cplex server was launched in the first quarter of 2010, whereas the processor in the nodes of the ua cluster was launched in the first quarter of 2009. Therefore, the processors are of similar generations. We could not assess Magma in the same machine, the ua cluster, because it is a commercial software and we do not have a license for it. Two of the most-common implementations currently available were assessed: β’ Magma [ 4 ]: It is a commercial software package focused on computations in algebra, algebraic geometry, algebraic combinatorics, etc. Version 2.22-3 was employed in those experiments. In the cplex server, vectorization could not be employed since Magma only implements this feature on modern processors with AVX support. Magma was assessed on one core as well as 6 cores since this software is parallelized. β’ Guava [ 3 , 10 ]: GAP (Groups, Algorithms, Programming) is a public-domain software environment for working on computational group theory and computational discrete algebra. It contains a package named Guava that can compute the minimum distance of linear codes. Guava Version 3.12 within GAP Version 4.7.8 was employed in those experiments. Guava does not implement any vectorization, and it only works on one core since the software is not parallelized. In contrast, our implementations can use hardware vector instructions both on old processors (SSE) and modern processors (AVX), both from Intel and AMD. Furthermore, our implementations can employ any number of cores inside a node. Table 2 compares the times required by the commercial software Magma, the times required by the public-domain software Guava, and the times required by the new algorithms for distributedmemory architectures to compute the minimum distance of both linear codes. The vectorized D-Lex algorithm with prefix size 4 and two threads per process was employed on 24 nodes (288 cores). In this table the new distributed algorithms exceedingly reduce the time by making many computers (24 computers with 12 cores each one) cooperate to compute the minimum distance. Thus, large processing times in commercial and public-domain software can be significantly reduced. For instance, computing the distance of the mat023 linear code with the public-domain software Guava required about 5 days and 7 hours, whereas employing our new software required a bit less than 5 minutes. Magma Guava Magma New alg. 1 core 1 core 6 cores 288 cores Code cplex cplex cplex ua mat015 53,052.9 40,804.3 9,562.8 38.9 mat023 503,984.2 456,413.2 85,341.1 282.6 Table 2. Times (in seconds) for the commercial software Magma, the public-domain software Guava, and the new distributed algorithms for computing the distance of both linear codes. 5 CONCLUSIONS In this paper, we have introduced several new implementations of the Brouwer-Zimmermann algorithm for computing the minimum distance of a random linear code over F2 on distributedmemory architectures. Both state-of-the-art commercial and public-domain software can only be ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
Algorithm xxx: Parallel Implementations for Computing the Minimum Distance of a Random Linear Code on Distributed-memory Architectures 0:23 employed on either unicore architectures or shared-memory architectures, which have a strong bottleneck in the number of cores/processors employed in the computation. In contrast, our family of implementations focuses on distributed-memory architectures, which are well known because of its scalability and being able to comprise hundreds or even thousands of cores. In the experimental results we show that our implementations are much faster, even up to several orders of magnitude, than current implementations widely used nowadays because of its capability of employing these scalable architectures. For a particular linear code the time to compute the minimum distance has dropped from about 11 hours and 2.5 hours (in public domain and commerical software, respectively) to half a minute with our code on a distributed-memory machine with 288 cores. For another particular linear code the time to compute the minimum distance has dropped from about 5 days and 1 day (in public domain and commerical software, respectively) to five minutes with our code on a distributed-memory machine with 288 cores. Future work in this area will investigate the development of specific new algorithms and implementations for new architectures such GPGPUs (General-Purpose Graphic Processing Units). Another interesting line of future work is the adaptation of these fast implementations to other finite fields. ACKNOWLEDGEMENTS The authors would like to thank the University of Alicante for granting access to the ua cluster. They also want to thank Javier Navarrete for his assistance and support when working on this machine. The authors would also like to thank Robert A. van de Geijn from the University of Texas at Austin for granting access to the skx cluster. Quintana-OrtΓ was supported by the Spanish Ministry of Science, Innovation and Universities under Grant RTI2018-098156-B-C54 co-financed by FEDER funds. Hernando was supported by the Spanish Ministry of Science, Innovation and Universities under Grants PGC2018-096446-B-C21 and PGC2018-096446-B-C22, and by University Jaume I under Grant PB1-1B2018-10. Igual was supported by Grants PID2021-126576NB-I00 and RTI2018-B-I00, funded by MCIN /AEI/ 10.13039/501100011033 and by βERDF A way of making Europeβ, and the Spanish CM (S2018/TCS- 4423). This work has been supported by the Madrid Government (Comunidad de Madrid, Spain) under the Multiannual Agreement with Complutense University in the line Program to Stimulate Research for Young Doctors in the context of the V PRICIT (Regional Programme of Research and Technological Innovation). REFERENCES [1] Christoph Adami, Information theory in molecular biology, Physics of Life Reviews 1(2004), no. 1, 3 β 22. [2] T. Ancheta, Syndrome-source-coding and its universal generalization, IEEE Transactions on Information Theory 22 (1976), no. 4, 432β436. [3] R. Baart, T. Boothby, J. Cramwinckel, J. Fields, D. Joyner, R. Miller, E. Minkes, E.and Roijackers, L. Ruscio, and C. Tjhai, Guava, a gap package for computing with error-correcting codes, version 3.12, 2012. [4] Wieb Bosma, John Cannon, and Catherine Playoust, The Magma algebra system. I. The user language, J. Symbolic Comput. 24 (1997), no. 3-4, 235β265, Computational algebra and number theory (London, 1993). MR 1484478 [5] Iliya Bouyukliev and Valentin Bakoev, A method for efficiently computing the number of codewords of fixed weights in linear codes, Discrete Applied Mathematics 156 (2008), no. 15, 2986β3004. [6] Stefka Bouyuklieva and Iliya Bouyukliev, An extension of the brouwerβzimmermann algorithm for calculating the minimum weight of a linear code, Mathematics 9(2021), no. 19. [7] A. Chowdhury and B. S. Rajan, Quantum error correction via codes over gf(2), 2009 IEEE International Symposium on Information Theory, June 2009, pp. 789β793. [8] O. Geil, S. Martin, R. Matsumoto, D. Ruano, and Y. Luo, Relative generalized hamming weights of one-point algebraic geometric codes, IEEE Transactions on Information Theory 60 (2014), no. 10, 5938β5949. ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.
0:24 Gregorio Quintana-OrtΓ, Fernando Hernando, and Francisco D. Igual [9] Markus Grassl, Searching for linear codes with large minimum distance, Discovering mathematics with Magma, Algorithms Comput. Math., vol. 19, Springer, Berlin, 2006, pp. 287β313. MR 2278933 [10] The GAP Group, Gap β groups, algorithms, and programming, version 4.7.8, 2015. [11] Fernando Hernando, Francisco D. Igual, and Gregorio Quintana-OrtΓ, Algorithm 994: Fast implementations of the brouwer-zimmermann algorithm for the computation of the minimum distance of a random linear code, ACM Trans. Math. Softw. 45 (2019), no. 2, 23:1β23:28. [12] Donald L. Kreher and Douglas Robert Stinson, Combinatorial algorithms: generation, enumeration, and search, CRC Press, 1999. [13] Shuo-Yen Robert Li, Raymond W. Yeung, and Ning Cai, Linear network coding, IEEE Trans. Inform. Theory 49 (2003), no. 2, 371β381. MR 1966785 [14] Petr LisonΔk and Layla Trummer, Algorithms for the minimum weight of linear codes, Advances in Mathematics of Communications 10 (2016), no. 1, 195β207. [15] A. D. Liveris, Zixiang Xiong, and C. N. Georghiades, Compression of binary sources with side information at the decoder using ldpc codes, IEEE Communications Letters 6(2002), no. 10, 440β442. [16] F. J. MacWilliams and Neil J. A. Sloane, The theory of error-correcting codes, North-Holland Mathematical Library, no. 16, North-Holland Pub. Co., 1977. [17] Elebeoba E. May, Mladen A. Vouk, Donald L. Bitzer, and David I. Rosnick, A coding theory framework for genetic sequence analysis, 2002. [18] R. J. McEliece, A Public-Key Cryptosystem Based On Algebraic Coding Theory, Deep Space Network Progress Report 44 (1978), 114β116. [19] H. Niederreiter, Knapsack-type cryptosystems and algebraic coding theory, Problems Control Inform. Theory/Problemy Upravlen. Teor. Inform. 15 (1986), no. 2, 159β166. MR 851173 [20] OpenMP Architecture Review Board, OpenMP application program interface version 3.0, May 2008. [21] Adi Shamir, How to share a secret, Comm. ACM 22 (1979), no. 11, 612β613. MR 549252 [22] Claude Elwood Shannon, A mathematical theory of communication, The Bell System Technical Journal 27 (1948), no. 3, 379β423. [23] Alexander Vardy, The intractability of computing the minimum distance of a code, IEEE Trans. Inform. Theory 43 (1997), no. 6, 1757β1766. MR 1481035 [24] K.H. Zimmermann, Integral hecke modules, integral generalized reed-muller codes, and linear codes, Berichte des Forschungsschwerpunktes Informations- und Kommunikationstechnik, Techn. Univ. Hamburg-Harburg, 1996. ACM Trans. Math. Softw., Vol. 0, No. 0, Article 0. Publication date: 2020.