Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
자료구조와 알고리즘의 관계, 힙
Search
Sour_sr
June 16, 2020
26
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
자료구조와 알고리즘의 관계, 힙
Sour_sr
June 16, 2020
More Decks by Sour_sr
See All by Sour_sr
리팩토링
seorim
0
29
엔디안
seorim
0
31
프레임과페이지
seorim
0
26
분할정복법
seorim
0
42
Featured
See All Featured
Mind Mapping
helmedeiros
1
400
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
600
Prompt Engineering for Job Search
mfonobong
0
520
Embracing the Ebb and Flow
colly
88
5.2k
We Are The Robots
honzajavorek
0
400
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
GitHub's CSS Performance
jonrohan
1033
470k
Tell your own story through comics
letsgokoyo
1
1.1k
Transcript
ܐҳઑ৬ ঌҊ્ܻ नࢲܿ ?
ܐҳઑ = ঌҊ્ܻ?
۽Ӓ۔ = ܐҳઑ + ঌҊ્ܻ
ੑ۱ ۱
যڌѱ ? ܐҳઑ
যڌѱ ܻ? ঌҊ્ܻ
None
״ - ظ - ࣗ
ࣗ - ظ - ״
ࣗ - ظ - ״
ࣗ ظ Ž Ŭ
ܐҳઑ
None
None
None
None
ঌҊ્ܻ
ই ഒۆझ۞ࠗ۞~
ܐҳઑܳ ٜ݅ ٸ, ঌҊ્ܻ ѐੑغযঠೞӝ ٸޙ
൩
௸ ࢶࣽਤ ௸
୭؆ч~ ୭ࣟч~
ࠗݽ ֢٘ ః ч ध ֢٘ ః чࠁ ೦࢚ ()
ܻ
1. ൩ী ࢜۽ ਃࣗо ٜয৳. 2, ࢜۽ ֢٘ח ൩ ݄݃
֢٘ী যࢲ ੑೠ. 3. ൩ ઑѤਸ ݅ೡ ٸө ࢜۽ ֢٘ܳ ࠗݽ ֢ٜ٘җ Үജೠ.
None
None
// ୭ ൩(max heap) ੑ ೣࣻ void insert_max_heap(HeapType *h, element
item) { int i; i = ++(h->heap_size); while((i != 1) && (item.key > h->heap[i/2].key)) { h->heap[i] = h->heap[i/2]; i /= 2; } h->heap[i] = item; }
1. ୭؆чੋ ܖ֢٘ܳ ઁೠ. 2, ઁػ ܖ֢٘ী ൩ ݄݃ ֢٘ܳ
оઉৡ. 3. ൩ ઑѤਸ ݅ೡ ٸө ҳࢿೠ.
None
None
None
// ୭ ൩(max heap) ઁ ೣࣻ element delete_max_heap(HeapType *h){ int
parent, child; element item, temp; item = h->heap[1]; temp = h->heap[(h->heap_size)--]; parent = 1; child = 2; while(child <= h->heap_size) { if( (child < h->heap_size) && ((h->heap[child].key) < h->heap[child+1].key) ){ child++; } if( temp.key >= h->heap[child].key ){ break; } h->heap[parent] = h->heap[child]; parent = child; child *= 2; } h->heap[parent] = temp; return item; }