2006-07-01ãã1ã¶æéã®è¨äºä¸è¦§
ä»æ¥ã帰ãã®é»è»ã®ä¸ã§æãã¤ããåé¡ã ãã£ã«ãªããã§ãåºé¡æç¹ã§æ°åãå ¥ã£ã¦ãããã¹ãå«ã¾ãªããããã¯ããé表åºæ°ã®ãããã¯ãã¨å¼ã¶ãã¨ã«ããã ã§ããã ã大ããªãé表åºæ°ã®ãããã¯ããã§ããåé¡ãä½ãã 1Ã1ãªããç°¡åã£ã¦ããããªãã¨ããâ¦
ä»äºãç«ã¦è¾¼ãã§ããã天æ°ãæªãã£ããå¨ãç æ°ã«ãªã£ããã§ããªããªãéç©´ã®æ´»èºãåºæ¥ãããã£ã«ã ãå ¥ãã¦ããç¾åããã¾ã§äºã¶æè¿ãããã£ã¦ãã¾ã£ãã ã§ã ããããç¾åããã®ã§ãæ°æ¥åãã flickr ã«å¾©æ´»ã ãããªæãããããã®é ã¯ããæ´ãã¦ãâ¦
ãã¤ããã³ã©ããã ãã£ãã std::set ãããã®ã§ C++ ã§ãã³ã©ããéå±éãæ¸ãã¦ã¿ã: typedef long long num_t; typedef pair< num_t, num_t > nums_t; num_t collatz( num_t n ) { num_t done = 3; set< nums_t > waits; waits.insert( nums_t(8,4) ); â¦
http://ll.jus.or.jp/2006/blog/doukaku2 ã®è©±ã3åç®ã g:haskell:id:jmk:20060712:1152721034 ã§ãã£ã¦ããéå±éãç§ããã£ã¦ã¿ãã ãã ãããã®ã¾ãã¾ãã㨠h(100)ã®è¨ç®ãçµãããªããããªã®ã§ãçµããããã«å·¥å¤«ãã¦ï¼ def collatz( n ) done=3 # 1,â¦
d:id:theta:20060711 ã«åæã«åå¿ãã¦ï¼ ãã³ãåãããåºæ¥ã åºè§ãæ®ãã ããããæ®ãã æ¥åãåºæ¥ã 軽ãã¦å°ããã¦æã¡æ©ãã«ä¾¿å© æãã¨ããã§ãæ®ãã ã§ã調ã¹ãã«è¨æ¶ã§æ¸ãã¨ã ãåºè§ãã35mmçæç®33mmããåºè§ã¨ãããã¨ãªãæ©ç¨®ã¯ãããéâ¦
ã³ã¡ã³ããããã¨ããããã¾ãï¼ãªãã ãã ã¨ããããã§ã||=ã使ã£ãããã¦ãç§ã®æºè¶³è¡ãã¨ããã¾ã§çããªã£ãããã°ã©ã ã以ä¸ã«: class Collatz include Enumerable def initialize( n ) @n=n @cache={1=>1} end def calc(n) @cache[n] ||= 1+calc( 0==â¦
http://jijixi.azito.com/cgi-bin/diary/index.rb?date=20060711#p02 çµç±ã§ã http://ll.jus.or.jp/2006/blog/doukaku2 class Collatz include Enumerable def initialize( n ) @n=n @cache={1=>1} end def calc(n) @cache[n]=_calc(n) unless @cache.incluâ¦
ãããªãã¨ãã¦ããæã¯ãªãã®ã«ãã¤ããå å·¥ãã¦ãã¾ã£ãã ã¡ãã£ã¨å¾æãã¦ããã ããã§ãæè§ä½ã£ãã®ã§ãç½®ãã¦ãããã¨æãã ãã¼ããæ¯ä¸¦ã¿ã®å¦çãããã¡ãã£ã¨ãã¹ãã ã£ããã念ã®ããã«æ¸ãã¦ããã¨ï¼ d:id:hatenacinnamon:20060630:p1 ã®åçãâ¦
ã¾ãã¯ããåå ããã ããããã¨ããããã¾ãããï¼ debedebeæ§ãfukkenæ§ããã㨠mixi å ã®ãäºæ¹ã æ°´ããã®ä¼è¨ã®é ä½ä»¥å¤ã¯çµæ§ã°ãã°ãã§é©ãã¾ãããã§ãï¼ããã§æä½ãå¤ããï¼ç§ã®æå³ã¨ã¯éãèªã¾ãæ¹ããã¦ããã¨æãããç¹ã«ã¤ãã¦è£è¶³èª¬æã ãâ¦