Sunday 16 March 2014

Decision tree :

A decision tree gives a graphic view of the processing logic involved in decision making and the corresponding actions taken. The edges of a decision tree represent conditions and the leaf nodes represent the actions to be performed depending on the outcome of testing the condition.

Example: -

Consider Library Membership Automation Software (LMS) where it should support the following three options:


  • ƒ     New member  
  •      Renewal  
  •      Cancel membership


New member option-


Decision: When the 'new member' option is selected, the software asks details about the member like the member's name, address, phone number etc.

Action: If proper information is entered then a membership record for the member is created and a bill is printed for the annual membership charge plus the security deposit payable.

Renewal option-

Decision: If the 'renewal' option is chosen, the LMS asks for the member's name and his membership number to check whether he is a valid member or not.

Action: If the membership is valid then membership expiry date is updated and the annual membership bill is printed, otherwise an error message is displayed.

Cancel membership option-

Decision: If the 'cancel membership' option is selected, then the software asks for member's name and his membership number.

Action: The membership is cancelled, a cheque for the balance amount due to the member is printed and finally the membership record is deleted from the database.

Decision tree representation of the above example -

The following tree shows the graphical representation of the above example. After getting information from the user, the system makes a decision and then performs the corresponding actions




1 comment:

  1. Trimaster Metrology Services Trimaster Metrology are into marketing, sales, training, servicing & calibration of “Metrology, Quality testing, Measuring instruments & software solutions” for varied industries.
    About us 400+ AMC Contracts 2500+ Active Customers 10 OEM Partners 10 Regional Offices (Sales & Service) 6 Year Old Entity 35 Team Strength Our presence across the country enables us to pioneer enhanced reach and customer support.

    ReplyDelete