首页> 外国专利> POSITION TOP-K KEYWORD QUERY-BASED PRIORITY QUERY ALGORITHM AND SYSTEM UNDER SLIDING WINDOW

POSITION TOP-K KEYWORD QUERY-BASED PRIORITY QUERY ALGORITHM AND SYSTEM UNDER SLIDING WINDOW

机译:滑动窗口下基于位置TOP-K关键字查询的优先级查询算法和系统

摘要

A position top-k keyword query-based priority query algorithm and system under a sliding window. The algorithm comprises the following steps: step 1, inputting a constructed quadtree indexing model, a query node and k, and initializing a set of results; step 2, executing a branch trim operation to obtain a set of candidate results; step 3, using a maximum heap C to store each word in the set of candidate results and the score thereof; step 4, when the size of the set of results is smaller than k, sequentially taking a word at a queue head from C, traversing from a root node to a leaf node to find the accurate score thereof and placing same into a queue; step 5, cyclically carrying out step 4, and when the score of the word at the queue head is equal to the accurate score of the word in the leaf node, placing same in the set of results; and step 6, when the size of the set of results is equal to k, returning the set of results. The algorithm and system can effectively trim a search space according to word frequency and position proximity, and avoids unnecessary computations while ensuring that no candidate word is lost, greatly reducing computation costs and improving the speed of querying.
机译:滑动窗口下基于位置前k个关键字查询的优先级查询算法和系统。该算法包括以下步骤:步骤1,输入构造的四叉树索引模型,查询节点和k,并初始化结果集;步骤2,执行分支修剪操作以获得一组候选结果;步骤3,使用最大堆C存储候选结果及其得分中的每个词;步骤4,当结果集的大小小于k时,从C开始依次在队列头取一个单词,从根节点遍历到叶子节点以求出准确的分数,并将其放入队列。步骤5,循环执行步骤4,当队列头的单词分数等于叶子节点中单词的准确分数时,将其放入结果集中;步骤6,当结果集的大小等于k时,返回结果集。该算法和系统可以根据词频和位置接近度有效地修剪搜索空间,避免了不必要的计算,同时又保证了候选词不丢失,大大降低了计算成本,提高了查询速度。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号