代码搜索:BinaryTree
找到约 1,360 项符合「BinaryTree」的源代码
代码结果 1,360
www.eeworm.com/read/214343/15104989
java btinorderiterator.java
// In-order iterator for binary trees.
// (c) 1998, 2001 duane a. bailey
package structure;
/**
* An iterator for traversing binary trees constructed from
* BinaryTrees. The iterator performs mini
www.eeworm.com/read/214343/15105023
java btpreorderiterator.java
// Pre-order iterator for binary trees.
// (c) 1998, 2001 duane a. bailey
package structure;
/**
* This class implements an iterator that traverses a tree in pre-order.
* Each node is considered b
www.eeworm.com/read/214343/15105028
java splaytree.java
// This is a implementation of splay trees, in Java.
// (c) 1996, 1997, 1998, 2001 duane a. bailey
// (c) 1998, 2001 duane a. bailey
package structure;
import java.util.Iterator;
import java.util.Comp
www.eeworm.com/read/214343/15105148
java binarysearchtree.java
// This is an implementation of binary search trees.
// (c) 1998, 2001 duane a. bailey
package structure;
import java.util.Iterator;
import java.util.Comparator;
/**
* A binary search tree structure
www.eeworm.com/read/191798/8422091
txt btree2m.txt
//二叉树类定义btree2.h
//定义二叉树结点类型
templateclass BinaryTree;
template struct BTreeNode {
private:
BTreeNode *left;//左子树指针
BTreeNode *right;//右子树指针
public:
T data;//数据
www.eeworm.com/read/191798/8422162
cpp btree2.cpp
//二叉树类的实现btree2.cpp
//根据字符数组a的二叉树广义表建立对应的二叉树存储结构
template
void BinaryTree::CreateBTree(char *a)
{BTreeNode *s[80];//s数组作为存储二叉树中根结点指针的栈
int top=-1; //top作为s栈的栈顶指针
root=NULL;
www.eeworm.com/read/290792/8461636
txt 2叉树类定义.txt
//二叉树类定义
template
class BinaryTree {
public :
BinaryTree( ) {root=0;};
~ BinaryTree( ) { };
bool IsEmpty( ) const
{reurn ((root) ? false : true);}
bool Root(T& x) const;
void MakeTre
www.eeworm.com/read/432279/8615688
cpp stdafx.cpp
// stdafx.cpp : source file that includes just the standard includes
// BinaryTree.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdaf
www.eeworm.com/read/386057/8766856
cpp tree.cpp
#include
#include
#include
using namespace std;
template
class BinaryTree
{
public:
BinaryTree();
BinaryTree(BinaryTreeNode *lch,BinaryTreeNode