[컴퓨터工學(공학) ] 자바 애플릿을 사용한 이진트리의 그래픽 구현
페이지 정보
작성일 19-06-03 07:34
본문
Download : src.zip
newNode.setPos(pos + 1);
}
이진트리,binary tree,애플릿,자료구조,applet
3가지 순회를 그래픽으로 구현하였습니다.
isSearchAvailable = true;
//making root node
[컴퓨터工學(공학) ] 자바 애플릿을 사용한 이진트리의 그래픽 구현
자바 애플릿을 사용하여 이진트리의 삽입 삭제 검색과
//setting the nodePosition
}
return rootNode;
T.getLeft().setParent(T);
}
class BinarySearchTree{
else if(key < T.getKey()) {
return newNode;
T.setLeft(insertKey(T.getLeft(), key, T.getPos()));
순서
return T;
public boolean determineSearch(){
//Set & Get the searching flag
레포트 > 공학,기술계열
// Flag for Searching
//Return the root Node
Download : src.zip( 87 )
//Making new node : Insertion
설명
return isSearchAvailable;
boolean isSearchAvailable = false;
newNode.setKey(key);
// making left child node
private TreeNode rootNode;
public void setSearch(boolean search){
if (T==null){
public TreeNode getRootNode(){
}
// Start from rootNode
private TreeNode insertKey(TreeNode T, int key, int pos){
TreeNode newNode = new TreeNode();
isSearchAvailable = search;
자바 애플릿을 사용하여 이진트리의 삽입 삭제 검색과 3가지 순회를 그래픽으로 구현하였습니다.
}
다.