Topics in linear and nonlinear discrete optimization