For any topological space $X$, as the title explains, how many ways to construct a dense subspace of $X$? For example, we can construct a dense subspace which is the union of disjoint open subsets of $X$.
Added: If I may ask more, if $X$ is compact, do we have more ways to construct a dense subspace of $X$?
Hint: Every compact metric space has countable base and is seperable, i.e it has a countable dense subset.
for $n\in \mathbb{N}$ the open sets $N_{1/n}(x)$ for $x\in X$ forms a open cover of $X$. since $X$ is compact, chhose a finite subcover $\{N_{1/n}(x_{n,1}),\dots,N_{1/n}(x_{n,k_n})\}$, note that for each $n$ the collection of $x$'s is different; therefore they must be labelled by both $n$ and a second parameter.
consider the countable base for $X$ $$\mathfrak{B}=\{N_{1/n}(x_{n,j}:n\in\mathbb{N}, 1\le j\le k_n\}$$ , now take any open set $U\subseteq X$ chose $\epsilon>0$ such that $N_{\epsilon}(x)\subseteq U$....enough?