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
- 이진탐색
- PrivateSubnet
- Docker
- SELinux비활성화
- Python
- terraform main commands
- terraform
- lsof
- session manager
- endpoint
- 인텔리제이
- Mac
- ec2
- 프로그래머스
- Timezon설정
- linuxr계정설정
- terraform variable
- binarysearch
- Jenkinspipeline
- terraform 설치
- JWT
- terraform backend
- algorithm
- Jenkins
- java
- s3
- haproxy
- Process monitoring
- heapq
- terraform 기본개념
Archives
- Today
- Total
목록heap (1)
MONG 기술블로그

Heap 이란 거의 완전한 트리 기반의 자료구조이다. 거의 완전한 트리 기반으로 양쪽이 균형을 유지하는 특성을 가지기에 다음과 같은 알고리즘 및 자료구조를 구현하는데 사용된다. 우선순위 큐 다익스트라 알고리즘 힙 정렬 최소 신장 트리 ( MST ) Heap 자료구조를 python을 이용하여 직접 구현해보고, python에 내장된 heapq를 사용하는 방법에 대해 알아보자. BinaryHeap 구현 ( Python ) class BinaryHeap(): """ Heap은 편의성을 위해 배열의 첫번째 인자를 None으로 놓고 Index를 1부터 사용한다. """ def __init__(self) -> None: self.items = [None] def __len__(self): return len(self..
카테고리 없음
2022. 8. 10. 19:35