<?xml version="1.0" encoding="UTF-8"?>

<record version="5" id="2766">
 <title>extended binary tree</title>
 <name>ExtendedBinaryTree</name>
 <created>2002-03-07 12:42:47</created>
 <modified>2005-05-08 07:49:20</modified>
 <type>Data Structure</type>
 <creator id="5079" name="aoh45"/>
 <author id="5079" name="aoh45"/>
 <author id="6" name="Logan"/>
 <classification>
	<category scheme="msc" code="05C05"/>
 </classification>
 <defines>
	<concept>external node</concept>
	<concept>internal node</concept>
 </defines>
 <related>
	<object name="BinaryTree"/>
	<object name="CompleteBinaryTree"/>
	<object name="ExternalPathLength"/>
	<object name="WeightedPathLength"/>
	<object name="MinimumWeightedPathLength"/>
 </related>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}</preamble>
 <content>An \emph{extended binary tree} is a transformation of any binary tree into a complete binary tree.  This transformation consists of replacing every null subtree of the original tree with ``special nodes.''  The nodes from the original tree are then \emph{internal nodes}, while the ``special nodes'' are \emph{external nodes}.

For instance, consider the following binary tree.

\begin{center}
\includegraphics{tree1}
\end{center}

The following tree is its extended binary tree.  Empty circles represent internal nodes, and filled circles represent external nodes.

\begin{center}
\includegraphics{tree2}
\end{center}

Every internal node in the extended tree has exactly two children, and every external node is a leaf.  The result is a complete binary tree.</content>
</record>
