Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

BinaryTrees.c File Reference

Binary trees. More...

#include <stdlib.h>
#include "LinkedLists.h"

Include dependency graph for BinaryTrees.c:

Include dependency graph

Go to the source code of this file.

Functions

void InsertInTree (BinaryNodePtr theNode, BinaryNodePtr *root, SInt8(*CompareFunction)(NodePtr a, NodePtr b))
 Inserts a node in a binary tree. More...

BinaryNodePtr SortedDoubleToBinaryWithSize (DoubleNodePtr linkedList, UInt32 size)
 Transforms a sorted double linked list into a binary tree. More...

DoubleNodePtr BinaryToDouble (BinaryNodePtr root, UInt8 fillPrev)
 Transforms a (sorted) binary tree to a sorted double linked list. More...

IndirectNodePtrLeftNodeRight (BinaryNodePtr node, IndirectNodePtr *theList)
 Used only for the BinaryToDouble function. More...

void BalanceTree (BinaryNodePtr *root)
 Balances a binary tree. More...


Detailed Description

Binary trees.

Definition in file BinaryTrees.c.


Generated on Sun Dec 23 15:20:41 2001 for ANet by doxygen 1.2.12 written by Dimitri van Heesch, © 1997-2001

SourceForge
Logo