| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 백준
- pointer
- 알고리즘
- Object Oriented Programming
- 반복문
- baekjoon
- Deep Learning
- predictive analysis
- Class
- assignment operator
- C++
- string
- array
- Python
- Pre-processing
- 오블완
- 파이썬
- Data Science
- 배열
- 포인터
- function
- 문자열
- OOP
- programming
- vscode
- 함수
- pass by reference
- raw data
- const
- 티스토리챌린지
- Today
- Total
목록Data Science/Data Structure & Algorithm (58)
Channi Studies
Heapify OperationHeapsort is a sorting algorithm that takes advantage of a max-heap's properties by repeatedly removing the max and building a sorted array in reverse order. An array of unsorted values must first be converted into a heap. The heapify opeartion is used to turn an array into a heap. Since leaf nodes already satisfy the max heap property, heapifying to build a max-heap is achieved ..
Heaps and the MaxHeap ClassEach level of a max-heap tree greows from left to right; a new level is added only after the current level fills up completely. Because the tree is nearly full (with at most one level not completely filled), an array implementation is efficient. The array implementation means that the root is always at index 0, and the index of any node's parent and children can be eas..
Heap StorageHeaps are typically stored using arrays. Given a tree representation of a heap, the heap's array form is produced by traversing the tree's levels from left to right and top to bottom. The root node is always the entry at index 0 in the array, the root's left child is entry at index 1, the root's right child is entry at index 2, and so on. Parents and Child IndicesBecause heaps are ..
Heaps Concept때때로 프로그램들은 변화하는 데이터 셋에서 최대/최소값의 아이템을 빠르게 접근하고 제거할 수 있는 능력이 필요합니다. 이럴 때 힙 자료 구조는 아주 유용합니다. Max-HeapMaintaining jobs in fully-sorted order requires more operations than necessary, since only the maximum item is needed. A max-heap is a complete binary tree that maintains the simple property that a node's key is greater than equal to the node's children's keys. (Max heap, 최대힙은 어떤 트리 구조..