|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.AI.Auction.BidTree
public class BidTree
This class contains some methods to build a SEARCH2 tree of Tuomas Sandholm.
| Field Summary | |
|---|---|
protected int |
depth
|
protected binNode |
root
|
| Constructor Summary | |
|---|---|
BidTree(int n)
|
|
| Method Summary | |
|---|---|
int |
getDepth()
get depth |
binNode |
getRoot()
get root |
double |
hF()
get the heuristic function value at the root |
void |
insert(Bid b)
|
void |
insert(Bid b,
binNode p)
insert a node n after the node p in the BidTree |
boolean |
preprocessing(Bid a)
perform preprocessing |
void |
print(binNode n)
print the subtree for the node n |
void |
remove(binNode n)
remove a node from the bidTree |
void |
remove(java.lang.String s)
|
java.util.LinkedList<binNode> |
search(bitStream s)
search for the nodes that has a specific bitStream pattern |
java.util.LinkedList<binNode> |
search(java.lang.String s,
java.util.LinkedList<binNode> v)
search for the nodes that has a specific bitStream pattern |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected binNode root
protected int depth
| Constructor Detail |
|---|
public BidTree(int n)
| Method Detail |
|---|
public binNode getRoot()
public int getDepth()
public void insert(Bid b,
binNode p)
b - a bidp - the binNodepublic void insert(Bid b)
public java.util.LinkedList<binNode> search(java.lang.String s,
java.util.LinkedList<binNode> v)
s - the bitStream represented as a String, for example "0*11*10**"v - the of binNode; it is empty before searching
public java.util.LinkedList<binNode> search(bitStream s)
s - the bitStream represented as a String, for example "0*11*10**"
public void print(binNode n)
n - the binNode in a BidTreepublic double hF()
public boolean preprocessing(Bid a)
public void remove(binNode n)
public void remove(java.lang.String s)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||