Let $X$ be a topological space. (i) We call $X$ connected if there does not exist a pair of disjoint nonempty open sets whose union is $X$. (ii) We call $X$ disconnected if $X$ is not connected. (iii) If $X$ is disconnected, then a pair of disjoint nonempty open sets whose union is $X$ is called a separation of $X$.
I'm trying to get this concept down, so I thought another example would help. Several bases that generate topologies for a connected topological space:
$B=\{\{a\}\ s.t.\ a \in \mathbb{R}\}$ (singletons are connected)
$B=\{(a,b)\ s.t.\ a,b \in \mathbb{R}\}$
$B=\{(-a,a)\ s.t.\ a \in \mathbb{R}\}$
I don't see any pairs of disjoint nonempty open sets whose union equals $X$ from these examples... is this correct?
Remember that the open sets are arbitrary unions of elements of $B$, not just elements of $B$. So while it's pretty easy to see that in all of your examples there do not exist $U,V\in B$ such that $U\cup V=\mathbb{R}$ and $U\cap V=\emptyset$, that doesn't mean there does not exist a separation. Arbitrary unions of elements of $B$ can be pretty complicated!
In fact, your first example is not connected. Every subset of $\mathbb{R}$ is open in this topology, since every set is a union of singleton sets (why?). Can you use this to find a separation for this topology?
Answer:
Your second example happens to give a connected topology, but this is very nonobvious and requires a lot of cleverness to prove (the proof uses the completeness of $\mathbb{R}$). So I wouldn't worry about this example for now.
Your third example also gives a connected topology, and this time it is actually not too hard to prove it. See if you can prove it! As a first step, you need to understand what open sets look like, remembering that an open set is a union of elements of $B$, not just a single element of $B$. What can you say about sets that are unions of elements of $B$? (Hint: You might try proving that if $U$ and $V$ are nonempty and both unions of elements of $B$, then they cannot be disjoint.)
Answer: