2013년 2월 6일 수요일
2013년 1월 31일 목요일
하노이 타워
#lang racket
(define (hanoitower disc src aux dst)
(cond
[(> disc 0)
(hanoitower (- disc 1) src dst aux)
(displayln (format "Move ~s from ~s to ~s"disc src dst))
(hanoitower (- disc 1) aux src dst)]))
(hanoitower 3 1 2 3)
List max size
fastutil이 뭔가 궁금해서 찾아보다가.
collection util 관련 내용도 찾아봤습니다.
1.
http://b010.blogspot.kr/2009/ 05/ speed-comparison-of-1-javas-bui lt-in.html
2.
http://stackoverflow.com/ questions/629804/ what-is-the-most-efficient-java -collections-library
Generally, a List implementation can hold any number of items (If you use an indexed List, it may be limited to Integer.MAX_VALUE or Long.MAX_VALUE). As long as you don't run out of memory, the List doesn't become "full" or anything.
링크에 이런 말이 있네요.
2^31-1 개 만큼 list 를 담을 수 가 있어서 이 이상의 데이터는 리스트에 못 담네요.
그래서 위의 fastutil에서 int[][] 이렇게 해서 64bit에서 된다는 건가요? ^^;;
http://stackoverflow.com/questions/3767979/how-many-data-a-list-can-hold-at-the-maximum
http://stackoverflow.com/questions/7632126/maximum-size-of-hashset-vector-linkedlist
http://stackoverflow.com/questions/3038392/do-java-arrays-have-a-maximum-size
http://stackoverflow.com/questions/816142/strings-maximum-length-in-java-calling-length-method
http://fastutil.di.unimi.it/docs/it/unimi/dsi/fastutil/BigArrays.html
collection util 관련 내용도 찾아봤습니다.
1.
http://b010.blogspot.kr/2009/
2.
http://stackoverflow.com/
Generally, a List implementation can hold any number of items (If you use an indexed List, it may be limited to Integer.MAX_VALUE or Long.MAX_VALUE). As long as you don't run out of memory, the List doesn't become "full" or anything.
링크에 이런 말이 있네요.
2^31-1 개 만큼 list 를 담을 수 가 있어서 이 이상의 데이터는 리스트에 못 담네요.
그래서 위의 fastutil에서 int[][] 이렇게 해서 64bit에서 된다는 건가요? ^^;;
http://stackoverflow.com/questions/3767979/how-many-data-a-list-can-hold-at-the-maximum
http://stackoverflow.com/questions/7632126/maximum-size-of-hashset-vector-linkedlist
http://stackoverflow.com/questions/3038392/do-java-arrays-have-a-maximum-size
http://stackoverflow.com/questions/816142/strings-maximum-length-in-java-calling-length-method
http://fastutil.di.unimi.it/docs/it/unimi/dsi/fastutil/BigArrays.html
2013년 1월 27일 일요일
haskell monad
http://stackoverflow.com/questions/2704652/monad-in-plain-english-for-the-oop-programmer-with-no-fp-background/2704795#2704795
2012년 12월 3일 월요일
errai 에서 제공하는 client -server 방식
- 기본적으로 comet을 이용한 MessageBus로 구현이 되어 있다.
- websocket이 지원이 되면 Errai Bus가 comet이 아닌 WebSocket을 이용한다.
출처 : http://docs.jboss.org/errai/2.2.0.CR1/errai/reference/html_single/#sid-5931280_MessagingAPIBasics-SendingMessageswiththeClientBus
2012년 12월 2일 일요일
unbuntu에서 R 셋업방법
sudo apt-get install r-base
emacs 2.4 셋업
ess 설치 : ess란 emacs에서 통계관련 툴을 도와주는 패키지
emacs 2.4 셋업
ess 설치 : ess란 emacs에서 통계관련 툴을 도와주는 패키지
- emacs 실행 후 M-x package-install ess
- 또는 sudo apt-get install ess
R 실행
- M-x R
- starting data directory? [시작할 디렉토리]
자동완성
- Shift - : <-
- Tab : 자동완성
피드 구독하기:
글 (Atom)