일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- project euler
- 파이썬3
- Django
- django framework
- Python3
- linked list
- 다이나믹 프로그래밍
- 우분투
- data structure
- IO Visor
- 파이썬
- ubuntu
- Python
- KTNF
- Hash Table
- 피보나치 수
- 주피터
- virtualenv
- jupyter
- Euler
- 백준 알고리즘
- 문자열
- 프로젝트 오일러
- Ipython
- Hash function
- FNCP
- 국산 네트워크
- virtualenvwrapper
- 아나콘다
- Anaconda
- Today
- Total
목록Taekho-nology (35)
태코놀로지
1. Motivation- Use array (static set) or linked-list (dynamic set)- They take linear time for search operation (i.e., proportional to the size)- Need better method → hash table(Array/Linked-list의 크기에 비례하는 탐색시간을 줄이는 방법이 필요) 2. Problem- When a record to be inserted maps to an already occupied slot in hash table, a collision occurs- You need a good hash function(높은 확률로 테이블 크기가 데이터보다 작기 때문에 한 슬롯에 배정..
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)
What is the property of a good hash function?1. Even distribution- Minimizes "collision" of keys 2. Irregularness- Avoids collision of patterned inputs(E.g., input of {0, 100, 200, 300} for the hash function h(k) = k % 100)
Advantages1. Size varies dynamically (dynamic set)- Unlike the static array (static set) you don't need to reserve a large memory in advance2. Insertion, deletion, merging, splitting take only constant time (cf. takes linear time for search operation)- In contrast, array takes linear time (i.e., proportional to the size) for these operations Disadvantages1. You cannot access an element using an ..
리눅스 설치 후 부팅 시 grub boot loader가 원하는 곳에 설치되지 않아서 문제가 발생하는 경우가 있다.정상적으로 부팅이 진행되지 않고, 터미널처럼 CLI 환경으로 입력을 요청받는 화면이 나온다. grub rescue> 이 경우 grub boot loader 때문에 다시 OS 설치를 진행하는 경우가 있는데, 상당한 시간이 소요된다.아래의 명령어를 따라하면 재설치 없이 boot loader만 복구하여 정상적인 부팅이 가능해진다. grub rescue> ls(hd0), (hd0, msdos1), (hd0, msdos2) 리스트에 대해서 하나씩 내용을 보면 ext4 중에서 파티션의 리스트가 나오는 녀석이 있다.여기서는 그 녀석을 msdos2라고 가정하고 진행한다. grub rescue> ls (hd..