I am reading about Binomial queue operations here.
At bottom of link it is mentioned as
Implementation of a Binomial Queue
- deletemin operation requires ability to find all subtrees of the root. Thus children of each node should be available (say a linked list)
- deletemin requires that the children be ordered by the size of their subtrees.
- we need to make sure it is easy to merge tress. Two binomial trees can be merged only if they have the same size, hence the size of the tree must be stored in the root. While merging, one of the trees becomes the last child of the other, so we should keep track of the last child of each node. A good data structure to use is a circular doubly linked list what each node is of the following form:
data | first |left | right |rank No. of | -------------------------------------------- child |sibling |sibling| children
In above what does author mean "rank No. Of? can any one please explain with example.