{"id":3788,"date":"2022-12-05T00:51:03","date_gmt":"2022-12-04T15:51:03","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=3788"},"modified":"2022-12-05T00:51:03","modified_gmt":"2022-12-04T15:51:03","slug":"2022-12-4","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2022-12-4\/","title":{"rendered":"2022\/12\/4(\u65e5)"},"content":{"rendered":"\n<p>\u306a\u3093\u304b\u3077\u3088\u3077\u3088\u306e\u7df4\u7fd2\u3092\u3057\u3066\u3044\u305f\u3089\u65e5\u304c\u843d\u3061\u3066\u3044\u305f\u3002\u4ffa\u306f\u306a\u305c\u3053\u3093\u306a\u6642\u9593\u3092&#8230;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002<\/p>\n\n\n\n<p>CPSCO2019-Session3-E: XOR\u3068\u8db3\u3057\u7b97\u306e\u9593\u306b\u90fd\u5408\u306e\u3044\u3044\u6027\u8cea\u306a\u3069\u8003\u3048\u3088\u3046\u3082\u306a\u3044\u304c\u3001\u30d3\u30c3\u30c8\u3054\u3068\u306b\u5206\u3051\u3066XOR\u306e\u8a71\u3092\u3057\u3066\u305d\u308c\u304b\u3089\u8db3\u3057\u7b97\u306b\u3059\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u6c17\u4ed8\u3044\u305f\u3089\u3042\u3068\u306f\u7c21\u5358\u3060\u3063\u305f\u3002<\/p>\n\n\n\n<p>$A_i xor X$\u306e$j$\u30d3\u30c3\u30c8\u76ee\u306b\u3064\u3044\u3066\u8003\u3048\u308b\u3068\u3001$A_1$\u304b\u3089$A_k$\u307e\u3067\u306e\u4e2d\u3067$j$\u30d3\u30c3\u30c8\u76ee\u304c1\u3067\u3042\u308b\u3082\u306e\u304c$s$\u500b\u3042\u308b\u3068\u3057\u3066\u3001$A_i$\u306e$j$\u30d3\u30c3\u30c8\u76ee\u304c1\u306a\u3089\u3070$(s+1)%2$\u30010\u306a\u3089\u3070$s%2$\u3067\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u308b\u3002<\/p>\n\n\n\n<p>$A_1 xor X$,$A_2 xor X$,&#8230;\u306e$j$\u30d3\u30c3\u30c8\u76ee\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u308b\u3068\u3001$(s+1)%2$\u3067\u3042\u308b\u3088\u3046\u306a\u3082\u306e\u304c$s$\u500b\u3001$s%2$\u3067\u3042\u308b\u3088\u3046\u306a\u3082\u306e\u304c$k-s$\u500b\u3042\u308b\u3002\u3053\u308c\u306e\u7dcf\u548c\u306f$s\\times ((s+1)%2)+(k-s)\\times(s%2)$\u3067\u6c42\u307e\u308b\u3002<\/p>\n\n\n\n<p>\u3042\u3089\u304b\u3058\u3081\u5404k\u5404\u30d3\u30c3\u30c8\u306b\u3064\u3044\u3066s\u3092\u6c42\u3081\u3066\u304a\u3051\u3070\u3001$O(N\\log \\max A)$\u3067\u89e3\u3051\u308b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u6ce8\u6587\u3057\u3066\u3044\u305f\u300c\u5bfa\u5c71\u4fee\u53f8\u5c11\u5973\u8a69\u96c6\u300d\u304c\u5c4a\u3044\u305f\u3002\u3067\u304d\u308c\u3070\u53e4\u672c\u5c4b\u3084bookoff\u3067\u624b\u306b\u5165\u308c\u305f\u304b\u3063\u305f\u306e\u3060\u304c\u3001\u65b0\u54c1\u3057\u304b\u306a\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u958b\u3044\u3066\u307f\u305f\u6700\u521d\u306e\u7ae0\u306b\u3001\u6d77\u306b\u95a2\u3059\u308b\u8a69\u304c\u307e\u3068\u3081\u3066\u3042\u3063\u305f\u3002\u81ea\u5206\u306e\u63cf\u3044\u305f\u6d77\u306b\u304a\u307c\u308c\u6b7b\u306c\u753b\u5bb6\u3001\u81ea\u5206\u306e\u9332\u97f3\u3057\u305f\u6ce2\u306e\u97f3\u306b\u98db\u3073\u8fbc\u3093\u3060\u5973\u3001\u6d77\u3092\u63a1\u8b5c\u3057\u3088\u3046\u3068\u3057\u305f\u97f3\u697d\u5bb6\u3002\u306a\u306b\u304b\u3053\u3046\u3001\u4e00\u8cab\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u4e00\u8cab\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u5f37\u3044\u60c5\u5ff5\u3092\u611f\u3058\u308b\u306e\u3060\u304c\u3001\u6d77\u306b\u4f55\u3092\u898b\u3066\u3044\u305f\u306e\u304b\u304c\u4eca\u4e00\u3064\u30d4\u30f3\u3068\u3053\u306a\u3044\u3002\u5199\u3057\u53d6\u308d\u3046\u3068\u3057\u3066\u3082\u5199\u3057\u53d6\u308c\u306a\u3044\u3001\u305d\u308c\u3067\u3044\u3066\u5168\u3066\u3092\u98f2\u307f\u8fbc\u3093\u3067\u3044\u304f\u3001\u305d\u3093\u306a\u4f55\u304b&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306a\u3093\u304b\u3077\u3088\u3077\u3088\u306e\u7df4\u7fd2\u3092\u3057\u3066\u3044\u305f\u3089\u65e5\u304c\u843d\u3061\u3066\u3044\u305f\u3002\u4ffa\u306f\u306a\u305c\u3053\u3093\u306a\u6642\u9593\u3092&#8230; \u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002 CPSCO2019-Session3-E: XOR\u3068\u8db3\u3057\u7b97\u306e\u9593\u306b\u90fd\u5408\u306e\u3044\u3044\u6027\u8cea\u306a\u3069\u8003\u3048\u3088\u3046\u3082\u306a\u3044\u304c\u3001\u30d3\u30c3\u30c8\u3054\u3068 &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2022-12-4\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2022\/12\/4(\u65e5)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3788","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=3788"}],"version-history":[{"count":4,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3788\/revisions"}],"predecessor-version":[{"id":3792,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3788\/revisions\/3792"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=3788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=3788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=3788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}