Call to Action

Webinar: Take a tour of Sparkling Logic's SMARTS Decision Manager Register Now

On Decision Representation


Written by: Hassan LâasriPublished on: Jun 28, 2022No comments

On Decision Representation

There is not one but several representations of prescriptive decision logic. In this blog post, we describe the most used ones, from the simplest to the most sophisticated one.

Decision tables

Decision tables are a tabular representation of decisions. You can think of a decision table as a spreadsheet where rows are decisions and columns are the elements of decisions: inputs/outputs, conditions/conclusions, or conditions/actions.

Decision tables are to be used when all the decisions (rows) have similar conditions (first columns) and similar actions (last columns). They should be used for stable decision logic where changes in the number of conditions are not frequent. Otherwise, they will pose the same difficulty as if the decision logic were mixed in with the code of the rest of the application.

Decision trees

A decision tree is a flowchart representation that graphically resembles an upside-down tree. The root of the tree is a decision that needs to be made. The inner nodes represent tests on attributes. The branches of the tree are further steps that need to be run, and the leaves of the tree are the decisions. Paths from root to a leaf represent a final decision.

Decision trees are more powerful than decision tables because they allow decisions to have different numbers of conditions and actions. They are a better visual representation than decision tables when managing hierarchical decisions. Decision trees are to be used when the decisions share many conditions.

Decision graphs

Decision graphs are a generalization of decision trees where the flowchart is not from the root to the leaves. Links of the flowchart can go from one internal node to another at the same level or go up to a node at a higher level.

Decision graphs are more sophisticated than decision trees. They are particularly useful for reflexive decisions, such as in dynamic questionnaires that can backtrack on a question based on information provided by respondents.

Lookup models

Lookup models are similar to VLookup in Excel. They transform a large data spreadsheet into a smaller indexed spreadsheet. Let’s say you import an auto insurance pricing spreadsheet with state, age, gender, score range, and rate columns. Given a value to each of these columns, the lookup model will retrieve the rate that matches these values.

Lookup models are interesting when the tables are very large and really represent a lookup: determining a set of values from another set of values.

Business rules

With business rules, decisions take the form of “condition(s)-action(s)”. A rules engine iterates through the ruleset and triggers the rules with conditions that are true.

Business rules provide a natural way to express decisions. They can express any imaginable decision logic and symbolic computation, making it the choice for highly sophisticated decisioning applications where the conditions as well as the actions can take a great variety of forms.

Which representation is the best?

No representation is better than the other. That’s why SMARTS supports them all.
With SMARTS, you write your decisions in the form that suits you best. You can build a complete decision flow as a graphical diagram that reflects the actual flow of your transactions and mirrors the steps you get used to. You can display your decisions as a rule set, a decision table, trees, or a decision graph. And if necessary, you can switch from one representation to any other at any time.

About

Sparkling Logic is a Silicon Valley company dedicated to helping businesses automate and improve their operational decisions with a powerful decision management platform, accessible to business analysts and ‘citizen developers.’ Sparkling Logic’s customers include global leaders in financial services, insurance, healthcare, retail, utility, and IoT.

Sparkling Logic SMARTSTM (SMARTS for short) is an all-in-one low-code platform for data-driven decision-making. It unifies decision authoring, testing, deployment, and maintenance. You can test it or ask for a demo.

Call to Action

SMARTS Decision ManagerSparkling Logic SMARTS is a decision management platform that empowers business analysts to define decisions using business rules and predictive models and deploy those decisions into an operational environment. SMARTS includes dashboard reporting that allows organizations to measure the quality of decisions both during development and post deployment. Learn more about how SMARTS can help your organization improve decisions.
© 2022 SparklingLogic. All Rights Reserved.