Let $n\in\mathbb N$.
Given a set $S\subset\mathbb N$, let $\Delta(S) = \{a-b\mid a,b\in S\}$ denote its set of differences.
I'm interested in finding a small set $S_n$ such that $\{1,\ldots,n\}\subseteq\Delta(S_n)$.
For example, if $n=8$ we can use
$$S_8 =\{1,2,4,8,9\}. $$
How can we construct a small $S_n$ efficiently? (Efficiently should ideally be $O(|S_n|)$ time, but any $o(n)$ time would be interesting.)
How does the smallest $|S_n|$ grow as a function of $n$? (As a guess, I'd like to say $|S_n|=O(\sqrt n)$ should be possible?)