Jump to content

Decision tree model

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Altenmann (talk | contribs) at 23:42, 4 May 2009 (Created page with '{{under construction}} The '''decision tree model''' is the model of computation in which an algorithm is considered to be basically a decision tree, i.e.,…'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The decision tree model is the model of computation in which an algorithm is considered to be basically a decision tree, i.e., a sequence of branching operations based on comparisons of some quantities, the comparisons being assigned a unit computational cost. Several variants of decision tree models may be considered, depending on the complexity of the operations allowed in the computation of a single comparison and the way of branching.

Decision trees models are instrumental in establishing lower bounds for computational complexity for certain classes of computational problems and algorithms: the lower bound for worst-case computational complexity is proportional to the largest depth among the decision trees for all possible inputs for a given computational problem.

Simple decision tree

The model in which every decision is based on the comparison of two numbers within constant time is called simply a decision tree model. It was introduced to establish computational complexity of sorting and searching.[1]

The simplest illustration of this lower bound technique is for the problem of finding the smallest number among n numbers using only comparisons. It this case the decision tree model is a binary tree. Algorithms for this searching problem may result in n different outcomes (since any of the n given numbers may turn out to be the smallest). It is known that the depth of a binary tree with n leaves is at most , which gives the lowed bound of for the searching problem.

Along the same lines the lower bound of for sorting may be proved.

Linear decision tree

Algebraic decision tree

References

  1. ^ "Data structures and algorithms, by Alfred V. Aho, John E. Hopcroft, Jeffrey D. Ullman