The main purpose of this paper is the numerical solution of the one-dimensional linear Fredholm integral equation of the second kind by the collocation and the Nystroem methods using the Lagrange basis functions for piecewise linear interpolation. Some effective algorithms implementing these methods using Matlab software have been constructed. The numerical results of test examples are also included to verify the performance of the proposed algorithms.