No is not algorithm, it's better than that. It simple, it's a formula, or function.
An example:
To start calculating binary digits from, say, the 8th place only need substitute for n=8,9,10,11,12,13,14,15....That it's all.
formula =1/2 - (2 ArcTan[Cot[2^(-(3/2) + n) \[Pi]]])/\[Pi] + ArcTan[Cot[2^(-(1/2) + n) \[Pi]]]/\[Pi]
sol = Table[formula, {n, 8, 15}] // N // Round
${1, 0, 0, 0, 0, 0, 1, 0}$
and say from n=1....15:
sol2 = Table[formula, {n, 1, 15}] // N // Round
${1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0}$