{"blog_title":"\u3089\u3080\u3060\u7551\u3067\u3064\u304b\u307e\u3048\u3066 (catcher in the \u03bb)","height":"190","published":"2012-01-20 22:07:34","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/itto100pen/","url":"https://itto100pen.hatenadiary.org/entry/20120120/1327064854","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitto100pen.hatenadiary.org%2Fentry%2F20120120%2F1327064854\" title=\"Purely Functional Data Structures exercise 3.9 \uff08Red-Black Tree \u8d64\u9ed2\u6728\uff09 - \u3089\u3080\u3060\u7551\u3067\u3064\u304b\u307e\u3048\u3066 (catcher in the \u03bb)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","title":"Purely Functional Data Structures exercise 3.9 \uff08Red-Black Tree \u8d64\u9ed2\u6728\uff09","categories":[],"version":"1.0","author_name":"itto100pen","type":"rich","blog_url":"https://itto100pen.hatenadiary.org/","description":"\u7b2c3\u56dePFDS(Purely Functional Data Structures)\u8aad\u66f8\u4f1a\u3067 exercise 3.9 \u306e\u3068\u304d\u306b\u7d39\u4ecb\u3055\u308c\u305f\u8ad6\u6587\u300cConstructing Red-Black Trees\u300d\uff08\u3053\u306e\u540d\u524d\u3067\u30b0\u30b0\u308b\u3068PDF\u7248\u304c\u898b\u3064\u304b\u308b\u3002Postscript\u7248\u306f\u3053\u3061\u3089\uff09\u306b\u8f09\u3063\u3066\u3044\u308b\u95a2\u6570 bottom-up \u306e\u8a08\u7b97\u91cf\u304c O(n) \u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002\u30b3\u30fc\u30c9\u306f data Color = R | B data RBTree a = E | N Color (RBTree a) a (RBTree a) data Digit a = One a (RBTree a) | Two a (RBTre\u2026","image_url":null,"width":"100%"}