Template Function ADS::decisionTree

Function Documentation

template<class T>
BinaryTree<T> *ADS::decisionTree(const std::vector<T> &A)

the decision tree of binarySearch() on A, nil if A is empty; the caller owns it

Pre:

A is sorted

Post:

its invisit is A (an audit)