Тёмный

Binomial Heap Extract Minimum Key, Decrease Key and Delete Key Operations 

Techlearners By Neeraj Saxena
Подписаться 15 тыс.
Просмотров 12 тыс.
50% 1

#techlearners
BINOMIAL-HEAP-EXTRACT-MIN (H)
(1) find the root x with the minimum key in the
root list of H and remove x from the root list of H FIND-MIN-KEY ( )
(2) H’ = MAKE-BINOMIAL-HEAP ( )
(3) reverse the order of the linked list of x’ children
and set head [H’]= head of the resulting list
(4) H = BINOMIAL-HEAP-UNION (H, H’)
return x
end
Time Complexity Extract Minimum Key- O(logn)
BINOMIAL-HEAP-DECREASE-KEY (H, x, k)
key [x] = k
y = x
z = p[y]
while z ≠ NIL and key [y] is less than key [z] do
exchange key [y]= key [z]
exchange satellite fields of y and z
y= z
z= p [y]
endwhile
End
Time Complexity Decrease Key- O(logn)
Binomial-Heap_Delete-Node(H, x)
Step 1: Binomial-Heap_Decrease_Val(H, x, -∞)
Step 2: Min-Extract_Binomial-Heap(H)
Step 3: END
Time Complexity Delete Key - O(logn)
TECHLEARNERS BY NEERAJ SAXENA
www.techlearner...

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@madhurjyadeka5569
@madhurjyadeka5569 2 года назад
Where is the node 21, sir?
@akshatanand9316
@akshatanand9316 Год назад
Amazing video sir, so much clarity
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 11 месяцев назад
Glad to hear that
@FrontLineEngineer
@FrontLineEngineer 2 года назад
Marvelous thanks sir
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 2 года назад
Thanq
@md.alamintalukder3261
@md.alamintalukder3261 Год назад
Thanks a lot
@md.alamintalukder3261
@md.alamintalukder3261 Год назад
Where is the 21 of degree 0 .... It will union with 36... Right?
@FrontLineEngineer
@FrontLineEngineer 2 года назад
Please make whole series of this Daa course
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 2 года назад
Will try to upload soon
Далее
Fibonacci Heap Creation and Insertion
8:52
Просмотров 31 тыс.
Аруси Точики ❤️❤️❤️
00:13
Просмотров 389 тыс.
Нарвался на сотрудника ФСБ⚡️
01:00
Binomial Heap Union and Insertion Operations
16:55
Просмотров 23 тыс.
Fibonacci heaps in 8 minutes - Extract Min
8:05
Просмотров 7 тыс.
How Bayes Theorem works
25:09
Просмотров 542 тыс.
Binary Heap Operations | Data Structure
19:48
Просмотров 22 тыс.
Аруси Точики ❤️❤️❤️
00:13
Просмотров 389 тыс.