The QR decomposition is often used to solve the linear least squares problem.
Actual methods to calculate the QR decomposition include Givens rotations, Householder transformations and the Gram-Schmidt decomposition.