ç¾å¨ã®ãã«ãã¹ã¬ããããã°ã©ãã³ã°ã®æ±ããåé¡ç¹ã¨ã代æ¿æ¡ããããããã解説ãããã¾ããæè¿ç»å ´ããConcurrent Revisionsã解説ãã¾ããRead less
17:29 08/09/30 ã¯ãã¹ã¯ã¼ã æã¤ã¶ãã« "Clueless Crossword" ã¨ããååãè²·ã£ã¦ã¿ã¦æå¤ã¨ããã£ã¦ãã¾ãã ã¯ãã¹ã¯ã¼ãããºã«ãªãã ãã©ãåèªã®ãã³ãã®ä»£ããã«ã åãã¹ã«1ï½26ã®æ°åãæ¯ã£ã¦ãã£ã¦åãæ°åã®ãã¹ã«ã¯åãAï½Zãå ¥ãããã«åããã¨ãããã®ã ãæ¯é³ã£ã½ãã¦äºé£ç¶ãã¦èªå°¾ã«ãåºã¦ããã®ã¯å¤å E ã ããããããããã O ã®å¯è½æ§ã¯ãªãããªããã©ã ã¿ããã«åãã¦ããã ã¡ãã£ã¨éããã© ãã©ãã·ã¥ã§ãã£ãã 20:15 08/09/28 ã ãã¡ã®ããã ããããæ¥æ¬ã«æ»ãåã«è¦³å ãããæéãã¨ãããã¨ã«ãã¦ãã¦ã«ã«ï¼ã¨ã¢ã¼ãºããã¯ï¼ã«è¡ã£ã¦ãã¾ããã ãã£ã¨ã¯ã¤ã«ããªæããã¨æã£ãããå®å ¨ã«ãªã¾ã¼ãã®ãªã¾ã¼ãã«ãããªã¾ã¼ãã®ããã®å°å¸¯ã«ãªã£ã¦ã¾ããã ã¾ããããªãããã æ¬æ¥ã¯å¼·é¢¨ã®ããç»ãã®ç¦æ¢ã¨ã®ãã¨ã ã£ãã®ã§ãå¨ãããè¦ãã ãã
æå¼·æéã¢ã«ã´ãªãºãã¼é¤æè¬åº§ï¼ ãã®ã¢ã«ã´ãªãºã ã貪欲ã«ã¤ãââ貪欲æ³ã®ã¹ã¹ã¡ ã¢ã«ã´ãªãºã ã®ä¸çã«ããã¦ã欲張ãã§ãããã¨ã¯ã¨ãã«æå©ã«åããã¨ãããã¾ããä»åã¯ã貪欲æ³ã¨å¼ã°ããã¢ã«ã´ãªãºã ãç´¹ä»ããªããããã¼ããªåé¡ã«ææ¦ãã¦ã¿ã¾ãããããã®ã¢ã«ã´ãªãºã ã使ãããã©ããã®è¦æ¥µããã§ããããã«ãªãã°ãããªãã®è«ççæèåã¯ããªãã®ã¬ãã«ãªã®ã§ããï¼2010/9/4ï¼ æå¼·æéã¢ã«ã´ãªãºãã¼é¤æè¬åº§ï¼ ç ã¿ã¤ãã«ãªããåçè¨ç»æ³ãããã®æ·±æ·µã«è¿«ã æ°åã«ããã£ã¦åçè¨ç»æ³ã»ã¡ã¢åå帰ã«ã¤ãã¦è§£èª¬ãã¦ãã¾ããããä»åã¯å®è·µç·¨ã¨ãã¦ãããããµãã¯åé¡ã¸ã®ææ¦ã足ãããã«ããã®é·æã¨çæã®ç´¹ä»ãç解度ãã§ãã¯ã·ã¼ããªã©ãç¨æãã¾ãããç¹ã«ãåçè¨ç»æ³ã«ã¤ãã¦æ·±ãæãä¸ããçãããåçè¨ç»æ³ãã¹ã¿ã¼ã®éã«ãæ¡å ãã¾ããï¼2010/5/15ï¼ æå¼·æéã¢ã«ã´ãªãºãã¼é¤æè¬åº§ï¼ ã¢ã«ã´ãªãºãã¼ã®ç»
æ¤ç´¢ ãã¼ã«ã¼ã²ã¼ã ã®ä½ãæ¹ ã²ã¼ã ã®æµã[2002/09/07] å±±ãä½ã[2002/09/07] å½¹ãå¤å®ãã[2002/09/07] åæå¤å®[2002/09/07] ã³ã³ãã¥ã¼ã¿ã¼ã®æèã«ã¼ãã³[2002/09/07] ï¼ï¼¤ãã³ã¸ã§ã³ã®ä½ãæ¹ ç¸å¯¾åº§æ¨ã¨çµ¶å¯¾åº§æ¨[2002/09/07] ï¼ï¼¤ãªç»åã®è¡¨ç¤ºæ¹æ³[2002/09/07] æ¦è¡SLGã®ä½ãæ¹ ç§»åç¯å²ã®æ±ãæ¹[2004/06/27] ã³ã³ãã¥ã¼ã¿ã®æèã«ã¼ãã³[2004/07/04] ã³ã³ãã¥ã¼ã¿ã®æèã«ã¼ãã³ï¼[2004/11/28] æ¦è¡åSLGã®ã²ã¼ã ãã©ã³ã¹[2005/09/04] ãã¬ã¼ã³ãã ã®ç·åæç»ã¢ã«ã´ãªãºã [2005/09/10] A*ã«ããçµè·¯æ¢ç´¢[2005/09/10] 麻éã®ä½ãæ¹ ãããå¤å®[2004/07/11] å½¹å¤å®[2004/07/19] ã³ã³ãã¥ã¼ã¿ã®æèã¢ã«ã´ãªãºã ï¼æºåä¸ï¼ ã·ã¥ã¼ã
ããã§ã¯ãããã°ã©ã ãªã©ã§ãã使ç¨ãããã¢ã«ã´ãªãºã ã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãã å ã ã¯ãèªåã®é ã®ä¸ãæ´çãããã¨ãç®çã«ãã®ã³ã¼ãã¼ãéè¨ãã¦ã¿ãã®ã§ãããæè¿ã¯ç¶ç¶ããããã¨ãç®çã«æ°ãããã¿ãæ¢ãããã«ãªã£ã¦ãã¾ãããã¾ã ã¾ã é¢ç½ããã¼ããããããã¨æ®ã£ã¦ããã®ã§ãæ°åã®ç¶ãéãã¯æ´æ°ãã¦ããããã¨æãã¾ãã ä»ã¾ã§ã«ç´¹ä»ãããã¼ãã«é¢ãã¦ããæ°ããå 容ãå¤æ´ãããç®æãªã©ããããããããããæ°è¦ãã¼ãã¨åæé²è¡ã§ä¿®æ£ä½æ¥ãè¡ãªã£ã¦ãã¾ãã ã¢ã«ã´ãªãºã ã®ã³ã¼ãã¼ã§ç´¹ä»ãã¦ãããµã³ãã«ã»ããã°ã©ã ãããã¤ãå ¬éãã¦ãã¾ãããã©ã¤ã³ã»ã«ã¼ãã³ããå弧æç»ãããã¤ã³ãã»ã«ã¼ãã³ããã°ã©ãã£ãã¯ã»ãã¿ã¼ã³ã®å¦çããå¤è§å½¢ã®å¡ãã¤ã¶ãããä¸ã¤ã«ã¾ã¨ãã GraphicLibrary ã¨ãã確çã»çµ±è¨ããããä¸è¬åç·å½¢ã¢ãã«ãã¾ã§ãä¸ã¤ã«ã¾ã¨ãã Statistics ãç¾å¨ã¯ç¨æãã¦ãã¾
ã¹ããããªã¹ãï¼Skip Listï¼ã¯1990å¹´ã«çºè¡¨ãããæ¯è¼çæ°ããã¢ã«ã´ãªãºã ã§ãè¦ç´ ã®æ¿å ¥ãåé¤ãæ¤ç´¢ã平衡æ¨ã¨åçã®ããã©ã¼ãã³ã¹ã§å®è¡å¯è½ãªãªã¹ãæ§é ã§ãã Skip Listã¯é£çµãªã¹ãã®å¤å±¤æ§æã«ãªã£ã¦ãã¾ããè·¯ç·ã«ä¾ããã¨ãæä¸å±¤ã®ãªã³ã¯ã¯åé§ åè»ã®ããã«ãå ¨è¦ç´ ãçµãã§ãã¾ããä¸æ¹ãä¸å±¤ã®ãªã³ã¯ã¯æ¥è¡ãç¹æ¥ã®ããã«ãéä¸ã®è¦ç´ ãã¹ãããããããã«ãªã£ã¦ãã¾ãããã®è·¯ç·ãç¹æ¥âæ¥è¡ââ¦âåé§ ã¨ä¹ãç¶ããã¨ã§ãç®çã®è¦ç´ ã«é«éã«å°éã§ããä»çµã¿ã§ãããã£ã¨è©³ãã解説ã¯ãã¡ãããã¡ãã«ããã¾ãã ã§ããããããæ¬é¡ã§ããSkip Listã®å®è£ ã¯ããã¤ãåºã¦ãããã§ãããSorted Listã¨ãã¦ã®å®è£ ã°ããã§ãè¦ç´ ãä»»æé åºã§æ ¼ç´ã§ãã¦ã©ã³ãã ã¢ã¯ã»ã¹ï¼indexãæå®ãã¦ã®ã¢ã¯ã»ã¹ï¼å¯è½ãªSkip Listãè¦ã¤ãããªãã£ãã®ã§ãèªåã§ä½ã£ã¦ã¿ã¾ããã é常ã®Skip
ä¸çªå³ç«¯ã®ç«ã£ã¦ãããããä½ç½®(RightMostBit)ãæ±ããã³ã¼ãã§éãã®ãªãããªã¼ã¨æ¢ãã¦ãããããã®ã£ã£ã£ãããã³ã¼ãã«åºä¼ã£ã¦ãã¾ã£ãã®ã§ãç´¹ä»ã2ch ã®ãããæ¼ç®ã¹ã¬ã§ 32bit å¤ã®ã³ã¼ãã«åºä¼ã£ã¦è¡æãåãã¦ããã®å¾ 64bit å¤çã®ãã³ããè¦ã¤ããã®ã§ã³ã¼ããæ¸ãã¦ã¿ã¾ããã ãã®åé¡ã¯ ããã«ã¼ã®ãã®ãã¿âæ¬ç©ã®ããã°ã©ãã¯ããã«ãã¦åé¡ã解ãã (Google book search ã§åè Hacker's delight ãèªããã®ã§ããã§æ¸ã¾ãã) 㧠number of trailing zeros (ntz) ã¨ãã¦ç´¹ä»ããã¦ãã¾ããbit ã§èããã¨ãã«å³å´ã« 0 ãããã¤ããããæ°ãããã®ã1 ã 㨠0ã2 ã 㨠1ã0x80 ãªã 7ã12 ãªã 2 ã¨ãã£ããããã0 ã®ã¨ãã«è¡¨é¡ã©ããã®åé¡ã¨ãã¦èããã¨ããã¤ãè¿ãã®ï¼ã£ã¦ãã¨ã«ãªãã®ã§ã
ã²ã¼ã ã®ä½ãæ¹ã¨ã¢ã«ã´ãªãºã ãã¸ã£ã³ã«å¥ã«ã¾ã¨ãã¦ã¿ã¾ãããã²ã¼ã å¶ä½ããããã°ã©ãã³ã°ã®åå¼·ç¨ã«ãæ´»ç¨ãã ãããè¨èªå¥ã²ã¼ã ããã°ã©ãã³ã°å¶ä½è¬åº§ä¸è¦§ããããã¦ãèªã¿ãã ããã ãªã³ã¯åããããã¦ãããã®ã¯ãURLã表示ãã¦ããã®ã§ãInternet Archiveãªã©ã§ãã£ãã·ã¥ã表示ããã¦ã¿ã¦ãã ããã RPG ã²ã¼ã ã®ä¹±æ°è§£æ ä¹±æ°ãå©ç¨ããæµåºç¾ã¢ã«ã´ãªãºã ã®è§£èª¬ å種ã²ã¼ã ããã°ã©ã 解æ FFããã©ã¯ã¨ããããµã¬ã®ããã°ã©ã ã®è§£æãä¹±æ°ã®è¨ç®ãªã© ãã¡ã¼ã¸è¨ç®ããããï¼http://ysfactory.nobody.jp/ys/prg/calculation_public.htmlï¼ ãã¡ã¼ã¸ã®è¨ç®å¼ ã¨ã³ã«ã¦ã³ãã«ã¤ãã¦èãã¦ã¿ã ã¨ã³ã«ã¦ã³ãï¼ãããã§ã®æµã¨ã®ééï¼ã®å¦çæ¹æ³ãããã RPGã®ä½ãæ¹ - ã²ã¼ã ãã«2000 RPGã®ã¢ã«ã´ãªãºã ãã«ã¢ã¼ã¬ã®å¡ ä¹±æ°ã®å·¥å¤«ã®
å³è§£æ±ãã 以ä¸ããããã³ã«å¦çãã¨ãã¡ãã»ã¼ã¸å¦çããåãã¦æ±ã£ã¦ãããããã®å·®ãé¡èã«åºãã®ã¯å ¨ææ¤ç´¢ã¨ã³ã¸ã³ãéåæã¸ã§ããµã¼ãã¼ãªã©ãå°ããªã¡ãã»ã¼ã¸ã§éãå¦çãããã¿ã¤ããã¹ããªã¼ã æåã®ãããã³ã«ã®å ´åã¯ããããã³ã«å¦çãããã¹ããªã¼ã å¦çãã«ç½®ãæããã¨ãããããããªãã ã·ã³ã°ã«ã¹ã¬ããï½¥ã¤ãã³ãé§å ã³ãã¯ã·ã§ã³Nï¼ã¹ã¬ããï¼ãepoll/kqueue/select ãï¼ã¤ä½¿ã£ã¦ã¤ãã³ãã«ã¼ããä½ãã ãã«ãã³ã¢CPUã§ã¹ã±ã¼ã«ããªãã®ã§ããµã¼ãã¼ã§ã¯ä»æãã®ã¢ãã«ã¯æµè¡ããªãã ã¯ã©ã¤ã¢ã³ãã§éåæãªã¡ãã»ã¼ã¸ã³ã°ãããããå ´åã¯ãã®ã¢ãã«ã使ããï¼ ãµã¼ãã¼ã«ã¡ãã»ã¼ã¸ãéä¿¡ ã¤ãã³ããã³ãã©ãç»é²ï¼ãã®ã¨ãã¤ãã³ããã³ãã©ã®ãã¤ã³ã¿ãåã£ã¦ãã ã¤ãã³ããã³ãã©->ãã©ã° ãONã«ãªãã¾ã§ã¤ãã³ãã«ã¼ããåã ã¤ãã³ããã³ãã©->çµæ ãè¿ã ï¼ã³ãã¯ã·ã§ã³ï¼ã¹ã¬ã
ãè¨ç®è«ãªãããã¥ã¼ãªã³ã°ãã·ã³ã§ååã ããããã¯ãã£ã¼ããããªããã¥ã¼ãªã³ã°ã«ã¤ãã¦ãããï¼Yã³ã³ããã¼ã¿ãããããï¼ã ã¨ãã人ãããããããªãã§ããããã ãã£ã±ãã£ã¼ããããã¥ã¼ãªã³ã°ã§ãããã ã¨ãã人ã®ããã«ããããããã¥ã¼ãªã³ã°å çãã³ã³ããã¼ã¿ãç¨æãã¦ãã ãã£ã¦ãã¾ãã Î=(λx.λy.y(xxy))(λx.λy.y(xxy)) Groovyã§æ¸ãã¨ããã§ããã def th = {x -> {y-> y(x(x)(y))}}({x -> {y -> y(x(x)(y))}}) ãããã«ãã£ãããããã > println th({f -> {n -> n < 2 ? n : f(n - 1) + f(n - 2)}})(7) Exception in thread "main" java.lang.StackOverflowError ãããã¹ã¿ãã¯ãªã¼ãã¼ããã¼ ã¨
ãã¤ã¸ã¢ã³ãã£ã«ã¿ã¨ããã¤ãºçè«ã¨ããåå¼·ããã«ããã£ã¦ãæåã¯ãªãã ãããããããªãã¨æãã®ã§ã ãããªäººã«ãå§ãã®ãµã¤ããæ¸ãæ®ãã¦ããã¾ãã @IT ã¹ãã 対çã®åºæ¬æè¡è§£èª¬ï¼åç·¨ï¼ç¶±å¼ãã«èå£å½ã¦ã²ã¼ã ï¼ï¼æ¥½ããå¦ã¶ãã¤ãºãã£ã«ã¿ã¼ã®ä»çµã¿ http://www.atmarkit.co.jp/fsecurity/special/107bayes/bayes01.html ããã¤ãã®çµµã§ãããããã解説ãã¦ããã¾ãã èªåãããããããæããããããã親åã«è§£èª¬ãã¦ãè¨äºã§ããæ°å¦ã¨ããã£ã±ãããããªã人ã¯ã¾ãããããèªã¿å§ããã¨ããã§ãããã è¨å大å¦æ å ±å·¥å¦ç§ã®ææã®ãã¼ã¸ãã http://jubilo.cis.ibaraki.ac.jp/~isemba/KAKURITU/221.pdf PDFã§ããããããããããããã¾ã¨ã¾ã£ã¦ã¾ãã åå¿è ã§ãç解ãããããä¾é¡ãããã¤ãã
ãã£ã¨ãYã³ã³ããã¼ã¿ãä½ãæå³ãããã®ãªã®ããã©ãããæ義ãããã®ãããããã¾ããã ååã使ããå帰ãã§ãã¾ããï¼ã¨ããã ãã®ãã®ãããªãã£ãã®ã§ããã ã¾ãλããã é¢æ°ã®è©±ããããã®ã§ãã ãã®ã¨ãããã¡ãã¡ hoge(x) = x * 2 ã¨ãã¦hogeãã»ã»ã»ãã¨ãååãã¤ãã¦è©±ãé²ããã®ãããã©ããªã®ã§ãé¢æ°ãå¤ã¨ãã¦ããããã¨ä¾¿å©ã¨ãããã¨ã§ãλã¨ããå¤ãå®ç¾©ããã®ã§ãã ããããã¨ãä¸ã®hogeé¢æ°ãªããã¯Î»(x)(x*2)ãªã©ã¨ããããã¾ãããå¼æ°ãããããã®ã«()ã使ãã¨ããããã¾ãããããã®ã§ã λx.x*2 ã®ããã«è¡¨è¨ãã¾ãã ã¨ããã®ãλã ãã®ã¨ããλã«ãªã«ããããããããå¼æ°ã¨ãã¦ããããããé¨åãåç´ã«ããããã¾ãã (λx.x*2)y ã¨ãã£ãããxã®é¨åãyã§ãããã㦠(λx.x*2)y â y * 2 ã¨ãªãã¾ããλã®å¼æ°é¨åãä¸ããããå¼æ°ã§ç½®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}