I sometimes see following objects in papers, $$\sup_{r\in K} \langle x,r\rangle$$ or $$\inf_{r\in K} \langle x,r\rangle$$
I know its meaning changes according to the set $K$, but I would like to gain insight when I see these type of things. What they mean actually?