- A function $f: \mathcal{S}^n\rightarrow\,\mathbb{R}$
This is I understand. $x\in\mathrm{dom}\,f$ means that $x$ is a vector of size $n$ where its elements are taken from the set $\mathcal{S}$. e.g., $\mathcal{S}=\{0, 1\}$, $n=3$, so $x$ could be equal $(1, 1, 0)^{\mathrm{T}}$. Am I right?
- A function $f: 2^{\mathcal{S}}\rightarrow\,\mathbb{R}$
This is I could not understand. What does it mean $x\in\mathrm{dom}\,f$?
$x$ is a subset of $\mathcal{S}$. The notation $2^X$ is often used to denote the collection of all subsets of $X$. Other mathematicians prefer $\mathcal{P}(X)$.