Decision tree model Created 2026-10-03 Updated 2026-11-05
The decision tree model computes a function by adaptively querying coordinates of an input. Each internal node specifies a query, its outgoing branches represent possible answers, and a leaf supplies the output. Later queries may depend on earlier answers. The number of queries on the longest root-to-leaf path is the decision-tree depth.[ref]
For example, consider the Boolean function that returns one if any of its input bits is one. Querying in order can stop at the first one, but the all-zero input requires all queries: an unread bit might still change the output. Thus the worst-case query complexity is .