Recognizing Properties of Decision Rule Systems Using Deterministic and Nondeterministic Decision Trees ()
1. Introduction
DRSs (Decision Rule Systems) [1]-[5] and DTs (Decision Trees) [6]-[9] serve as common models for structuring and representing the knowledge. They act as classifiers that predict solutions for unseen instances, and operate as algorithms addressing tasks in combinatorial optimization, fault diagnosis, and related domains. Among classification and knowledge representation techniques, both DTs and DRSs stand out for their high level of interpretability [10]. Exploring the relationships between DTs and DRSs represents an important research direction in computer science.
In this paper, we study DDTs (Deterministic Decision Trees) and NDTs (Nondeterministic Decision Trees) for solving tasks related to recognizing properties of DRSs. Note that an NDT solving such a task, can be considered as a representation of a DRS that is true for this task and covers the whole set of inputs.
Compared to classical decision tree models, which rely on information-theoretic criteria (e.g., entropy or Gini index) and typically require labeled data, our approach uses a syntactic method that operates directly on a known DRS without the need for input data. Moreover, our framework preserves full transparency of decision paths, thereby maintaining a high level of interpretability.
In the present paper, we continue to develop a syntactic approach to solving the tasks under consideration, proposed in [11] [12]. It assumes that the DRS is known, but the input data is unavailable. The results of previous studies in this area are summarized in the book . Compared to , this paper, which extends two conference papers [14] [15], considers a wider range of tasks related to recognizing the properties of DRSs.
Let
be a finite DRS represented in the form
where
are features,
represent feature values selected from the set
, where
, and
denotes a nonnegative integer serving as the decision.
Let
be all features from the DRs (Decision Rules) in the DRS
, and
be a tuple of values of the features
. The considered DR is called applicable for the tuple
when its left part is true for this tuple, i.e., when
.
A solution map is a function
that associates a tuple
of values of features from
with a corresponding value
, referred to as the solution. Let us consider examples of solution maps (more examples can be found in Sect. 2.1):
if there exists a DR from
that is applicable for the tuple
and
otherwise.
is the set of all DRs in
which are applicable for the tuple
.
is the set of decisions from the right part of DRs in
which are applicable for the tuple
.
We study the task of finding
, where
is a tuple of feature values from
. We denote this task as
. It is important to note that while solving the task
, the tuple
is not directly accessible. To determine the value of a feature, we need to find it for the given input, which can be an expensive procedure. To minimize the number of queries related to feature values, we consider DDTs and NDTs solving the task
.
We pay special attention to the task of All Applicable Rules (AAR task) for which
is the set of all DRs from
that are applicable for the tuple
. For this task, we consider DRS examples where DDTs and NDTs can solve the AAR task with minimum depths much smaller than the number of distinct features in
. In such a situation, the use of DTs seems appropriate. We also consider examples of DRSs, in which the minimal number of nodes in DDTs and NDTs solving the AAR task grows exponentially with the size of the DRSs. Therefore, in general, instead of constructing the entire DT, we should model its operation on a given tuple
using a sufficiently efficient algorithm. Note that similar examples were considered in the book [13].
First, we investigate how the minimum depths of DDTs and NDTs relate when solving the task
. We use
to represent the minimal depth of a DDT solving this task, and
for the minimal depth of an NDT. We show the inequalities
. These bounds were obtained in the conference paper [15].
To obtain the upper bound for
, we analyze an NDT
that solves the task
with depth
. Using this tree, we describe the operation of a DDT
, solving the same task for a given tuple
, has the depth at most
. It should be emphasized that this description of the DDT cannot be regarded as an efficient algorithm, since
may possess a substantial number of nodes. Note also that a similar upper bound was derived in [13] for functions of
-valued logic,
and in [16]-[18] for Boolean functions (see [19] for details).
We additionally introduce a greedy algorithm
which, for a given DRS
and a tuple
of feature values, simulate the operation of a DDT solving the task
on
. For this algorithm, we need to have an uncertainty measure
for the task
, which is defined on the set of equation systems of the form
, such that
are pairwise different features from the set
and
. The system of equations
describes information already obtained by the DT. At the beginning of the tree work,
. The DT will stop when
. We prove that the depth of the considered DDT is at most
.
It should be noted that this algorithm has some similarities with the one presented in Sect. 4.2 of . However, the method in operates on a decision table
instead of a DRS
, and uses very different measures of uncertainty, in particular, the value
, which counts unordered pairs of rows in
having distinct decisions.
The uncertainty measure should satisfy some additional requirements, and the search for appropriate uncertainty measures is a nontrivial task. In the conference paper [14], we found a suitable uncertainty measure for the AAR task and proved all the results related to the greedy algorithm only for the AAR task. In the current paper, we extend these results to the general case of an arbitrary task
and an appropriate uncertainty measure
for it.
We generalized essentially the results obtained in [14] by studying the task of recognition of applicable special subsets of the DRS
. Let
be a nonempty family of nonempty subsets of
that are called special subsets of
. We assume that, for each subset
from
, there exists a tuple
for which all DRs from
are applicable. In this case, we will say that the subset
of DRs is applicable for the tuple
. We consider the following task
: for a given tuple
, we should find all subsets
that are applicable for the tuple
. For this task, we found an appropriate uncertainty measure
such that
and showed that the algorithm
has polynomial time complexity depending of the sizes of the DRS
and the family
. The depth of a DDT, the operation of which is modeled by the algorithm
, does not exceed
.
The results obtained in this paper may be of interest for data analysis, in which both DRSs and DTs are intensively studied. In particular, these results make one think about the possibilities of transforming DRSs into DTs.
The structure of the paper is as follows. Section 2 provides the key definitions and notation, closely aligned with those in [13]. Section 3 explores both the possibilities and the constraints of using DTs. In Section 4, we analyze and compare the minimum depths of DDTs and NDTs. Section 5 focuses on a greedy algorithm designed to simulate the operation of a DDT. Section 6 addresses the task of identifying applicable special subsets of a DRS. Finally, Section 7 offers concluding remarks.
2. Definitions
This section introduces the fundamental definitions and notations associated with DRSs and DTs.
2.1. DRSs—Decision Rule Systems
Let
, and define the set of features as
. For any
, let
.
Definition 1 We use
to denote the set of systems of equations of the following form:
where
,
and
. The system will be inconsistent if there exist
such that
,
, and
. Otherwise, the system will be called consistent.
Definition 2 A DR (Decision Rule) is defined as an expression of the following form:
where
,
are pairwise different features from
, and
.
We denote this DR by
. The value
is referred to as the decision of the decision rule
. The integer
is called the length of
and is denoted by
. We define
as the set of features in
and
. Let
denote the minimum integer
for which
.
Definition 3 A Decision Rule System (DRS)
is defined as a finite, nonempty set of DRs.
Denote
,
,
, and
. Let
and
, where
. For
, denote
.
Definition 4 A DR
from
is called applicable for a tuple
if
.
Definition 5 Consider a DRS
and an integer
. A solution map for the pair
is a mapping
that assigns to each tuple
a value
from some set. This value is interpreted as a solution. The map
will be called degenerate if it is constant on the set
and nondegenerate otherwise.
Let
be a DRS,
, and
. We now consider a number of examples of solution maps
for the pair
:
if there exists a DR from
that is applicable for the tuple
and
otherwise.
is the set of all DRs from
that are applicable for the tuple
.
is the number of DRs from
that are applicable for the tuple
.
is the set of decisions of DRs from
that are applicable for the tuple
.
is the minimum number
such that the number of DRs from
that are applicable for the tuple
and have
as the decision is maximum.
Let
be a DRS with
and
.
Definition 6 Let
be a solution map for the pair
. Task
is defined as follows: for a given tuple
, it is required to find the solution
.
When addressing the task
, it is important to note that we do not have direct access to the tuple
. To determine the value of a feature
, it is necessary to compute it for the given input, which can be an expensive procedure. To minimize the number of queries related to feature values, we consider DTs for solving the task
.
2.2. DTs—Decision Trees
A finite directed tree with a root is a finite directed tree in which exactly one node has no entering edges. This node is referred to as the root. Nodes that do not have any leaving edges are called leaf nodes, while those that are neither root nor leaf are called internal nodes. A full path in such a tree is a sequence
consisting of alternating nodes and edges, where
is the root,
is a leaf, and for each
, the edge
leaves from node
and enters to node
.
Consider a DRS
,
,
, and
be a solution map for the pair
.
Definition 7 We define a DT (Decision Tree) over the task
as a finite marked directed tree with root
, containing at least two nodes, and satisfying the conditions below:
The root and edges leaving the root are not marked.
In the tree
, every internal node is marked with a feature from
, and each leaving edge marked with a numbers from
.
Each leaf node of the tree
is marked with a solution from the set
.
Definition 8 A DT for the task
is a deterministic if its root has exactly one leaving edge, and the leaving edges of every internal node are marked with pairwise distinct values.
Suppose
is a DT over the task
. We denote by
the set of full paths in the DT
. Consider a full path
from
. To this path, we associate an equation system
. If
and
, then
. Let
and, for
, the node
be marked with the feature
and the corresponding edge
be marked with the value
. In this case, we set
. We denote by
the solution associated with the leaf node
.
Let
be a DT over
,
, and
. We say that a full path
accepts the tuple
if
. Furthermore, the solution
is called derivable from the equation system
if
for any tuple
such that the path
accepts the tuple
.
Definition 9 It is called
solves the task
nondeterministically if, for every tuple
, there exists a path
, that accepts
and, for every path
such that the system of equations
is consistent, the solution
is derivable from
. In this case, we also refer to
as an NDT that solves the task
.
Suppose
be a NDT solving the task
,
, and
. If the path
accepts the tuple
, then
is a consistent system of equations, the solution
is derivable from
, and
.
Definition 10 It is called
solves the task
deterministically if
is a DDT that solves the task
nondeterministically. In this case, it’s called
is a DDT solving the task
.
See Figure 1 for an example of a DDT and an NDT that solve the task described above.
Definition 11 We define
as the number of internal nodes in any full path
. The value
is the depth of the DT
.
Suppose
is a DRS,
and
is a solution map for the pair
. We denote by
the minimum depth of a NDT over the task
, which solves this task. We denote by
the minimum depth of a DDT over the task
, which solves this task.
For example, let us consider the problem
where
,
is a solution map for the pair
:
if there exists a DR from
that is applicable for the tuple
and
otherwise, from [15]. Then the decision trees depicted in Figure 1 are deterministic (left) and nondeterministic (right) decision trees that solve the considered problem.
Figure 1. Deterministic and nondeterministic decision trees solving the problem
.
3. Preliminary Discussion
Let
be a DRS,
, and
be a solution map for the pair
such that, for any
,
is the set of all DRs from
that are applicable for the tuple
. The task
is called the All Applicable Rules task. This is one of the most important tasks arising within the framework of the syntactic approach to the study of DRSs. We will study its generalizations in Sect. 6.
This section explores the possibilities and constraints of using DTs for addressing the All Applicable Rules task. Accordingly, we analyze two different sequences of DRSs. We will use the sum of lengths of DRs from
, denoted by
, as a parameter characterizing the complexity of the DRS
.
We begin by defining a sequence of DRSs, denoted as
, where
. For each
, the minimum depth of a DDT that solves the task
is significantly less than the number
of distinct features present in
. The number of nodes of the corresponding DT is at most
nodes. This example demonstrates the feasibility of using DTs to solve the task
.
We then define a sequence of DRSs
, for
, such that the minimal number of nodes in both DDTs and NDTs solving the task
grows exponentially with respect to the parameter
. Consequently, constructing complete DTs becomes impractical in general. As an alternative, one can simulate the operation of a DDT on a tuple of feature values with some algorithm.
Let us begin with the first sequence of DRSs. Let
. A complete binary tree with depth
is a finite directed tree with root such that every non-leaf node has exactly two leaving edges, and all full paths from the root to the leaves have length
. The nodes in this tree are organized into
layers: for each
, the
th layer consists of all nodes at distance
from the root. The
th level contains exactly
nodes. In total, there are
non-leaf nodes and
leaf nodes.
Let
denote a marked complete binary tree of depth
, where non-leaf nodes are marked with features
, and the leaves are marked with integers 1 through
. Each non-leaf node has two leaving edges, marked with 0 and 1. For each
, we define a DR
as follows. Consider a full path in
from the root to the leaf marked
, represented as
, where for every
, the node
marked with
, and the edge
is marked with
. Then the DR
is given by:
We define
as the set of DRs
. It follows that
and
.
We examine the task
and prove that
. To this end, we convert the tree
into a DDT, denoted by
, that corresponds to the task
. This is done by introducing a new node
and an edge
directed from
to the root of
, leaving both
and
unmarked. Each leaf node in
previously marked with
(for
) is now marked with
. The resulting DDT
solves the task
and has a depth of
.
Thus, for every
, we obtained an example of a DRS
satisfying
and
. Moreover, there exists a DDT
that solves the task
, having depth exactly
and number of nodes is
nodes.
We now turn to the second sequence of DRSs. Let
. Define
as the DRS:
Clearly,
. Consider the task
. It can be shown that for any two distinct tuples
, we have
. As a result, any NDT that solves the task
must contain at least
leaf nodes.
Consequently, for every
, we have obtained a DRS
such that
and
. Furthermore, any decision tree, whether deterministic or nondeterministic, that solves the task
must contain at least
nodes.
4. Comparative analysis of DDTs (Deterministic Decision
Trees) and NDTs (Nondeterministic Decision Trees)
This section focuses on analyzing the minimum depths of DDTs and NDTs that solve the task
.
Theorem 1 Suppose
be a DRS,
, and
be a solution map for the pair
. Then
Proof. Since any DDT that solves the task
is a NDT that solves the task
, so the inequality
holds. We now show that
.
Let
and let, for definiteness,
. Let
be a NDT over
, that solves the task
, where
. Let
denote the set of full paths
from
for which the corresponding equation system
is consistent. We assign a number from
to each path in
to ensure all paths are distinctly identified. Two full paths
are said to be equivalent if
. This equivalence relation partitions
into equivalence classes
.
We now prove that for any two full paths
are not equivalent, then the system
is inconsistent. Suppose, for contradiction, that
is consistent. Then there exists a tuple
such that
and
. This implies that both paths accept
, which leads to a contradiction because
.
Suppose
. Let us describe the behavior of a DDT
with respect to the tuple
, where
solves the task
. As a consequence, we derive the description of a full path
in the DT
that accepts the tuple
. The set of full paths of the DT
coincides with the set
.
Step 1:
Initialize
. For every path
, define
. Proceed to Step 2.
Step 2:
This step is divided into three phases:
(a) If there exists a full path
such that
is empty, then the DT
terminates and returns the solution
, which will be attached to the leaf node of the path
. Otherwise, proceed to (b).
(b) Set
the minimum index
in
such that
. Choose a full path
with the minimum number. If
, then the tree
terminates and returns the solution
, which will be attached to the leaf node of the path
. Otherwise, proceed to (c).
(c) Let
be all features from the equations containing in
. The DT
computes values of these features and obtains the set of equations
. Then, for every full path
: if
is inconsistent, then set
, otherwise, set
. Proceed to Step 2.
We observe that for the full path
, we have
, meaning that this path accepts the tuple
. We now show that the solution
, which is attached to the leaf node of this path, is derivable from
. The two variants of the finishing the work of the DT
are described in phases (a) and (b) of Step 2.
(a) There exists a full path
such that
is empty. In this situation, the DT
terminates and returns the solution
, which will be attached to the leaf node of the path
. Clearly, we have
. Since
is derivable from
, it follows that
is derivable from
.
(b) There is no any full path
such that
is empty and there is
for which
and
. Let us select the path
with the minimum number. In this case, the DT
terminates and returns the solution
, which will be attached to the leaf node of the path
.
Since
solves the task
, there exists a full path
that accepts the tuple
. For this path, we have
and
. Given that
, the path
belongs to
and consequently, belongs to
. Hence, leaf nodes of the paths from
are marked with the solution
. In particular, this implies
.
Let us now prove that
is derivable from
. Assume the contrary, that it is not derivable. Then there exists a tuple
, which is accepted by the path
and for which
. Since
solves the task
, there is a full path
that accepts the tuple
. For this path,
and
. Since
, the path
belongs to the set
and therefore, to the set
, but this is impossible since leaf nodes of all paths from
are marked with the solution
and
.
Therefore, we obtain that the DT
solves the task
.
It is clear that in each full iteration of Step 2, including phase (c), the DT
evaluates at most
feature values. We now prove that the number of such full iterations of Step 2 is at most
.
Since for any non-equivalent paths
the equation system
is inconsistent, it follows that during each full iteration of Step 2, every path
not in
(i.e., in
) will either be removed from
or will have the cardinality of
decreased by at least 1. Evidently, for each full paths
, the cardinality of the set
is at most
. Therefore, after
complete repetitions of Step 2, we will find a full path
for which the set
is empty or we will have
. In both cases, the DT
will finish its work.
Hence, the number of internal nodes along the path
in
is at most
. Taking into account that we considered an arbitrary full path in the DT
and
, we obtain
. Since
is a DDT over
that solves the task
, we have
. □
5. A Greedy Approach to Modeling the Operation of DDT
(Deterministic Decision Tree)
Consider a DRS
with
, and
. We define
as the set containing equation systems of the form
where
,
, and
. We denote by
the set of consistent equation systems from
. For
, denote
. This set can be interpreted as the set of solutions from
of the equation system
.
Definition 12 Let
be a solution map for the pair
and
. Let us define the parameter
. For any
, we denote by
the minimum number
such that there exists a subsystem
of the equation system
, which contains
equations and for which the map
is constant on the set
. Then
. Note that
if and only if
is a degenerate map.
A related parameter was introduced for decision tables within test theory in [20]. In the concept classes of exact learning, a similar parameter proposed in [21], where it is known as the extended teaching dimension, generalizes the teaching dimension concept from [22].
We will prove two statements related to the parameter
. The first one has some independent interest.
Lemma 2 Suppose
be a DRS,
, and
be a solution map for the pair
. Then
Proof. Let
,
be a NDT over
, which solves the task
, where
, and
be a tuple from
for which
. Since
solves the task
, there is a path
, where
and, for any tuple
,
. Hence,
is a subsystem of
where the map
is constant on the set
. Therefore, there are at most
equations in
. As a result,
, i.e,
.
We now show that
. Let
. From the definition of the parameter
, there exists a subsystem
of
, that contains at most
equations and the map
is equal to some constant
on the set
. It is not difficult to build a full path
having at most
internal nodes, for which
and
equals
. We identify roots of the full paths
,
, and denote the resulting DT by
. It can be shown that
is a NDT over
, that solves the task
, where
. Therefore
. Thus,
. □
Lemma 3 Consider a DRS,
,
, and
be a solution map for the pair
. Then
Proof. Let
,
and
be a subsystem of
, where the map
is constant on the set
. Then
is a subsystem of
, where the map
is constant on the set
. From here it follows that
. Since
is an arbitrary tuple from the set
, we obtain
. □
Definition 13 Consider a DRS
,
, and
be a solution map for the pair
. An uncertainty measure for the triple
is a function
, which satisfies the following conditions:
For any
,
if and only if the map
is constant on the set
.
Let
and the equation
do not belong to the system
. Then
Note that
if and only if the map
is degenerate. We proceed by proving an auxiliary statement.
Lemma 4 Consider a DRS
,
,
be a nondegenerate solution map for the pair
, and
be an uncertainty measure for the triple
. Let
,
,
and
. Let, for
,
be a number from
such that
, and
be the minimum
for which
has the minimum value. Then
Proof. By the definition of the parameter
and from
, we conclude that there exist pairwise distinct features
such that
and
. Then
Since the features
are pairwise different, for
, the equation system
is consistent and the equation
does not belong to the equation system
. Using the definition of uncertainty measure
, we obtain that, for
,
Therefore
. Since
for
, we have
and
.
Given that
, it follows that
. □
Let
be a DRS with
,
,
be a nondegenerate solution map for the pair
, and
be an uncertainty measure for the triple
. We now consider an algorithm
that, for the DRS
, the number
, the solution map
, the uncertainty measure
, and a tuple
, simulates the work of a DDT
over
, that solves the task
. Therefore, we get the description of a full path
from the DT
which accepts the tuple
. The set of full paths of the DT
coincides with the set
. Let, for definiteness,
.
Algorithm
Step 1:
Set
and
. Proceed to Step 2.
Step 2:
If
, then the DT
terminates and returns the solution
, where
is an arbitrary tuple from the set
. This solution is attached to the leaf node of the full path
. Otherwise, proceed to Step 3.
Step 3:
Set
the minimum
for which
has the minimum value. Compute the value of the feature
. Set
and
. Proceed to Step 2.
Theorem 5 Let
be a DRS with
,
,
be a nondegenerate solution map for the pair
, and
be an uncertainty measure for the triple
. Then
is a DDT over
, that solves the task
such that
Proof. Let, for definiteness,
. Consider an arbitrary tuple
. The algorithm
constructs the full path
within the DT
, that accepts this tuple. It is not difficult to show that the solution
is derivable from
. Since
is an arbitrary full path in the DT
, it follows that this tree is a DDT over
, that solves the task
.
We now analyze the number of internal nodes along the path
. Suppose Step 3 of algorithm
is repeated
times during its work. Then
, where
is the root of DT
,
is a leaf node and, for
, the edge
leaves the node
and enters the node
. The node
and the edge
are not marked. For
, the node
is marked with the feature
and the edge
is marked with
. The leaf node
is marked with
. Since the map
is nondegenerate,
and
. We now show that
.
For
, let
. Denote
. It is clear that, for
, the equation system
is consistent. From the description of the algorithm
it follows that, for
,
. By Lemma 4, for
,
. From Lemma 3, we get that, for
,
Therefore, for
,
.
Since the map
is nondegenerate,
. Let
. Then
, i.e.,
. In this case,
.
Let us assume now that
. In this case,
. From the description of algorithm
, it follows that
. Thus,
,
and
. By taking the natural logarithm on both sides of the inequality, we get
. It is well-known fact that, the inequality
holds, for any natural
. Given that
, it follows that
and
. Since
is an arbitrary full path in the DT
, we conclude that
. □
From Lemma 2 and Theorem 1, we can conclude the statement below.
Corollary 1 Let
be a DRS with
,
,
be a nondegenerate solution map for the pair
, and
be an uncertainty measure for the triple
. Then
is a DDT over
, that solves the task
such that
In order to consider the work of algorithm
efficient, we need to have
An efficient algorithm that finds the value
for a given tuple
. In this case, we have direct access to the tuple
and we do not need to compute values of the features from the set
.
An efficient algorithm that finds the value
for a given equation system
.
We find it difficult to study the complexity of algorithms for computing individual functions
and
with finite domains. We defer a detailed discussion of this issue to the next section, in which we study infinite parametric families of functions
and
.
6. Recognition of Applicable Special Sets of Rules
Let
be a DRS with
,
, and
be a nonempty set of nonempty subsets of
such that, for any
, the set of equations
is consistent. We will call subsets
from
special subsets of
and will interpret them as subsets of
of special interest. We will call the set
a family of special subsets for the DRS
.
Let
. We will say that a special subset
is applicable for the tuple
if each DR
is applicable for this tuple, i.e., if
. Let us define a solution map
for the pair
as follows: for
,
is the set of all special subsets from
that are applicable for the tuple
. It is clear that the solution map
is nondegenerate. In this section, we will study the task
. Let us consider two examples:
. The task
coincides with the task All Applicable Rules.
is the set of all subsets of
of the kind
, where
and
have different decisions and
is consistent. If the set
is nonempty, then it is a family of special subsets for the DRS
.
Let us define an uncertainty measure
for the triple
. Let
. For each subset
, we consider two parameters:
and
that is equal to 1 if the equation system
is consistent and to 0 otherwise. Denote
and
.
Proposition 6 Let
be a DRS with
,
, and
be a family of special subsets for the DRS
. Then
is an uncertainty measure for the triple
.
Proof. (a) First, we show that, for any
,
if and only if the map
is constant on the set
. Let
. Then, for any
,
. Let us consider an arbitrary
. Since
, either
or
(obviously, the equalities
and
cannot be fulfilled simultaneously). If
, then, for any
, the subset of DRs
is applicable for
. If
, then, for any
, the subset of DRs
is not applicable for
. From here it follows that the map
is constant on the set
.
Let the map
be constant on the set
. Let us consider an arbitrary subset
. Then either, for any
, the subset of DRs
is applicable for
or, for any
, the subset of DRs
is not applicable for
. Let, for any
, the subset of DRs
be applicable for
. Then
and
. Let, for any
, the subset of DRs
be not applicable for
. Then the equation system
is inconsistent and
. Thus,
. Since
is an arbitrary subset of the set
, we obtain
.
(b) We now show that, for any
, if
is not a subset of
, then
(1)
We denote by
the equation system
. To prove (1), it is enough to show that, for any
, the following inequality holds:
(2)
It is easy to see that
and
. Therefore
(3)
We now consider a number of cases.
(i) Let the equation system
be inconsistent. In this case,
. Using (3), we obtain (2).
(ii) Let the equation system
be consistent and the equation system
be inconsistent. Then
. It is clear that
. Therefore (2) holds.
(iii) Let both equation systems
and
be consistent. Since the equation system
is consistent, we obtain that
is consistent. In this case,
and
. We know that
is not a subset of
. Using this fact, it is easy to show that
. Therefore (2) holds. □
Suppose
be a DRS,
, and
be a family of special subsets for the DRS
. First, we evaluate the depth of the DT
. According to Corollary 1, it is at most
. It is clear that
. Therefore
We now discuss the complexity of the algorithm
when it generates a full path in the DT
.
The DRS
can be represented by a word over the alphabet
in which numbers from
(feature indices, feature values, and decisions of the DRs) are in binary representation (are represented by words over the alphabet
) and the symbol “;” is used to separate two DRs. The length of this word will be called the size of the DRS
and will be denoted
. This word defines an order on the set
, that is, all DRs from
are numbered with indices
. Each subset
is represented by the set of indices of DRs belonging to it. The set
can be represented by a word over the alphabet
in which numbers from
(indices of the DRs) are in binary representation and the symbol “;” is used to separate two indices. The length of this word will be called the size of the family
and will be denoted
.
One can show that there is an algorithm, which finds the value
for a given tuple
and which time complexity is bounded from above by a polynomial depending on
and
. One can show also that there is an algorithm, which finds the value
for a given equation system
and which time complexity is bounded from above by a polynomial depending on
and
. It is easy to show that
. Therefore
. Using these facts, one can prove that the algorithm
can be designed to have polynomial time complexity depending on
and
.
7. Conclusion
In this paper, various tasks of recognizing the properties of DRSs are investigated. It is proved that the minimum depth of a DDT solving the task is bounded from above by the square of the minimum depth of an NDT. A greedy algorithm for modeling the operation of a DDT on a given tuple of feature values is proposed and investigated. Its complexity is studied for a class of tasks of recognizing the properties of DRSs. A more in-depth theoretical and experimental study of this and similar algorithms is planned in the future.
Acknowledgements
Research reported in this publication was supported by King Abdullah University of Science and Technology (KAUST).