|
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Binary Tree Detailed DescriptionFunction Documentation
creates a binary tree node with sorting value and user data creates a tree node with (optinal) user data
Definition at line 6151 of file misc.c. References btnodeCreateEmpty(), NULL, SCIP_CALL, and SCIP_OKAY. Referenced by checkOverloadViaThetaTree(), and insertThetanode().
frees the binary node including the rooted subtree
frees the node including the rooted subtree
Definition at line 6215 of file misc.c. References btnodeFreeLeaf(), NULL, and SCIPbtnodeFree(). Referenced by deleteLambdaLeaf(), SCIPbtFree(), and SCIPbtnodeFree().
returns the user data pointer stored in that node
Definition at line 6260 of file misc.c. References SCIP_BtNode::dataptr, and NULL. Referenced by analyzeConflictOverload(), checkOverloadViaThetaTree(), collectThetaSubtree(), computeEnergyContribution(), deleteLambdaLeaf(), findResponsibleLambdaLeafTraceEnergy(), findResponsibleLambdaLeafTraceEnvelop(), inferboundsEdgeFinding(), insertThetanode(), moveNodeToLambda(), SCIP_DECL_SORTPTRCOMP(), traceLambdaEnergy(), traceLambdaEnvelop(), traceThetaEnvelop(), updateEnvelop(), and updateKeyOnTrace().
returns the parent which can be NULL if the given node is the root
Definition at line 6270 of file misc.c. References NULL, and SCIP_BtNode::parent. Referenced by deleteLambdaLeaf(), insertThetanode(), SCIPbtnodeGetSibling(), SCIPbtnodeIsLeftchild(), SCIPbtnodeIsRightchild(), updateEnvelop(), and updateKeyOnTrace().
returns left child which can be NULL if the given node is a leaf
Definition at line 6280 of file misc.c. References SCIP_BtNode::left, and NULL. Referenced by btPrintSubtree(), collectThetaSubtree(), deleteLambdaLeaf(), findResponsibleLambdaLeafTraceEnergy(), findResponsibleLambdaLeafTraceEnvelop(), insertThetanode(), SCIPbtnodeGetSibling(), SCIPbtnodeIsLeftchild(), traceLambdaEnergy(), traceLambdaEnvelop(), traceThetaEnvelop(), and updateEnvelop().
returns right child which can be NULL if the given node is a leaf
Definition at line 6290 of file misc.c. References NULL, and SCIP_BtNode::right. Referenced by btPrintSubtree(), collectThetaSubtree(), deleteLambdaLeaf(), findResponsibleLambdaLeafTraceEnergy(), findResponsibleLambdaLeafTraceEnvelop(), insertThetanode(), SCIPbtnodeGetSibling(), SCIPbtnodeIsRightchild(), traceLambdaEnergy(), traceLambdaEnvelop(), traceThetaEnvelop(), and updateEnvelop().
returns the sibling of the node or NULL if does not exist
Definition at line 6300 of file misc.c. References NULL, SCIPbtnodeGetLeftchild(), SCIPbtnodeGetParent(), and SCIPbtnodeGetRightchild().
returns whether the node is a root node
Definition at line 6320 of file misc.c. References NULL, and SCIP_BtNode::parent. Referenced by deleteLambdaLeaf(), inferboundsEdgeFinding(), SCIPbtnodeIsLeftchild(), SCIPbtnodeIsRightchild(), and updateKeyOnTrace().
returns whether the node is a leaf
Definition at line 6330 of file misc.c. References SCIP_BtNode::left, NULL, and SCIP_BtNode::right. Referenced by collectThetaSubtree(), deleteLambdaLeaf(), findResponsibleLambdaLeafTraceEnergy(), findResponsibleLambdaLeafTraceEnvelop(), inferboundsEdgeFinding(), insertThetanode(), traceLambdaEnergy(), traceLambdaEnvelop(), traceThetaEnvelop(), and updateEnvelop().
returns TRUE if the given node is left child
Definition at line 6340 of file misc.c. References FALSE, SCIPbtnodeGetLeftchild(), SCIPbtnodeGetParent(), SCIPbtnodeIsRoot(), and TRUE. Referenced by deleteLambdaLeaf(), and updateKeyOnTrace().
returns TRUE if the given node is right child
Definition at line 6358 of file misc.c. References FALSE, SCIPbtnodeGetParent(), SCIPbtnodeGetRightchild(), SCIPbtnodeIsRoot(), and TRUE. Referenced by deleteLambdaLeaf().
sets the give node data
Definition at line 6379 of file misc.c. References SCIP_BtNode::dataptr, and NULL.
sets parent node
Definition at line 6393 of file misc.c. References NULL, and SCIP_BtNode::parent. Referenced by deleteLambdaLeaf(), and insertThetanode().
sets left child
Definition at line 6407 of file misc.c. References SCIP_BtNode::left, and NULL. Referenced by deleteLambdaLeaf(), and insertThetanode().
sets right child
Definition at line 6421 of file misc.c. References NULL, and SCIP_BtNode::right. Referenced by deleteLambdaLeaf(), and insertThetanode().
creates an binary tree
Definition at line 6432 of file misc.c. References BMSallocMemory, NULL, SCIP_ALLOC, and SCIP_OKAY. Referenced by checkOverloadViaThetaTree().
frees binary tree
frees binary tree
Definition at line 6451 of file misc.c. References BMSfreeMemory, NULL, and SCIPbtnodeFree(). Referenced by checkOverloadViaThetaTree().
prints the binary tree in GML format into the given file
Definition at line 6503 of file misc.c. References btPrintSubtree(), NULL, SCIPbtGetRoot(), SCIPbtIsEmpty(), SCIPgmlWriteClosing(), SCIPgmlWriteOpening(), and TRUE. returns whether the binary tree is empty (has no nodes)
Definition at line 6533 of file misc.c. References NULL, and SCIP_Bt::root. Referenced by checkOverloadViaThetaTree(), inferboundsEdgeFinding(), insertThetanode(), and SCIPbtPrintGml().
returns the root node of the binary tree or NULL if the binary tree is empty returns the the root node of the binary or NULL if the binary tree is empty
Definition at line 6543 of file misc.c. References NULL, and SCIP_Bt::root. Referenced by checkOverloadViaThetaTree(), inferboundsEdgeFinding(), insertThetanode(), and SCIPbtPrintGml().
sets root node
Definition at line 6556 of file misc.c. References NULL, and SCIP_Bt::root. Referenced by deleteLambdaLeaf(), and insertThetanode(). |