Discretization of Zakharov's equation