Data.Map.Map is a balanced binary tree internally, so its time complexity for lookups is O(log n). I believe it\'s a \"persistent\" data structure, meaning it\'s implemented such that mutative operations yield a new copy with only the relevant parts of the structure updated.Data.HashMap.Map is a Data.IntMap.IntMap internally, which in turn is implemented as Patricia tree; its time complexity for lookups is O(min(n, W)) where W is the number of bits in an integer. It is also \"persistent.\"Data.HashTable.HashTable is an actual hash table, with time complexity O(1) for lookups. However, it is a mutable data structure -- operations are done in-place -- so you\'re stuck in the IO monad if you want to use it.
하스켈위 Data.Map.Map은 해시맵이 아니었군
익명(175.223)
2017-08-19 18:19
추천 0
다른 게시글
-
고랭빠 특징 [2]dd(175.223) | 17.08.19추천 0
-
난 신의 존재를 믿는다아재린(175.125) | 17.08.19추천 0
-
세상에ㅡ제일멍청한게 금연 금주때문에 스트레스 받는넘들아재린(175.125) | 17.08.19추천 0
-
어디 감히 고랭따위가 [2]세브(112.214) | 17.08.19추천 2
-
결국 폇어 [4]일본게이(110.165) | 17.08.19추천 0
-
형들 접니다. 용기를내세요 [1]마츠미쿠로(123.199) | 17.08.19추천 0
-
해시코드 라는 사이트가 rails 로 만들었네 ㅎㅎ [3]킹갓vim(59.23) | 17.08.19추천 0
-
달마가 동쪽으로간 까닭이있듯이 구글이 파이썬버리고golang간 까닭은?익명(46.182) | 17.08.19추천 0
-
NoSQL DB가 대두된 이유가... [4]다메즈마(211.248) | 17.08.19추천 0
-
<Rust> 러스트의 해시맵다메즈마(211.248) | 17.08.19추천 0
댓글 0