Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- KTNF
- Hash Table
- Python
- Anaconda
- IO Visor
- Ipython
- 파이썬
- virtualenv
- django framework
- 백준 알고리즘
- 국산 네트워크
- Hash function
- 주피터
- ubuntu
- linked list
- 우분투
- Euler
- Django
- Python3
- 문자열
- project euler
- 아나콘다
- FNCP
- jupyter
- virtualenvwrapper
- 프로젝트 오일러
- 다이나믹 프로그래밍
- 피보나치 수
- 파이썬3
- data structure
Archives
- Today
- Total
태코놀로지
Chaining 기반의 해시 충돌 해결법에서 head 활용 이유 본문
Simple means to resolve collision
- "Chaining": Use linked-lists. New key inserted at the head of a list.
(충돌난 hash slot에 linked-list를 이용해서 주렁주렁 이어 달자. 단 head!)
Why not inserted at the tail?
(왜 tail이 아니라, head?)
tail에 달기 위해서, tail까지 탐색이 필요한데,
search operation of linked-list takes linear time
(i.e., proportional to the size)
Comments