{"categories":["\u30c7\u30fc\u30bf\u69cb\u9020","\u30b9\u30d1\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb","\u533a\u9593\u30af\u30a8\u30ea","\u30e2\u30ce\u30a4\u30c9"],"provider_name":"Hatena Blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/158934417/1702097020779738","width":"100%","type":"rich","url":"https://info.atcoder.jp/entry/algorithm_lectures/sparse_table","height":"190","author_url":"https://blog.hatena.ne.jp/atcoder/","blog_url":"https://info.atcoder.jp/","version":"1.0","description":"\u89e3\u8aac\u52d5\u753b\u306f\u3053\u3061\u3089\u3067\u3059\uff0e 1. \u6982\u8981 \u672c\u8a18\u4e8b\u3067\u306f\uff0c\u9759\u7684\u306a\u914d\u5217\u306b\u5bfe\u3059\u308b\u3042\u308b\u7a2e\u306e\u533a\u9593\u30af\u30a8\u30ea\u3092\u9ad8\u901f\u306b\u51e6\u7406\u3059\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3042\u308b\u30b9\u30d1\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\uff08Sparse Table\uff09\u3092\u89e3\u8aac\u3057\u307e\u3059\uff0e \u30b9\u30d1\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306f\uff0c\u4e8b\u524d\u8a08\u7b97\u306b $\\mathrm{O}(N\\log N)$ \u6642\u9593\u3092\u4f7f\u3046\u3053\u3068\u3067\uff0c\u533a\u9593\u6700\u5c0f\u5024\u306a\u3069\u306e\u30af\u30a8\u30ea\u306b $\\mathrm{O}(1)$ \u6642\u9593\u3067\u7b54\u3048\u308b\u624b\u6cd5\u3067\u3059\uff0e\u6b74\u53f2\u7684\u306b\u306f\uff0c\u6587\u732e 1 \u306b\u304a\u3051\u308b\u7dda\u5f62\u6642\u9593 LCA \u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u7528\u3044\u3089\u308c\u305f\u3053\u3068\u304c\u6709\u540d\u3067\u3059\uff0e \u30b9\u30d1\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306f\uff0c\u533a\u9593\u9577\u304c $2 ^ k$ \u306e\u3068\u304d\u306e\u60c5\u5831\u304b\u3089\u533a\u9593\u9577\u304c $2 ^ {k+1}$ \u306e\u3068\u304d\u306e\u60c5\u5831\u3092\u69cb\u6210\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u3067\uff0c\u30a2\u30a4\u30c7\u30a2\u306f\u4e8c\u5206\u7d2f\u4e57\u6cd5\uff08bi\u2026","blog_title":"AtCoderInfo","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfo.atcoder.jp%2Fentry%2Falgorithm_lectures%2Fsparse_table\" title=\"\u30b9\u30d1\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb - AtCoderInfo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_name":"atcoder","published":"2026-04-10 14:10:23","title":"\u30b9\u30d1\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb"}