2022-10-01ãã1ã¶æéã®è¨äºä¸è¦§
\(\Theta(n \polylog(n))\) æéã§è§£ãã®ã¯ç°¡åã ãã©ãå®éã«ã¯ \(\Theta(n)\) æéã§è§£ãããã¼ã¨ããåé¡ã¯ã¡ããã¡ããããã¾ãã 競ããçéã§ã¯ log ãåããã¨ã«æ欲çãªäººã¯ä¸é¨ã ããªæ°ããã¾ã*1ãã話ã¨ãã¦ç¥ã£ã¦ããã¦ãæã¯ãã¾ããªãæ°ãããâ¦
ãã³ã¡ãããããããã \(O(1)\) éå·®åãåã㨠imos æ³ã§æ¸ããå½¢ã«ãªããããªåºéå ç®ã¯ã¨ãª*1ãä¸çãã°ããã¾ããã ç¹ã«ãDP ãããªãã on-the-fly 㧠imos æ³ã®é 延ã解æ¶ãã¦ãããã¤ãæ¯åãã°ããã¦ããæ°ããã¾ãã ããããã®ã¯ã³ã³ãã¹ãã§åºâ¦
ããããï¼ åé¡è¨å® \(w\)-bit æ´æ°ã 0/1 é åã¨ãã¦è¦ãã¨ãã®è»¢åæ°ãèãã¾ãã ããªãã¡ã\(x = b_0 \cdot 2^0 + b_1 \cdot 2^1 + \dots + b_{w-1} \cdot 2^{w-1} = b_{w-1}\ldots b_1 {b_0}_{(2)}\) (\(b_i \in \{0, 1\}\)) ã¨ãã¦ã\(i\lt j\) ã㤠â¦