You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
599 B
36 lines
599 B
/*
|
|
* UCW Library -- Binomial Heaps: Declarations
|
|
*
|
|
* (c) 2003 Martin Mares <mj@ucw.cz>
|
|
*
|
|
* This software may be freely distributed and used according to the terms
|
|
* of the GNU Lesser General Public License.
|
|
*/
|
|
|
|
#ifndef _UCW_BINHEAP_NODE_H
|
|
#define _UCW_BINHEAP_NODE_H
|
|
|
|
/***
|
|
* [[common]]
|
|
* Common definitions
|
|
* ------------------
|
|
***/
|
|
|
|
/**
|
|
* Common header of binomial heap nodes.
|
|
**/
|
|
struct bh_node {
|
|
struct bh_node *first_son;
|
|
struct bh_node *last_son;
|
|
struct bh_node *next_sibling;
|
|
byte order;
|
|
};
|
|
|
|
/**
|
|
* A binomial heap.
|
|
**/
|
|
struct bh_heap {
|
|
struct bh_node root;
|
|
};
|
|
|
|
#endif
|
|
|