Abstract. We present a new method for the a priori approximation of the orders of magnitude of the entries in the LU factors of a complex or real matrix A. This approximation is used to determine the positions of the largest entries in the LU factors of A, and these positions are used as the sparsity pattern for an incomplete LU factorization preconditioner. Our method uses max-plus algebra and is based solely on the moduli of the entries of A. We also present techniques for predicting which permutation matrices will be chosen by Gaussian elimination with partial pivoting. We exploit the strong connection between the field of Puiseux series and the max-plus semiring to prove properties of the max-plus LU factors. Experiments with a set of test matrices from the University of Florida Sparse Matrix Collection show that our max-plus LU preconditioners outperform traditional level of fill methods and have similar performance to those preconditioners computed with more expensive threshold-based methods.Key words. max-plus algebra, LU factorization, Hungarian scaling, linear systems of equations, sparse matrices, incomplete LU factorization, preconditioning AMS subject classifications. 65F08, 65F30, 15A23, 15A80 DOI. 10.1137/16M10945791. Introduction. Max-plus algebra is the analogue of linear algebra developed for the binary operations max and plus over the real numbers together with −∞, the latter playing the role of additive identity. Max-plus algebraic techniques have already been used in numerical linear algebra to, for example, approximate the orders of magnitude of the roots of scalar polynomials [19], approximate the moduli of the eigenvalues of matrix polynomials [1,10,14], and approximate singular values [9]. These approximations have been used as starting points for iterative schemes and in the design of preprocessing steps to improve the numerical stability of standard algorithms [3,6,7,14,20]. Our aim is to show how max-plus algebra can be used to approximate the sizes of the entries in the LU factors of a complex or real matrix A and how these approximations can subsequently be used in the construction of an incomplete LU (ILU) factorization preconditioner for A.In order to be able to apply max-plus techniques to the matrix A ∈ C n×n we must first transform it into a max-plus matrix. We do this using the valuation map