A compact symbolic formulation enables mapping of an arbitrarily complex decision tree of a certain type into a highly computationally efficient multidimensional software object. The type of decision trees to which this formulation applies is that known in the art as the Boolean class of balanced decision trees. Parallel lateral slices of an object created by means of this formulation can be executed in constant time — considerably less time than would otherwise be required.

Decision trees of various forms are incorporated into almost all large software systems. A decision tree is a way of hierarchically solving a problem, proceeding through a set of true/false responses to a conclusion. By definition, a decision tree has a treelike structure, wherein each internal node denotes a test on an attribute, each branch from an internal node represents an outcome of a test, and leaf nodes represent classes or class distributions that, in turn represent possible conclusions. The drawback of decision trees is that execution of them can be computationally expensive (and, hence, time-consuming) because each non-leaf node must be examined to determine whether to progress deeper into a tree structure or to examine an alternative. The present formulation was conceived as an efficient means of representing a decision tree and executing it in as little time as possible.

The formulation involves the use of a set of symbolic algorithms to transform a decision tree into a multi-dimensional object, the rank of which equals the number of lateral non-leaf nodes. The tree can then be executed in constant time by means of an order-one table lookup. The sequence of operations performed by the algorithms is summarized as follows:

  1. Determination of whether the tree under consideration can be encoded by means of this formulation.
  2. Extraction of decision variables.
  3. Symbolic optimization of the decision tree to minimize its form.
  4. Expansion and transformation of all nested conjunctive-disjunctive paths to a flattened conjunctive form composed only of equality checks when possible.

If each reduced conjunctive form contains only equality checks and all of these forms use the same variables, then the decision tree can be reduced to an order-one operation through a table lookup. The speedup to order one is accomplished by distributing each decision variable over a surface of a multidimensional object by mapping the equality constant to an index.

The disadvantage of this formulation is that it requires mapping of each equality constant to a small range in order to keep the multidimensional object small. However, if each constant is reduced to a small range through preprocessing, then the result will be optimal in both time and space.

This work was done by Mark James of Caltech for NASA's Jet Propulsion Laboratory. For further information, access the Technical Support Package (TSP) free on-line at www.techbriefs.com/tsp under the Information Sciences category.

The software used in this innovation is available for commercial licensing. Please contact Karina Edmonds of the California Institute of Technology at (626) 395-2322. Refer to NPO-42004.



This Brief includes a Technical Support Package (TSP).
Document cover
Decision-Tree Formulation With Order-1 Lateral Execution

(reference NPO-42004) is currently available for download from the TSP library.

Don't have an account?



Magazine cover
NASA Tech Briefs Magazine

This article first appeared in the January, 2007 issue of NASA Tech Briefs Magazine (Vol. 31 No. 1).

Read more articles from the archives here.


Overview

The document discusses a novel method developed by NASA's Jet Propulsion Laboratory for efficiently representing and executing decision trees, particularly in time-critical applications. The primary motivation behind this innovation is to enhance the speed at which decisions can be made by transforming complex decision trees into a highly efficient n-dimensional object. This transformation allows for constant-time execution through an order-1 matrix look-up operation, significantly improving the performance of decision-making processes.

Decision trees are widely used in various software systems, including those at NASA, to solve problems through a hierarchical structure of true/false responses. Each internal node in a decision tree represents a test on an attribute, while branches indicate the outcomes of these tests, leading to leaf nodes that yield classification results. However, traditional decision trees can be computationally expensive, as they require evaluating multiple non-leaf nodes, which can slow down decision-making, especially in critical scenarios.

The proposed solution involves several key steps: determining if a decision tree can be encoded using this new method, extracting decision variables, optimizing the tree symbolically to minimize its form, and transforming nested conjunctive-disjunctive paths into a flattened conjunctive form. This approach not only streamlines the decision-making process but also reduces the number of machine cycles needed for execution.

The technology has been successfully implemented and is currently in operational use in a shadow mode at Goldstone, demonstrating its practical applicability. The document emphasizes the significance of this advancement in the context of aerospace applications, where rapid and efficient decision-making is crucial.

Overall, the document highlights the potential of this innovative decision-tree formulation to enhance the efficiency of decision-making processes in various fields, particularly in aerospace and other high-stakes environments. By leveraging symbolic analysis and source-to-source transformation techniques, this method represents a significant step forward in the automation and optimization of decision-making systems.