AC0中c除以c是什么?


11

假设我们的输入是一个二进制,我们要输出⌊ X / ç ⌋,其中Ç是一些常整数。如果c是2的幂,这只是一个移位,但是其他数字呢?我们可以为每个c电路使用恒定深度的电路吗?那么c = 3呢?x⌊x/c⌋cccc=3

ps。我知道计算很困难,但这似乎无关。xmodc

Answers:


16

二进制数的加减在AC0。

对于任何常数, X MOD Ç是甲Ç 0还原为除以Ç(⌊ X / Ç ⌋): X MOD Ç = X - (ç  倍⏞ ⌊ X / ç ⌋ + ⋯ + ⌊ X / C ^ ⌋)cxmodcAC0c⌊x/c⌋

xmodc=x−(⌊x/c⌋+⋯+⌊x/c⌋⏞c times)

xmodcAC0c2⌊x/c⌋AC0c2

cMODc∑iximodcxi∈{0,1}xmodcp−12(p−1)imodp=1


c

4
xmodccc=p(p−1)

@Emil Jerabek:谢谢,这正是我需要的帮助:)
— daniello 2014年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.