A Min-Max Representation of Elliptic Operators, and Applications