Comments about the semantics. Two points are wor-
thy of comments. First, it must be noticed that the
lexicographic order has a somewhat “brutal” way of
discriminating, which can be felt as counter-intuitive
in some cases. For instance, with the approach pro-
posed, the vector [α, 0, 0, ..., 0] is preferred to [α− ε,
1, ..., 1] even for a very small ε. A second point con-
cerns the fact that zeros do not “propagate” to their
descendants in the tree. Thus, vector [α, 0, β] is
preferred to [α, 0, γ] as soon as γ is smaller than β,
even though the parent node of β and that of γ yield
the score zero. Again, this can be considered debat-
able since one might think that a hierarchical behavior
would impose to take a node into account only if its
parent is somewhat satisfied.
4 IMPLEMENTATION ASPECTS
For the score-based approach, the query processing
method is based on a depth-first scan of the query tree.
The algorithm includes two pruning criteria:
1. when the local score obtained by tuple t for the
predicate associated with the current node equals
0, the evaluation of a branch stops. This is due
to the fact that the score obtained for a node acts
as a threshold (upper bound) on the scores ob-
tained through the descendants of this node (cf.
the transformation of vector V into V
′
);
2. for the same reason, if a child x of the root returns
a score e which is less than the current best score
attached to t, there is no need to check the descen-
dants of x. Indeed, the final score obtained along
every branch originating in x cannot be greater
than e.
As to the approach based on the lexicographic order,
query processing is based on a breadth-first scan of
the query tree which computes the best vector (ac-
cording to the lexicographic order) associated with tu-
ple t.
The important point to notice is that the data com-
plexity of conditional competitive queries is linear,
which implies that they are perfectly tractable. How-
ever, with respect to regular selection queries (involv-
ing conditions of the form attribute θ constant or
attribute
1
θ attribute
2
where θ denotes a compara-
tor), the processing of an individual tuple is more ex-
pensive in the conditional competitive case since one
has to deal with a tree of predicates instead of a “flat”
condition which is in general more simple.
5 CONCLUSIONS
In this paper, a new type of database queries involv-
ing preferences is introduced. The idea is to allow
for competitive conditional preference clauses struc-
tured as a tree, of the type “preferably P
1
or ... or P
n
;
if P
1
then preferably P
1,1
or ...; if P
2
then preferably
P
2,1
or ...”, where the P
i
’s are not exclusive (thus the
notion of competition). Two interpretations of such
queries have been defined, one based on the hierarchi-
cal aggregationoperator previously proposedin (Bosc
and Pivert, 1993), the other on the lexicographic or-
der. These approaches lead to different complete pre-
orders and the choice of the most suitable interpreta-
tion depends on the semantics that the user wants to
give to the notion of hierarchy in his/her query.
Future works should thus notably aim at propos-
ing some mechanisms that can help the user in this
choice. In any case, the processing of such queries is
perfectly tractable since their data complexity is lin-
ear. Among other perspectives for future work, the
main one concerns the effective integration of such a
query functionality into a regular database system.
REFERENCES
Bosc, P. and Pivert, O. (1993). An approach for a hier-
archical aggregation of fuzzy predicates. In Proc. of
FUZZ-IEEE’93, pages 1231–1236.
Dubois, D. and Prade, H. (1986). Weighted minimum and
maximum operations in fuzzy set theory. Information
Sciences, pages 205–210.
Dubois, D. and Prade, H. (1996). Using fuzzy sets in flex-
ible querying: Why and how? In Proc. of FQAS’96,
pages 89–103.
Hadjali, A., Kaci, and Prade, H. (2008). Database prefer-
ences queries — a possibilistic logic approach with
symbolic priorities. In Proc. of FoIKS’08, pages 291–
310.
IJCCI 2009 - International Joint Conference on Computational Intelligence
74