A decision tree is used to explain the sequence of actions that must be performed to get the desired output. It is a hierarchical diagram that shows the actions.
An algorithm can be created for a decision tree on the basis of the set hierarchy of actions.
In the above decision-tree diagram, a sequence of actions has been made for driving a vehicle with or without a license.