Following some argument over a question on math.SE, I began to wonder:
We all know that in the standard topology there are no continuous bijections from $[0,1]$ to $(0,1)$ (for example by arguments of compactness).
However, if we consider the discrete topology on $\mathbb R$ then every function is continuous. In particular, every bijection between the $[0,1]$ and $(0,1)$ is continuous.
Question: Can we characterize all the topologies on $\mathbb R$ such that exists a function $f$ which is continuous w.r.t to the topology, and is a bijection from $[0,1]$ to $(0,1)$?
Note that a typical bijection takes a monotonously decreasing sequence to $0$, places $0$ to the first term, $1$ to the second, and $x_n\mapsto x_{n+2}$, any other element in the interval is fixed. This leads me to believe that such topology will have to have $0,1$ and some $\{x_n\mid n\in \mathbb N\}$ a monotonically decreasing sequence of isolated points. I suspect that this might be "almost" necessary and "almost" sufficient but I cannot prove that.
Generalized question: What if we require $f$ to be a homeomorphism, what if we replace the open/closed by half-open/half-closed?