Let $X$ a space; and $Y$ is a dense subset of $X$. However there may be some subset $Z$ of $Y$ such that $Z$ is also dense in $X$. Now I want to delete some elements of $Y$ which seem needless, so that I can make the new dense subset $Z$ of $Y$ be the smallest. How can I get it?
My idea is this: If there exists $y \in \overline{Y\setminus \{y\}}$, then delete $y$, because $Y\setminus \{y\}$ is also dense in $X$. However what should I do next step?
Thanks ahead:)