Back to Browse

Build Heap Algorithm | Proof of O(N) Time Complexity

99.8K views
Premiered Jan 17, 2021
15:31

This video explains the build heap algorithm with example dry run.In this problem, given an array, we are required to build a heap.I have shown all the observations and intuition needed for solving the problem.I have shown all the prerequisite concepts required to solve the problem as well using examples.We can use the heapify algorithm to do this which takes just O(N) time complexity.I have shown how to build a max heap using max heapify algorithm using example and you can also follow the same procedure to build a min heap using min heapify algorithm.At the end, I have also shown the mathematical proof of time complexity.🧡 HELP us by donating on patreon: https://www.patreon.com/techdose CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :) ======================================================================== Join this channel to get access to perks: https://www.youtube.com/channel/UCnxhETjJtTPs37hOZ7vQ88g/join INSTAGRAM : https://www.instagram.com/surya.pratap.k/ SUPPORT OUR WORK: https://www.patreon.com/techdose LinkedIn: https://www.linkedin.com/in/surya-pratap-kahar-47bb01168 WEBSITE: https://techdose.co.in/ TELEGRAM Channel LINK: https://t.me/codewithTECHDOSE TELEGRAM Group LINK: https://t.me/joinchat/SRVOIxWR4sRIVv5eEGI4aQ ======================================================================= USEFUL LINKS: 🟠Must do TIPS to ACE Virtual Interview: https://youtu.be/4vLXoTFBB54 🟢Best strategy to excel your coding interview: https://youtu.be/NCQQGoHnx9U 🟡Get your dream job in 1 month: https://youtu.be/g_qAXBFglj0 🔵How to crack dream job in just 2 months: https://youtu.be/gX8ZapEkpUY 🟣7 Days DSA plan: https://techdose.co.in/7-days-dsa-cheat-sheet-quick-preparation-plan/ RELATED LINKS: Website Blog: https://techdose.co.in/build-heap-algorithm-proof-of-on-time-complexity/ Power of heap: https://youtu.be/RU08pp_VPSs Concepts of heap: https://youtu.be/N0Frqx9UlrI Representation of Heap: https://youtu.be/qQkfUKer3LU Heapify Algorithm: https://youtu.be/cuL8gXCSA58 #heap #buildheap #techdose

Download

0 formats

No download links available.

Build Heap Algorithm | Proof of O(N) Time Complexity | NatokHD