K-Approximate Convexity and Its Applications