On Some Discrete Variational Problems