Heap::Binomial(3pm)
β¨ Heap::Binomial β¨
okay bestie, gather round, because today we're talking about Heap::Binomial β it lives in the Heap::Binomial(3pm) manual page and it's literally a binomial heap that keeps your data partially sorted. π
π NAME π
Heap::Binomial β a binomial heap to keep data partially sorted. no cap, that's the whole vibe. π
πΈ SYNOPSIS πΈ
use Heap::Binomial;
$heap = Heap::Binomial->new;
# see Heap(3) for usage
likeβ¦ that's it. that's the whole thing. and yes, the comment is doing a lot of heavy lifting there β go read Heap(3) for the actual usage glow-up. π«Ά
π¦ DESCRIPTION π¦
So here's the tea: this module keeps elements in heap order using a linked list of binomial trees. π³π³π³ it's giving tree energy but make it a list.
The way that it works is β the heap method of an element is used to store a reference to the node in the list that refers to the element. so the element literally knows where it lives in the list. main character self-awareness. πͺβ¨
For all the deets on actually using this module, check out Heap. that's where the real manual lives, iykyk. π
π AUTHOR π
John Macdonald, john@perlwolf.com β king behavior honestly π
π COPYRIGHT π
Copyright 1998-2007, O'Reilly & Associates.
This code is distributed under the same copyright terms as perl itself. so like, same rules as perl, periodt. π
π SEE ALSO π
Heap(3)β go here first bestie, fr frHeap::Elem(3)β the element side of the story π§
and that's a wrap on this page!! it came to you from perl v5.36.0, dated 2022-10-22, in the Heap::Binomial(3pm) manual. slay, go build some binomial trees, and don't forget to read Heap(3) πβ¨π
π¦ where this page comes from
- ubuntu noble: libheap-perl 0.80-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libheap-perl 0.80-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libheap-perl 0.80-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms