{"id":6962,"date":"2022-04-29T16:15:08","date_gmt":"2022-04-29T07:15:08","guid":{"rendered":"https:\/\/hdmr.org\/d\/?p=6962"},"modified":"2022-04-29T16:15:08","modified_gmt":"2022-04-29T07:15:08","slug":"wp-6962","status":"publish","type":"post","link":"https:\/\/hdmr.org\/d\/wp-6962","title":{"rendered":"\u7c21\u5358\u306b\u7591\u4f3c\u4e71\u6570\u3092\u4f5c\u308b\u65b9\u6cd5\u306f\u96e3\u3057\u3044"},"content":{"rendered":"<p>\u8077\u5834\u3067\u4f5c\u3063\u3066\u3044\u308b\u691c\u8a3c\u7528\u30b7\u30b9\u30c6\u30e0\u3067\u3053\u3046\u3044\u3046\u3053\u3068\u3092\u3084\u308a\u305f\u304b\u3063\u305f\u3002<\/p>\n<p>\u51fa\u529b\u5024\u306e\u5019\u88dc\u309216\u500b\u7528\u610f\u3057\u3066\u304a\u3044\u3066\u3001\u3053\u308c\u3092\u4e00\u5b9a\u6642\u9593\u3054\u3068\u306b\u5207\u308a\u66ff\u3048\u308b\u3002<\/p>\n<p>\u3053\u306e16\u500b\u306e\u5024\u3092\u3044\u308d\u3044\u308d\u306a\u9806\u756a\u3067\u51fa\u529b\u3057\u305f\u3044\u3002<\/p>\n<p>16\u500b\u306e\u9806\u756a\u3092\u4e26\u3079\u308b\u5168\u30d1\u30bf\u30fc\u30f3\u306f16!=2.1\u00d710<sup>13<\/sup>\u500b\u3082\u3042\u308b\u304b\u3089\u3001<\/p>\n<p>\u5168\u5207\u66ff\u30d1\u30bf\u30fc\u30f3\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u8a18\u8f09\u3059\u308b\u306e\u306f\u4e0d\u53ef\u80fd\u3067\u3042\u308b\u3002<\/p>\n<hr>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4e71\u6570\u3092\u4f7f\u3044\u305f\u304b\u3063\u305f\u306e\u3060\u304c\u3001\u4e71\u6570\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u3093\u3066\u306a\u3044\u3093\u3060\u3088\u306a\u3002<\/p>\n<p>\u81ea\u5206\u3067\u7591\u4f3c\u4e71\u6570\u751f\u6210\u5668\u3092\u4f5c\u308d\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u307e\u305a\u601d\u3044\u3064\u3044\u305f\u306e\u306f\u30e1\u30eb\u30bb\u30f3\u30cc\u30c4\u30a4\u30b9\u30bf\u30fc\u3002<\/p>\n<p>\u3057\u304b\u3057\u3069\u3093\u306a\u5b9f\u88c5\u306a\u306e\u3060\u308d\u3046\u3068\u8abf\u3079\u305f\u304c\u3001\u6982\u8981\u3092\u898b\u3066\u7121\u7406\u3060\u3068\u601d\u3063\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082624\u500b\u3082\u306e32bit\u6574\u6570\u3092\u5185\u90e8\u72b6\u614b\u3068\u3057\u3066\u6301\u3064\u5fc5\u8981\u304c\u3042\u308b\u304b\u3089\u3067\u3042\u308b\u3002<\/p>\n<p>\u5468\u671f\u304c\u9577\u304f\u30e9\u30f3\u30c0\u30e0\u6027\u304c\u9ad8\u3044\u7591\u4f3c\u4e71\u6570\u304c\u751f\u6210\u3067\u304d\u308b\u65b9\u6cd5\u3060\u304c\u3001<\/p>\n<p>\u305d\u306e\u305f\u3081\u306b\u306f\u5185\u90e8\u72b6\u614b\u3068\u3057\u3066\u305d\u3053\u305d\u3053\u5de8\u5927\u306a\u3082\u306e\u3092\u6301\u305f\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002<\/p>\n<hr>\n<p>\u3060\u304b\u3089\u3068\u3044\u3063\u3066\u7dda\u5f62\u5408\u540c\u6cd5\u306f\u308f\u308a\u3068\u898f\u5247\u6027\u304c\u898b\u3048\u3066\u3057\u307e\u3046\u3088\u306a\u3041\u3002<\/p>\n<p>\u30c7\u30b8\u30bf\u30eb\u56de\u8def\u3067\u3088\u304f\u4f7f\u308f\u308c\u308bLFSR\u306f\u30d3\u30c3\u30c8\u30b7\u30d5\u30c8\u304c\u4e3b\u4f53\u306a\u306e\u3067\u3001\u3053\u308c\u3082\u307b\u3068\u3093\u3069\u898f\u5247\u6027\u306e\u3042\u308b\u5909\u5316\u3057\u304b\u3057\u306a\u3044\u3002<\/p>\n<p>\u3082\u3046\u3061\u3087\u3063\u3068\u5b9f\u88c5\u304c\u5bb9\u6613\u3067\u8cea\u306e\u826f\u3044\u65b9\u6cd5\u304c\u306a\u3044\u304b\u3068\u601d\u3063\u305f\u3089\u3001Lagged Fibonacci\u6cd5\u3068\u3044\u3046\u306e\u3092\u898b\u3064\u3051\u305f\u3002<\/p>\n<p>\u7591\u4f3c\u4e71\u6570\u5217 S<sub>n<\/sub> \u3092 S<sub>n<\/sub>=S<sub>n-j<\/sub> + S<sub>n-k<\/sub>(mod m)\u3068\u3044\u3046\u5f62\u3067\u8a08\u7b97\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u3002<\/p>\n<p>\u904e\u53bb\u306e\u4e71\u6570\u30922\u3064\u53d6\u308a\u51fa\u3057\u3066\u8db3\u3059\u3068\u3044\u3046\u7c21\u5358\u306a\u8a08\u7b97\u3067\u3059\u306d\u3002<\/p>\n<p>\u8db3\u3057\u7b97\u4ee5\u5916\u306e\u6f14\u7b97\u5b50\u3001\u4f8b\u3048\u3070XOR\u3067\u3082Lagged Fibonacci\u3067\u306f\u3042\u308b\u3088\u3046\u3060\u304c\u3001\u666e\u901a\u306f\u5225\u306e\u540d\u524d\u304c\u4ed8\u3044\u3066\u3044\u308b\u3002<\/p>\n<hr>\n<p>\u305f\u3060\u3001\u3044\u308d\u3044\u308d\u8abf\u3079\u3066\u308f\u304b\u3063\u305f\u306e\u306f\u3001\u3053\u306e\u6210\u5426\u3092\u6c7a\u3081\u308b\u306e\u306fk,j\u306e\u6570\u5b57\u3067\u3001<\/p>\n<p>\u3053\u306e\u6700\u5927\u5024\u304c\u3042\u308b\u7a0b\u5ea6\u5927\u304d\u304f\u3066\u3001\u521d\u671f\u5024\u3068\u3057\u3066\u305d\u3053\u305d\u3053\u8cea\u306e\u826f\u3044\u4e71\u6570\u304c\u7528\u610f\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u304c\u6c7a\u3081\u624b\u306b\u306a\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>\u6700\u521d\u3001k=1,j=7\u3067\u8a66\u3057\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u4e0b\u4f4d\u30d3\u30c3\u30c8\u306e\u8cea\u304c\u3088\u304f\u306a\u3044\u3002<\/p>\n<p>\u305d\u308c\u3067\u5178\u578b\u4f8b\u3068\u3057\u3066\u66f8\u3044\u3066\u3042\u3063\u305fk=31,j=63\u3067\u3084\u308b\u3068\u4e0b\u4f4d\u30d3\u30c3\u30c8\u307e\u3067\u8cea\u304c\u3088\u3055\u305d\u3046\u3002<\/p>\n<p>\u8cea\u306e\u826f\u3044\u4e71\u6570\u3092\u4f5c\u308b\u306b\u306f\u5185\u90e8\u72b6\u614b\u3092\u5927\u304d\u304f\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u3002\u5358\u7d14\u306b\u306f\u305d\u3046\u3044\u3046\u8a71\u3089\u3057\u3044\u3002<\/p>\n<p>\u30e1\u30eb\u30bb\u30f3\u30cc\u30c4\u30a4\u30b9\u30bf\u30fc\u307b\u3069\u3067\u306f\u306a\u3044\u3057\u3001\u30d0\u30c3\u30d5\u30a1\u3055\u3048\u6301\u3066\u308c\u3070\u3088\u3044\u306e\u3067\u5b9f\u73fe\u6027\u306f\u3042\u308b\u304c\u3002<\/p>\n<hr>\n<p>\u3057\u304b\u3057\u7dda\u5f62\u5408\u540c\u6cd5\u3060\u3063\u3066\u4e0b\u4f4d\u30d3\u30c3\u30c8\u3092\u6368\u3066\u308c\u3070\u305d\u3053\u305d\u3053\u8cea\u304c\u3088\u3044\u3068\u3044\u3046\u8a71\u3082\u3042\u308b\u3093\u3060\u3088\u306a\u3002<\/p>\n<p>\u7dda\u5f62\u5408\u540c\u6cd5\u306e\u6b20\u70b9\u3068\u3057\u3066\u30012\u500b\u306e\u4e71\u6570\u3092\u30da\u30a2\u306b\u3059\u308b\u3068\u504f\u308b\u3068\u3044\u3046\u306e\u304c\u3042\u3063\u3066\u3001<\/p>\n<p>\u305d\u308c\u3092\u4eca\u56de\u306e\u76ee\u7684\u306b\u9069\u7528\u3059\u308b\u3068\u3001\u51fa\u529b\u5024\u306e\u9077\u79fb\u304c\u504f\u3063\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>\u305f\u3060\u3001\u4e0b\u4f4d\u30d3\u30c3\u30c8\u3092\u6368\u3066\u308c\u3070\u305d\u306e\u5f71\u97ff\u306f\u6e1b\u308b\u3068\u3044\u3046\u8a71\u304c\u3042\u3063\u3066\u3001\u305d\u308c\u306f\u7e70\u308a\u4e0a\u304c\u308a\u304c\u3042\u308b\u304b\u3089\u306a\u3093\u3060\u3068\u601d\u3046\u3051\u3069\u3002<\/p>\n<p>\u7dda\u5f62\u5408\u540c\u6cd5 X<sub>n<\/sub>=A\u00d7X<sub>n-1<\/sub> + B (mod m) \u3067\u3001A=214013,B=2531011,m=2<sup>32<\/sup>(Visual Studio\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u6570\u5b57\u3089\u3057\u3044)\u3092\u9069\u7528\u3057\u3066\u3001<\/p>\n<p>\u3053\u306e\u7d50\u679c\u30924bit\u3054\u3068\u306b\u533a\u5207\u3063\u30662\u3064\u30da\u30a2\u306b\u3059\u308b\u3068\u3001\u4e0b\u4f4d12\u30d3\u30c3\u30c8\u307e\u3067\u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u767a\u751f\u56de\u65700\u56de\u3068\u3044\u3046\u306e\u304c\u5b58\u5728\u3059\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u300115\uff5e12bit\u3067\u306f\u767a\u751f\u56de\u6570\u304c\u6700\u5927\u30fb\u6700\u5c0f\u306e\u56de\u6570\u5dee\u304c\u307b\u3068\u3093\u3069\u306a\u304f\u306a\u308b\u3002<\/p>\n<p>\u5b9f\u969b\u3001Visual Studio\u3067\u306f\u4e0b\u4f4d16\u30d3\u30c3\u30c8\u3092\u6368\u3066\u3066\u3044\u308b\u3089\u3057\u3044\u3002<\/p>\n<hr>\n<p>32bit\u3067\u8a08\u7b97\u3057\u3066\u4e0b\u4f4d16bit\u3092\u6368\u3066\u3066\u3082\u300116bit\u6b8b\u3063\u3066\u3001\u3053\u308c\u306f16\u500b\u306e\u51fa\u529b\u5024\u9078\u629e\u3092\u540c\u6642\u306b4\u3064\u64cd\u4f5c\u51fa\u6765\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\u3002<\/p>\n<p>\u305d\u308c\u3067\u5b9f\u7528\u4e0a\u5341\u5206\u306a\u30e9\u30f3\u30c0\u30e0\u6027\u304c\u5f97\u3089\u308c\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u306e\u3067\u3001\u3053\u308c\u3067\u3088\u3044\u306e\u3067\u306f?<\/p>\n<p>\u305f\u3060\u3001\u3053\u306e\u4e0b\u4f4d\u30d3\u30c3\u30c8\u3092\u3044\u304f\u3064\u6368\u3066\u308b\u3068\u3046\u307e\u304f\u3044\u304f\u306e\u304b\u3068\u3044\u3046\u306e\u3082\u3088\u3046\u308f\u304b\u3089\u3093\u8a71\u3067\u3059\u304c\u306d\u3002<\/p>\n<p>\u7591\u4f3c\u4e71\u6570\u306e\u8a55\u4fa1\u3082\u7406\u8ad6\u7684\u306a\u3068\u3053\u308d\u3068\u305d\u3046\u3067\u3082\u306a\u3044\u3068\u3053\u308d\u304c\u3042\u308b\u304b\u3089\u306a\u3093\u3068\u3082\u3002<\/p>\n<hr>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u6700\u521d\u306f\u7dda\u5f62\u5408\u540c\u6cd5\u3092\u5fcc\u907f\u3057\u3066Lagged Fibonacci\u6cd5\u3092\u9078\u307c\u3046\u3068\u3057\u305f\u304c\u3001<\/p>\n<p>\u305d\u308c\u306f\u305d\u308c\u3067\u4e71\u6570\u309263\u500b\u7f6e\u3044\u3066\u304a\u304b\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3051\u3063\u3053\u3046\u5927\u5909\u3060\u3068\u3002<\/p>\n<p>\u7dda\u5f62\u5408\u540c\u6cd5\u306f\u306a\u3093\u3084\u304b\u3093\u3084\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u304c\u9b45\u529b\u3067\u3042\u308b\u3002<\/p>\n<p>\u305d\u308c\u3067\u4e0b\u4f4d\u30d3\u30c3\u30c8\u3092\u6368\u3066\u308c\u3070\u3042\u308b\u7a0b\u5ea6\u3044\u3051\u308b\u3084\u308d\u3068\u3044\u3046\u306e\u3082\u77e5\u898b\u3067\u3042\u308d\u3046\u3002<\/p>\n<p>\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u9732\u9aa8\u306b\u504f\u3089\u306a\u3044\u3053\u3068\u304c\u78ba\u8a8d\u51fa\u6765\u305f\u3089\u3001\u305d\u308c\u3067\u3082\u3044\u3044\u306e\u304b\u3082\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306e\u7528\u9014\u3067\u6c42\u3081\u3089\u308c\u308b\u306e\u306f\u305d\u306e\u7a0b\u5ea6\u306e\u30e9\u30f3\u30c0\u30e0\u6027\u3060\u3057\u3002<\/p>\n<hr>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u30e9\u30f3\u30c0\u30e0\u306b\u5207\u308a\u66ff\u308f\u308b\u3068\u3044\u3046\u306e\u3082\u305d\u308c\u306f\u305d\u308c\u3067\u96e3\u3057\u3044\u3068\u3044\u3046\u8a71\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u4ed6\u306b\u4e71\u6570\u7684\u306b\u4f7f\u3048\u308b\u3082\u306e\u304c\u306a\u3044\u304b\u8003\u3048\u3066\u307f\u305f\u3051\u3069\u3001<\/p>\n<p>\u3069\u3046\u306b\u3082\u96e3\u3057\u305d\u3046\u3068\u8a00\u3046\u3053\u3068\u3067\u3001\u4e71\u6570\u3092\u81ea\u5206\u3067\u7528\u610f\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u304f\u306a\u3063\u305f\u3068\u3002<\/p>\n<p>\u3068\u3053\u308d\u304c\u3053\u306e\u7591\u4f3c\u4e71\u6570\u3068\u3044\u3046\u306e\u306f\u672c\u5f53\u306b\u96e3\u3057\u3044\u3002<\/p>\n<p>\u771f\u306e\u4e71\u6570\u767a\u751f\u5668\u3092\u53d6\u308a\u4ed8\u3051\u305f\u3044\u3050\u3089\u3044\u3081\u3093\u3069\u304f\u3055\u3044\u304c\u3001\u771f\u306e\u4e71\u6570\u3082\u305d\u308c\u306f\u305d\u308c\u3067\u96e3\u3057\u3044\u3089\u3057\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8077\u5834\u3067\u4f5c\u3063\u3066\u3044\u308b\u691c\u8a3c\u7528\u30b7\u30b9\u30c6\u30e0\u3067\u3053\u3046\u3044\u3046\u3053\u3068\u3092\u3084\u308a\u305f\u304b\u3063\u305f\u3002 \u51fa\u529b\u5024\u306e\u5019\u88dc\u309216\u500b\u7528\u610f\u3057\u3066\u304a\u3044\u3066\u3001\u3053\u308c\u3092\u4e00\u5b9a\u6642\u9593\u3054\u3068\u306b\u5207\u308a\u66ff\u3048\u308b\u3002 \u3053\u306e16\u500b\u306e\u5024\u3092\u3044\u308d\u3044\u308d\u306a\u9806\u756a\u3067\u51fa\u529b\u3057\u305f\u3044\u3002 16\u500b\u306e\u9806\u756a\u3092\u4e26\u3079\u308b\u5168\u30d1\u30bf\u30fc\u30f3\u306f16!=2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-6962","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/6962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6962"}],"version-history":[{"count":1,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/6962\/revisions"}],"predecessor-version":[{"id":6963,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/6962\/revisions\/6963"}],"wp:attachment":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}