Submit Search
Upload
Heapify down
•
0 likes
•
2,716 views
Y
Yebon You
Follow
heapifyDown() method in Heap data structure
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 21
Download now
Download to read offline
Recommended
(Leetcode) 328. Odd Even Linked List.pdf
(Leetcode) 328. Odd Even Linked List.pdf
Yebon You
Countingsort
Countingsort
Yebon You
Graph bfs
Graph bfs
Yebon You
Graph dfs-and-path
Graph dfs-and-path
Yebon You
Quicksort partitioning
Quicksort partitioning
Yebon You
Mergesort divide
Mergesort divide
Yebon You
Merge
Merge
Yebon You
Mergesort
Mergesort
Yebon You
Recommended
(Leetcode) 328. Odd Even Linked List.pdf
(Leetcode) 328. Odd Even Linked List.pdf
Yebon You
Countingsort
Countingsort
Yebon You
Graph bfs
Graph bfs
Yebon You
Graph dfs-and-path
Graph dfs-and-path
Yebon You
Quicksort partitioning
Quicksort partitioning
Yebon You
Mergesort divide
Mergesort divide
Yebon You
Merge
Merge
Yebon You
Mergesort
Mergesort
Yebon You
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Heapify down
1.
poll() 4 15 6 5 8 19 2 20 By
yaboong https://yaboong.github.io minHeap.poll() 메소드 호출
2.
2 By yaboong https://yaboong.github.io minHeap.poll() 메소드
호출 -> root 노드 return 후 삭제 poll() 4 15 8 19 20 6 5
3.
By yaboong https://yaboong.github.io minHeap.poll() 메소드
호출 -> root 노드 return 후 삭제 poll() 4 15 8 19 20 6 5
4.
By yaboong https://yaboong.github.io 마지막 node
를 root 로 옮김 poll() 4 15 8 19 20 6 5
5.
8 By yaboong https://yaboong.github.io 마지막 node
를 root 로 옮김 poll() 4 1519 20 6 5
6.
By yaboong https://yaboong.github.io 8이 가야할
곳을 찾아줌 -> heapifyDown() heapifyDown() 8 4 1519 20 6 5
7.
By yaboong https://yaboong.github.io Left child,
right child 중 더 작은 값 을 가지는 녀석의 Index 를 찾는다. heapifyDown() 8 4 1519 20 6 5
8.
By yaboong https://yaboong.github.io heapifyDown() 누가 더
작지? 8 4 1519 20 6 5
9.
By yaboong https://yaboong.github.io heapifyDown() 누가 더
작지? -> right child! 8 4 1519 20 6 5
10.
By yaboong https://yaboong.github.io heapifyDown() Child 중
작은 놈이랑 parent 랑 비 교한다 누가 더 작지? 8 4 1519 20 6 5
11.
By yaboong https://yaboong.github.io heapifyDown() Child 중
작은 놈이랑 parent 랑 비 교한다 누가 더 작지? -> 4 8 4 1519 20 6 5
12.
By yaboong https://yaboong.github.io heapifyDown() Parent 가
더 작으면 break, 그렇지 않으면 swap 지금은 child 가 더 작으니까 swap 누가 더 작지? -> 4 8 4 1519 20 6 5
13.
By yaboong https://yaboong.github.io heapifyDown() SWAP 8 4 1519 20 6 5
14.
By yaboong https://yaboong.github.io heapifyDown() 1519 20 8 4 Left
child, right child 중 더 작은 값 을 가지는 녀석의 Index 를 찾는다. 6 5
15.
By yaboong https://yaboong.github.io heapifyDown() 1519 20 8 4 누가
더 작지? Left child, right child 중 더 작은 값 을 가지는 녀석의 Index 를 찾는다. 6 5
16.
By yaboong https://yaboong.github.io heapifyDown() 1519 20 8 4 누가
더 작지? -> right child! Left child, right child 중 더 작은 값 을 가지는 녀석의 Index 를 찾는다. 6 5
17.
By yaboong https://yaboong.github.io heapifyDown() 1519 20 8 4 누가
더 작지? Child 중 작은 놈이랑 parent 랑 비 교한다 6 5
18.
By yaboong https://yaboong.github.io heapifyDown() 1519 20 8 4 누가
더 작지? -> 5 Child 중 작은 놈이랑 parent 랑 비 교한다 6 5
19.
By yaboong https://yaboong.github.io heapifyDown() 1519 20 8 4 Parent
가 더 작으면 break, 그렇지 않으면 swap 이번에도 child 가 더 작으니까 swap SWAP 6 5
20.
By yaboong https://yaboong.github.io heapifyDown() 1519 20 4 더이상 left
child 가 없다. 5 6 8
21.
By yaboong https://yaboong.github.io heapifyDown() 15 619 20 4 더이상
left child 가 없다. -> left child 가 없으면 right child 도 없으므로 종료 8 5
Download now