⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tree.java

📁 用java实现的LinkedList二叉树
💻 JAVA
字号:
/*
 * Created on 2005-10-27
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package linkedBinaryTree;

/**
 * @author dieks
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public interface Tree {
	public Position root();
    public Position parent(Position p) throws InvalidPositionException;
    public Iterator children(Position p) throws InvalidPositionException;
    public boolean isInternal(Position p) throws InvalidPositionException;
    public boolean isExternal(Position p) throws InvalidPositionException;
    public boolean isRoot(Position p) throws InvalidPositionException;
    public Object replace(Position p, Object e) throws InvalidPositionException;
	public int size();
	//public int depth(Tree t, Position p);
	//public int height(Tree t, Position p);
	public boolean isEmpty();
	public Iterator positions();
	public Iterator elements();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -