{"image_url":"http://chart.apis.google.com/chart?cht=tx&chl=%201","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjoisino.hatenablog.com%2Fentry%2F2017%2F08%2F13%2F210000\" title=\"\u524d\u51e6\u7406O(n)\u30af\u30a8\u30eaO(1)\u306eLCA\u3068\u9759\u7684RMQ - \uff7c\uff9e\uff6e\uff72\uff7c\uff9e\uff6e\uff72\uff7c\uff9e\uff6e\uff72\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"description":"\u6642\u9593\u8a08\u7b97\u91cf <O(n), O(1)> \u306e LCA(Lowest Common Ancestor) \u3068 RMQ(Range Minimum Query) \u3092 C++ \u3067\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002 \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u89e3\u8aac\u306fD\u3055\u3093\u306e\u30b9\u30e9\u30a4\u30c9 [1] LCA and RMQ ~\u7c21\u6f54\u3082\u3042\u308b\u3088\uff01~ \u304c\u3068\u3066\u3082\u5206\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u305d\u3061\u3089\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u6982\u8981\u3060\u3051\u8aac\u660e\u3057\u307e\u3059\u3002 LCA \u306e\u6982\u8981 LCA \u306f\u9802\u70b9\u3092 dfs \u9806\u3067\u8a2a\u308c\u305f\u9806\u306b\u4e26\u3079\u308b\u3068\u6df1\u3055\u306e\u5217\u306e RMQ \u306b\u5e30\u7740\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3053\u3068\u306f [2] \u87fb\u672c \u306a\u3069\u306b\u8f09\u3063\u3066\u3044\u307e\u3059\u3002 \u3053\u306e\u5217\u306f\u96a3\u308a\u5408\u3046\u6570\u306e\u5dee\u304c\u3061\u3087\u3046\u3069 \u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u3053\u306e\u5217\u3092 \u500b\u305a\u3064\u306e\u30d6\u30ed\u30c3\u30af\u306b\u5206\u3051\u3001\u305d\u308c\u305e\u308c\u306e\u30d6\u30ed\u30c3\u30af\u5185\u2026","version":"1.0","type":"rich","published":"2017-08-13 21:00:00","height":"190","author_url":"https://blog.hatena.ne.jp/joisino/","provider_name":"Hatena Blog","blog_url":"https://joisino.hatenablog.com/","url":"https://joisino.hatenablog.com/entry/2017/08/13/210000","width":"100%","author_name":"joisino","provider_url":"https://hatena.blog","title":"\u524d\u51e6\u7406O(n)\u30af\u30a8\u30eaO(1)\u306eLCA\u3068\u9759\u7684RMQ","blog_title":"\uff7c\uff9e\uff6e\uff72\uff7c\uff9e\uff6e\uff72\uff7c\uff9e\uff6e\uff72"}