å§ç¸®ã¢ã«ã´ãªãºã ã«ãããé©å¿åç®è¡ç¬¦å·ã®å®è£ ã§ã¯ãç´¯ç©é »åº¦è¡¨ãå¹ççã«æ´æ°ã§ãããã¼ã¿æ§é ãå¿ è¦ã«ãªãã¾ãããã¨ãã¨ç®è¡ç¬¦å·ãå®è£ ããã«ã¯ç´¯ç©é »åº¦è¡¨ãå¿ è¦ãªã®ã§ããããããé©å¿åã«ãªãã¨ãè¨å·åãå é ãã符å·åããªããããã§ã«è¦ãè¨å·ã®ç´¯ç©é »åº¦ãæ´æ°ãã¦ããå¿ è¦ãããããã§ãã ç´¯ç©åº¦æ°è¡¨ããã¤ã¼ãã«å®è£ ããã¨ãæ´æ°ã«ã¯ O(n) ããã£ã¦ãã¾ãã¾ããé åã§è¡¨ãæã£ã¦ããå ´åãé©å½ãªè¦ç´ ã®é »åº¦ã«æ´æ°ããããã¨ãã®è¦ç´ ãããåã®è¦ç´ ãã¹ã¦ãæ´æ°ããå¿ è¦ãããã¾ããé©å¿åç®è¡ç¬¦å·ã®ããã«è¨å·ã符å·åãã度ã«æ´æ°ããããã±ã¼ã¹ã«ã¯åãã¦ãã¾ããã Binary Indexed Tree (BIT, P.Fenwick æ°ã®ååãåã£ã¦ Fenwick Tree ã¨å¼ã°ãããã¨ãããããã§ã) ã使ãã¨ãç´¯ç©é »åº¦è¡¨ãæ´æ° O(lg n)ãåç § O(lg n) ã§å®ç¾ãããã¨ãã§ãã¾ããBIT ã¯æ´
{{#tags}}- {{label}}
{{/tags}}