The Wayback Machine - https://web.archive.org/web/20240613135425/https://www.geeksforgeeks.org/decision-tree-in-software-engineering/
Open In App

Decision Tree in Software Engineering

Last Updated : 22 Oct, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

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 at 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: 
 

  • Decision: 
    Once the ‘new member’ possibility is chosen, the software system asks for details concerning the member just like the member’s name, address, number, etc.
  • Action: 
    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. 
     

Renewal Option: 
 

  • Decision: 
    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. 
     
  • Action: 
    If the membership is valid then the membership ending date is updated and therefore the annual membership bill is written, otherwise, a slip-up message is displayed. 
     

Cancel Membership Option: 
 

  • Decision: 
    If the ‘cancel membership’ possibility is chosen, then the software system asks for a member’s name and his membership range. 
     
  • Action: 
    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. 

 

 


Similar Reads

The Make-Buy Decision or Decision Table - Software Engineering
A decision table is a brief visual representation for specifying which actions to perform depending on given conditions. This article focuses on discussing decision tables in detail. What is a Decision Table?A decision table is a good way to settle different combination inputs with their corresponding outputs and is also called a cause-effect table
3 min read
Difference between Decision Table and Decision Tree
1. Decision Table: Decision Table is just a tabular representation of all conditions and actions. Decision Table are always used whenever the processing logic is very complicated and involves multiple conditions. The main components used for the formation of the Data Table are Conditions Stubs, Action Stubs, and rules. Types of decision tables: Ext
3 min read
Introduction to Software Engineering - Software Engineering
Software is a program or set of programs containing instructions that provide desired functionality. Engineering is the process of designing and building something that serves a particular purpose and finds a cost-effective solution to problems. Table of Content What is Software Engineering?Key Principles of Software EngineeringMain Attributes of S
8 min read
Reverse Engineering - Software Engineering
Software Reverse Engineering is a process of recovering the design, requirement specifications, and functions of a product from an analysis of its code. It builds a program database and generates information from this. This article focuses on discussing reverse engineering in detail. What is Reverse Engineering?Reverse engineering can extract desig
6 min read
Requirements Engineering Process in Software Engineering
Requirements Engineering is the process of identifying, eliciting, analyzing, specifying, validating, and managing the needs and expectations of stakeholders for a software system. Table of Content What is Requirements Engineering?Requirements Engineering ProcessTools Involved in Requirement EngineeringAdvantages of Requirements Engineering Process
12 min read
Difference between Software Engineering process and Conventional Engineering Process
Software Engineering Process and Conventional Engineering Process, both are processes related to computers and development. In this article, we will see the similarities as well as differences between both, that is Software Engineering Process and the Conventional Engineering Process. Table of Content Software Engineering ProcessConventional Engine
4 min read
Re-engineering - Software Engineering
Software Re-engineering is a process of software development that is done to improve the maintainability of a software system. Re-engineering is the examination and alteration of a system to reconstitute it in a new form. This process encompasses a combination of sub-processes like reverse engineering, forward engineering, reconstructing, etc.  Tab
8 min read
Difference between Software Engineering and Computer Engineering
Software engineering and Computer engineering are two distinct disciplines that focus on different aspects of computer systems. While both fields require a strong foundation in computer science and mathematics, software engineering is focused on software development processes, while computer engineering is focused on the physical components and sys
6 min read
Evolution of Software Engineering: From an Art To Engineering Discipline
Software Engineering is a systematic and cost-effective technique for software development. It is an engineering approach to developing software. For example: If someone wants to travel from Punjab to Delhi. There are two approaches one can follow to achieve the same result: The normal approach is to go out and catch the bus/train that is available
13 min read
Decision Table Based Testing in Software Testing
What is a Decision Table : Decision tables are used in various engineering fields to represent complex logical relationships. This testing is a very effective tool in testing the software and its requirements management. The output may be dependent on many input conditions and decision tables give a tabular view of various combinations of input con
3 min read
Article Tags :