This question asks about properties of functions which are "piecewise" polynomials. I would like to ask a specific question about the meaning of "piecewise" there.
Specifically, consider "partitions" of an open interval of the form $(c,d)=\overline{ \bigcup_{n=1 }^\infty (a_n, b_n)}$, i.e. into a countable infinity of pairwise disjoint open intervals which gives a set dense in $(c,d)$. As I elaborated on a comment of Aaron Tikuisis, this permits ugly constructions like $$(-1,1)=(-1,0)\cup\bigcup_{k=1}^\infty \left(\frac{1}{k+1},\frac{1}{k}\right)$$ or even $$ (0,1)=\bigcup_{k=1}^\infty \bigcup_{j=1}^\infty \left(\frac{1}{k+1}+\frac{1}{k(k+1)}\frac{1}{j+1},\frac{1}{k+1}+\frac{1}{k(k+1)}\frac{1}{j}\right),$$ for which a countable infinity of subintervals (those with $j=1$) have no next neighbour to the right.
My question is, how far can this process be pushed? Can one give a decomposition $(c,d)=\overline{ \bigcup_{n=1 }^\infty (a_n, b_n)}$ where none of the $(a_n,b_n)$ have a next neighbour to the right? or even to both sides? If this is impossible, then can one meaningfully characterize how many of the subintervals can have this property? Has this appeared in the literature?