Given an infinite dimensional Hilbert space $H$. Let $A\subseteq \mathbb{C}$ be closed and bounded. Construct a bounded linear operator $S$ on $H$ such that $\sigma(S)=A$, where $\sigma(S)$ is the spectrum of $S$.
I can not find how to approach this question. What are compacts set in $\mathbb{C}$? and which operator can be good choice?
If $H$ is separable, then $H$ is isomorphic to $L^2(A,\mu)$, where $A$ is the given compact set, and $\mu$ a regular probability measure. So we will construct an example here.
Let $f$ be a function which is $0$ everywhere outside $A$, and is non zero inside $A$. Then $M_f$ has spectrum equal to $A$.