Discretization of the Problem