Some aspects of the relation between the linear quadratic discrete optimal control problem and the quadratic programming problem