A Decision Tree offers a graphic read of the processing logic concerned in a higher cognitive process and therefore the corresponding actions are taken. The perimeters of a choice tree represent conditions and therefore the leaf nodes represent the actions to be performed looking on the result of testing the condition.
For example, consider Library Membership Automation Software (LMS) where it ought to support the following three options: New member, Renewal, and Cancel membership. These are explained as following below.
1. New Member Option:
Once the ‘new member’ possibility is chosen, the software system asks details concerning the member just like the member’s name, address, number, etc.
If correct info is entered then a membership record for the member is made and a bill is written for the annual membership charge and the protection deposit collectible.
If the ‘renewal’ possibility is chosen, the LMS asks for the member’s name and his membership range to test whether or not he’s a sound member or not.
If the membership is valid then membership ending date is updated and therefore the annual membership bill is written, otherwise, a slip-up message is displayed.
Cancel Membership Option:
If the ‘cancel membership’ possibility is chosen, then the software system asks for member’s name and his membership range.
The membership is off, a cheque for the balance quantity because of the member is written and at last the membership record is deleted from the information.
Decision tree representation of the above example:
The following tree shows the graphical illustration of the above example, when obtaining data from the user, the system makes a choice and then performs the corresponding actions.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Difference between Decision Table and Decision Tree
- Software Engineering | Decision Table
- Software Engineering | Introduction to Software Engineering
- Software Engineering | Requirements Engineering Process
- Software Engineering | Re-engineering
- Software Engineering | Reverse Engineering
- Difference between Software Engineering process and Conventional Engineering Processs
- Difference between Forward Engineering and Reverse Engineering
- Software Engineering | Halstead’s Software Metrics
- Software Engineering | Classification of Software Requirements
- Software Engineering | Classification of Software
- Software Engineering | Software Project Management Complexities
- Software Engineering | Role and Responsibilities of a software Project Manager
- Software Engineering | Seven Principles of software testing
- Software Engineering | Agile Software Development
- Software Engineering | Software Maintenance
- Software Engineering | Jelinski Moranda software reliability model
- Software Engineering | Schick-Wolverton software reliability model
- Software Engineering | Software Business and Development
- Software Engineering | Characteristics of good Software
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.