ToDo:
®¤¤¤Ê! ¸«Ä¾¤·¤¿¤è¡£
GHC:
./a.out 0.02s user 0.00s system 100% cpu 0.024 total
²¶¥³¥ó¥Ñ¥¤¥é:
./tarai 1.11s user 0.00s system 98% cpu 1.133 total
tarai 1220 520 100 ¤Ë¤Æ
(01:14)
GDC ¤Î¥¯¥í¡¼¥¸¥ã¤Î°·¤¤¤¬¤ª¤«¤·¤¤µ¤¤¬¤¹¤ë¡£ ¤Ê¤ó¤È¤Ê¤¯¥¹¥¿¥Ã¥¯¥Õ¥ì¡¼¥à¤¬ GC ¤µ¤ì¤Æ¤ë¤È¤« ¤½¤ó¤Ê´¶¤¸¤Êµ¤¤¬¤¹¤ë¤±¤É¤¹¤°¤Ë¤Ï¤ï¤«¤é¤Ê¤¤
¤ó¡£¤¢¡¼¤³¤Î GDC ¤Ï¤½¤â¤½¤â real closure Æþ¤Ã¤Æ¤ë¥Ð¡¼¥¸¥ç¥ó°ÊÁ°¤«¡Ä
(01:39)
¤¿¤Ö¤óÁ´Á³°ã¤Ã¤Æ¤ë¤Ê¤¡¡Ä
http://pc11.2ch.net/test/read.cgi/tech/1202623572/509
¤¦¡¼¤ó¡£ ¤Þ¤º°ì±þ¤¸¤ã¤Ê¤¯¤ÆΩÇɤ˥Á¥å¡¼¥ê¥ó¥°´°Á´¤¸¤ã¤Ê¤¤¤«¤Ê¤¡¡£ CCNOT ¤Ç¨ºÂ¤Ë NAND ºî¤ì¤ë¤è¤Í¡£
²ÄµÕÀ¤Ë¤Ä¤¤¤Æ¤Ï¸Åŵ¥³¥ó¥Ô¥å¡¼¥¿¤Î±é»»¤Ã¤Æ¤¿¤Ö¤ó Á´Éô²ÄµÕ¤Ê¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¤¡¡£ ¤¿¤Ö¤ó¤½¤Î¤Ø¤ó¤Ï¿¿µÕ¤È¤¤¤¦¤«¡£
¤¢¤ÈǤ°Õ¤Î¥æ¥Ë¥¿¥êÊÑ´¹¤È¤«¤¤¤¦¥ä¥Ä¤¬¤Ç¤¤ë¤ó¤Ç ¤è¤í¤·¤³¤È¤¤¤¦¤« NOT ¤È CNOT ¤È CCNOT ¤È SWAP ¤Ã¤Æ Á´Éô CCNOT ¤Ç¨ºÂ¤Ëºî¤ì¤ë¤ó¤¸¤ã¤Ê¤¤¤Î¡£ (CCNOT ¤ÎÆþÎϤò A,B,C ¤È¤·¤Æ A = B = 1 ¤Ç NOT, A=1 ¤Ç CNOT, CNOT*3 ¤Ç SWAP)
¤½¤Ã¤«¤é¤ÏÈù̯¤Ë¤¿¤Ö¤óÀµ¤·¤¯¤Æ¡¢ ¤³¤¦¤Ê¤ó¤Æ¤¤¤¦¤«Î̻ҥ³¥ó¥Ô¥å¡¼¥¿²°¤¬ ¡ÖÎ̻ҥ³¥ó¥Ô¥å¡¼¥¿¡×¤È¸À¤¦»þ¤Ë°ÕÌ£¤¹¤ë¤â¤Î¤È Î̻ҥ³¥ó¥Ô¥å¡¼¥¿¤Ã¤Æñ¸ìʹ¤¤¤¿»þ¤Î¸ì´¶¤¬¤¿¤Ö¤ó¥º¥ì¤Æ¤ë¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¡£ ñ¤ËÎÌ»ÒŪ¤Ê¤Õ¤ë¤Þ¤¤¤ò¤¹¤ë¤â¤Î¤ò¹½À®Í×ÁǤȤ·¤Æ ¥³¥ó¥Ô¥å¡¼¥¿ºî¤Ã¤Æ¤â¤½¤ì¤ÏÎ̻ҥ³¥ó¥Ô¥å¡¼¥¿¤È¤Ï¸Æ¤Ð¤Ê¤¤¤·¡¢ ¤Ä¤Þ¤êÎÌ»ÒŪ¤Ê¤Õ¤ë¤Þ¤¤¤ò¤¹¤ë¤â¤Î¤ò»È¤Ã¤Æ (Î̻ҤÏñ¤Ë¹©³ØŪ¤Ê°ÕÌ£¤Ç¿§¡¹°·¤¤¤Ë¤¯¤¤ÆÃħ¤¬¤¢¤ë¤Î¤ÇÂçÊѤÀ¤í¤¦¤±¤É) ÉáÄ̤θÅŵ¥³¥ó¥Ô¥å¡¼¥¿¤òºî¤ë¤³¤È¤ÏÁ´Á³¤Ç¤¤ë¤·¡£
¤ó¤ÇÎ̻ҥ³¥ó¥Ô¥å¡¼¥¿²°¤¬Î̻ҷ׻»¤Ã¤Æ¸À¤¦»þ¤Ï¡¢ ÎÌ»ÒŪ¤Ê¤Õ¤ë¤Þ¤¤¤ò¤¦¤Þ¤¯ÍøÍѤ·¤Æ¹â®¤Ë·×»»¤ò¤¹¤ë¤³¤È¤ò»Ø¤·¤Æ¤¤¤ë¤Î¤Ç¡¢ ¡ÖÎ̻ҥ³¥ó¥Ô¥å¡¼¥¿¤Ï®¤¤¡¢¤¹¤´¤¤¡×¤Ê¤ó¤Æ¤Î¤Ï ¤Þ¤¡¤Û¤È¤ó¤ÉÄêµÁ¤ß¤¿¤¤¤Ê¤â¤ó¤È¸À¤Ã¤Æ¤¤¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¤È»×¤¦¡£
¤À¤«¤é¤Þ¤¢¸Åŵ¤Ç¤Ç¤¤ÆÎ̻ҥ³¥ó¥Ô¥å¡¼¥¿¤Ç¤Ç¤¤Ê¤¤¤³¤È¤¬¤¢¤ë¡¢ ¤È¤«¤¤¤¦¼çÄ¥¤Ï¤³¤¦ C ¤Ç¤Ç¤¤Æ C++ ¤Ç¤Ç¤¤Ê¤¤¤³¤È¤¬¤¢¤ë¡¢ ¤ß¤¿¤¤¤Ê¼çÄ¥¤Ë¶á¤¯´¶¤¸¤é¤ì¤Æ¤¤¤ë¡£
¤Ç¤Þ¤¡¡Ö¤½¤ÎÀ¼Á¤ò¥Õ¥ë¤Ëȯ´ø¤¹¤ë¡×¤³¤È¤òÎ̻ҷ׻»¤È¸Æ¤ó¤Ç¤ë¤È¤·¤Æ¡¢ ¤½¤ÎÎ̻ҷ׻»¤Ë¸Åŵ¥³¥ó¥Ô¥å¡¼¥¿ÍѤθÀ¸ì¤¬¸þ¤¤¤Æ¤Ê¤¤¡¢ ¤Ã¤Æ¤¤¤¦¤Î¤ÏÈó¾ï¤ËÀµ¤·¤¤¤È»×¤¦¡£ ¡Ö¥¢¥»¥ó¥Ö¥ê¤ÏÊÂÎó·×»»¤Ë¸þ¤¤¤Æ¤Ê¤¤¡×¤ß¤¿¤¤¤Ê´¶¤¸¤À¤±¤É¡¢ ¤Þ¤¡¤â¤Ã¤È¸þ¤¤¤Æ¤Ê¤¤´¶¤¸¤À¤È»×¤¨¤Ð¤½¤ó¤Ê¤Ë´Ö°ã¤Ã¤Æ¤Ê¤¤¤È»×¤¦¡£
Î̻ҷ׻»¤¬¤É¤ó¤Ê¤â¤ó¤«¤òÁÛÁü¤¹¤ë¤Î¤Ï ʬ»Ò·×»»¤È¤«¤òÃΤë¤È¥¤¥á¡¼¥¸¤¬Êá¤ß¤ä¤¹¤¤µ¤¤¬¤¹¤ë¡£ ʬ»Ò·×»»¤Ä¡¼¤Î¤ÏÊ̤ËÎ̻ҷ׻»¤È¤Ï¤Ê¤ó¤â´Ø·¸¤Ê¤¤ ¸Åŵ·×»»¤Ê¤ó¤À¤±¤É¡¢¤¿¤ÀÊÂÎóÅÙ¤¬È¾Ã¼¤Ê¤¤¤È¤µ¤ì¤Æ¤¤¤ë¡£ ¶ñÂÎŪ¤Ë¤É¤¦¤¹¤ë¤«¤Ä¡¼¤È¥é¥ó¥À¥à¤Ê DNA ¤òÂçÎ̤ËÍÑ°Õ¤·¤Æ¡¢ ¤Ð¤é¤Þ¤¯¡£ ¤ó¤Ç²òÅú¤Î¾ò·ï¤Ë¹çÃפ¹¤ë¤È¤Ò¤Ã¤Ä¤¯ËÀ¤ò¤Ä¤Ã¤³¤ó¤Ç ¤Õ¤ê¤Þ¤ï¤·¤Æ¡¢¤Ò¤Ã¤Ä¤¤¤Æ¤¤¿ DNA ¤ò¸«¤ì¤Ð²òÅú¤¬È½ÌÀ¤¹¤ë¤È¤¤¤¦¤â¤Î¡£ ¤¿¤Ö¤óÀ¼Á¾å²òÅú¤ÎÀ®Èݤ¬³Îǧ¤Ç¤¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤Î¤Ç NP ¤Þ¤Ç¤¬²ò¤±¤ë´¶¤¸¤¸¤ã¤Ê¤¤¤«¤Ê¡£ ¤¿¤À¥¢¥Ü¥¬¥É¥í¿ô¤È¤«¤Ã¤Æ°Æ³°¾¯¤Ê¤¤¤Î¤Ç ²ò¶õ´Ö¤Î DNA ¤òÁ´Éôºî¤ë¤Î¤¬º¤Æñ¤Ê´¶¤¸¤Î¡¢ ¤â¤Î¤´¤Ã¤Ä¤¤Ê£»¨¤ÊÌäÂê¤Ï²ò¤±¤Ê¤¤¤è¤Í¡¼¤È¤¤¤¦¡£
Î̻ҷ׻»¤âƱ¤¸´¶¤¸¤ÇÅú¤¨¸õÊä¤ò¤°¤ï¡¼¤Èºî¤ë¤Ã¤Æ¤Î¤ÏƱ¤¸¤Ê¤ó¤À¤±¤É¡¢ ºî¤ë¾ì½ê¤¬¤³¤¦¤è¤¯¤ï¤«¤é¤ó¤¯¤Æ¡¢ ½Å¤Í¤¢¤ï¤»¤È¤«¤¤¤¦¤â¤Î¤Ç¤â¤Ë¤ç¡¼¤ó¤Èºî¤ë¤Ã¤Æ¤Î¤¬°ã¤¦¤È¤³¤í¡£ ¿À¤³¦²ò¼á¤È¤«¤¤¤¦¥¢¥ì¤À¡£
°ã¤¤¤Ï¤È¤¤¤¦¤È¡¢ Î̻ҥӥåȤοô N ¤ËÂФ·¤Æ 2^N ¤È¤«¤Ç²ò¸õÊä¤ò ÍѰդǤ¤ë¤«¤éÆñ¤·¤¤ÌäÂê¤Ë;͵¤Ç¥¹¥±¡¼¥ë¤¹¤ë¤Ã¤Æ¤Î¤¬¥á¥ê¥Ã¥È¤Ç¡¢ 2^N ¸Ä¤Î²ò¸õÊä¤òÁ´Éô¤Ê¤á¤ë¤è¤¦¤Ê¤³¤È¤Ï Âç¿Í¤Î»ö¾ð¤Ç¤Ç¤¤Ê¤¯¤Æ¡¢ 2^N ¸Ä¤Ë¤Ê¤ó¤é¤«¤Î±é»»¤«¤Þ¤·¤¿¸å¤Ë¡¢ Àµ¤·¤¤¤â¤Î¤À¤±¤Ò¤¤º¤ê½Ð¤·¤Æ¤¯¤ë¤è¤¦¤Ê ¤È¤Æ¤â¸¤¤¥¢¥ë¥´¥ê¥º¥à¤ò¹Í¤¨¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤È¤¤¤¦¤Î¤¬¥Ç¥á¥ê¥Ã¥È¡£ ¤³¤Î¥Ç¥á¥ê¥Ã¥È¤Ï°Æ³°½ÅÍפǡ¢¸½ºß¤Þ¤Ç¤Ç¥¢¥ë¥´¥ê¥º¥à¤Ï ¤¨¤é¤¤¤Á¤ç¤Ã¤È¤·¤«¸«¤Ä¤«¤Ã¤Æ¤Ê¤¤¡£ ¤¢¤È¤â¤¦°ì¤Ä¤Î¥Ç¥«¤¤¥Ç¥á¥ê¥Ã¥È¤ÏÎ̻ҥӥåȤò ¤¿¤¯¤µ¤ó»È¤¦¤Î¤Ï¤¨¤é¤¤ÂçÊѤǤ³¤¦10qubit¤È¤«¤Ç¤¤¿¤é ¤¹¤²¡¼¤ß¤¿¤¤¤Ê´¶¤¸¤À¤È¤«¤½¤ó¤ÊÏäǡ¢ ¤Þ¤¡ÀµÄ¾¤Ç¤¤½¤¦¤â¤Ê¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤È¤¤¤¦¤è¤¦¤Ê¡£ ¤¢¤È¥¨¥é¡¼¤¬¤¿¤¯¤µ¤óµ¯¤¤ë¤Î¤Ç ¥¨¥é¡¼¥³¥ì¥¯¥·¥ç¥ó¤·¤Ê¤¤ã¤¤¤±¤Ê¤¤¤ó¤À¤±¤É 1qubit ¤Ë 7qubit ¤Ç EC ¤¹¤ë¤È¤«¥¢¥ê¥¨¥Í¡¼¤È¤¤¤¦¤«¡£
¤½¤¤¤ä SIGGRAPH ¤Î¤ä¤Ä¤ß¤Ê¤¤¤È¡£
(22:25)
http://d.hatena.ne.jp/mr_konn/20080304/1204632557
http://d.hatena.ne.jp/sumim/20080303/p1
¤ò¸«¤Æ¡¢¤ó¤¸¤ã mecab ¤Çʬ²ò¤¹¤ì¤Ð¤¤¤¤¤¸¤ã¤Ê¡¼¤¤¤È»×¤Ã¤¿¤ó¤À¤±¤É¡¢ ¤½¤¦¤¤¤¨¤Ð Io ¤Î UTF8 Âбþ¤Ï¿§¡¹¤ÈÉå¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¢¤Ã¤¿¤ÈÃÇÇ°¤·¤¿¡£
Number ¤Î := method( write(self) ) 100¤ÎÊ¿Êýº¬¤ÎµÕ¿ô¤òɽ¼¨¤¹¤ë
¤Ç 100 ¤È¤«½Ð¤Á¤ã¥À¥á¤À¤í¤¦!
Io ¤Ë¤ª¤±¤ëÀµ¤·¤¤ DSL ¤Î¤¢¤ê¤«¤¿¤È¤·¤Æ¤Ï °Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤¬¤¢¤ë¤È¤Ï»×¤¦¡£
Number k := method(*1024) Number M := method(k k) Number G := method(k M) write(1G,"\n")
(23:11)
Á° | 2008ǯ 3·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£