不确定数据上的概率排名查询方法解析
1. 精确查询回答方法
在处理不确定数据的概率排名查询时,精确查询回答方法是重要的手段,其中包括积极重排序算法和懒惰重排序算法,以及相关的剪枝技术。
1.1 积极重排序算法
积极重排序算法的目标是对不确定表中的元组进行重排序,以减少子集概率值的计算成本。以下是该算法的具体实现:
Algorithm 5.1 The aggressive reordering algorithm
Input: an uncertain table T, a set of generation rules R, and a top-k query Qkf
Output: Reordered compressed dominant set T(ti) of each tuple ti ∈T
Method:
1: set Lcomplete = /0, Lopen = /0
2: retrieve tuples in T in the ranking order one by one
3: for all ti ∈T do
4:
if ti is independent then
5:
T(ti+1) = Lcomplete +Lopen
6:
add ti to the rear of Lcomplete
7:
else
8:
T(ti+1) = Lcomplete +(Lopen −tRleft )
{*ti is involved in rule R}
9:
if ti is t
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



