Title: Convexity and Its Applications in Discrete and Continuous Optimization