⬚ 生成 Moser–de Bruijn 序列Generate Moser–de Bruijn Sequence
生成 Moser–de Bruijn 序列:把 n 的二进制位当作四进制数字得到的数(只含数字 0、1)。本地处理。Generate the Moser–de Bruijn sequence: interpret the binary digits of n as base-4 digits (only 0 and 1). Processed locally.
使用说明与常见问题How-to & FAQ
「生成 Moser–de Bruijn 序列」是什么?What is the Generate Moser–de Bruijn Sequence tool?
生成 Moser–de Bruijn 序列:把 n 的二进制位当作四进制数字得到的数(只含数字 0、1)。本地处理。Generate the Moser–de Bruijn sequence: interpret the binary digits of n as base-4 digits (only 0 and 1). Processed locally.
如何使用「生成 Moser–de Bruijn 序列」?How do I use the Generate Moser–de Bruijn Sequence tool?
在「生成 Moser–de Bruijn 序列」中,按需设置「项数」,结果会实时显示在下方,点击「复制结果」即可复制。In the Generate Moser–de Bruijn Sequence: Adjust "Terms"; the result appears below instantly — click "Copy result" to copy it.
有何用途?What is it for?
与四叉树、Z 阶曲线的奇数位掩码等相关。Related to quadtrees and odd-bit masks of Z-order curves.
输入和输出是什么样的?What does the input and output look like?
例如在「生成 Moser–de Bruijn 序列」中把「项数」设为 8,输出为:0 1 4 5 16 17 20 21(各项以空格分隔;勾选「每行一个」则每项占一行)。For example, in the Generate Moser–de Bruijn Sequence with "Terms" set to 8, the output is: 0 1 4 5 16 17 20 21 (terms are separated by spaces; tick "One per line" to put each term on its own line).
有哪些选项可以调整?What options can I adjust?
「生成 Moser–de Bruijn 序列」的设置:「项数」默认 32;可勾选:「每行一个」。每次生成结果都按当前设置处理。Settings in the Generate Moser–de Bruijn Sequence — "Terms" default 32; tick boxes: "One per line". The result always uses the current settings.
计算精度如何?How precise are the results?
「生成 Moser–de Bruijn 序列」输出的每一项都是精确的整数(最多 10000 项,最大一项是 68,485,205(约 6850 万),远小于 2^53),计算中没有舍入,也不涉及浮点精度问题。Every term the Generate Moser–de Bruijn Sequence outputs is an exact integer (up to 10,000 terms, the largest 68,485,205 (about 68 million), far below 2^53); there is no rounding and floating-point precision never comes into play.
「生成 Moser–de Bruijn 序列」免费吗?需要注册吗?Is the Generate Moser–de Bruijn Sequence free? Do I need an account?
「生成 Moser–de Bruijn 序列」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Generate Moser–de Bruijn Sequence is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.