Heaps

  Рет қаралды 18,639

Design and Analysis of Algorithms

Design and Analysis of Algorithms

Күн бұрын

Пікірлер: 6
@himanshuranjan5575
@himanshuranjan5575 7 жыл бұрын
I can't believe how easily he has explained a tricky topic.
@SHASHANKRUSTAGII
@SHASHANKRUSTAGII 6 жыл бұрын
ya
@kaustubh_ramteke_07
@kaustubh_ramteke_07 2 жыл бұрын
hao na ga
@prabhatjha653
@prabhatjha653 9 ай бұрын
One quick question, as you have mentioned if i use sorted array as priority queue i would need O(n) time to insert and O(1) time to delete_max, so overall to process n jobs its O(n^2), why can't i insert in a binary search way needing O(logn) to insert and take out in O(1) time making it O(nlogn) and we do not have to move to heaps in that case. Am i missing something?
@mahendratonape27
@mahendratonape27 3 жыл бұрын
Sir could u pls explain operation complexity for 2 dimensional array for priority queue is order n root n...it should be only root n? Please correct
@dev_escape
@dev_escape 2 жыл бұрын
See, root(n) is the complexity for 1 operation. So for n such operations, time complexity will be n*root(n).
Binary Search Trees
33:06
Design and Analysis of Algorithms
Рет қаралды 19 М.
Quicksort
17:06
Design and Analysis of Algorithms
Рет қаралды 40 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
2.6.3 Heap - Heap Sort - Heapify - Priority Queues
51:08
Abdul Bari
Рет қаралды 2,2 МЛН
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 680 М.
Priority queues
10:16
Design and Analysis of Algorithms
Рет қаралды 23 М.
Merge sort
13:46
Design and Analysis of Algorithms
Рет қаралды 46 М.
2,000 People Fight For $5,000,000
24:45
MrBeast
Рет қаралды 66 МЛН
Counting inversions
17:58
Design and Analysis of Algorithms
Рет қаралды 25 М.
Introduction to Heap Data Structure + Priority Queue + Heapsort Tutorial
1:11:07
Quicksort - analysis
12:18
Design and Analysis of Algorithms
Рет қаралды 28 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН