|
int | solve (packData pd, query *qs, int n_query, int *pkOrders) |
|
packData | init_packData (int n, int l) |
| Initiate a package management problem. More...
|
|
void | kill_packData (packData) |
|
void | PushPack (packData, int iLine, int iPack) |
|
void | MergeLines (packData, int iDst, int iSrc) |
|
int | PopFirstPack (packData, int iLine) |
|
int | PopLastPack (packData, int iLine) |
|
int | PopMaxPack (packData, int iLine) |
|
int | _PopOperation (packData, int, int(*PeekFunc)(packData, int), int(*PopFunc)(packData, int)) |
|
int | PeekFirstPack (packData, int i) |
|
int | PeekLastPack (packData, int i) |
|
int | PeekMaxPack (packData, int i) |
|
void | _clearGetMethod (packData, int iLine) |
|
void | _setGetMethod (packData, int iLine) |
|
void | _insertHeap (packData pd, int iLine, int iPack) |
|
int | _popMaxHeap (packData, int iLine) |
|
void | _mergeHeap (packData, int iDst, int iSrc) |
|
hnode * | _mergeHeapLeftist (hnode *A, hnode *B) |
| Merge leftist heap. More...
|
|
hnode * | _popMaxHeapLeftist (hnode *root, int *val) |
|
hnode * | _insertHeapLeftist (hnode *root, pack *pk, hnode *newnode) |
|
int | _getDistLeftist (hnode *node) |
|
void | swaphNode (hnode **A, hnode **B) |
|
hnode * | createNode (pack *pk, hnode *node) |
|
void | _killHeap (hnode *root) |
|
void | _insertlist (packData pd, int iLine, int iPack) |
|
void | _mergelist (packData, int iDst, int iSrc) |
|
int | _popFirst (packData pd, int iLine) |
| Pop first item. Set popped item.avail (pack) to zero. More...
|
|
int | _popLast (packData pd, int iLine) |
| Similar to _popFirst .
|
|
void | _removePack (pack *) |
|
void | _removePackGetMethod (pack *) |
|
pack | getNullPack (void) |
|
prodLine | getNullProdLine (void) |
|
int | _getopID (char *) |
|
void | _getOperation (query *) |
|
void | _printRes (int sol) |
|
void | interface (void) |
|