Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Spatial key query method and device based on Trie

A query method and keyword technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as retrieval efficiency constraints, and achieve the effect of avoiding multi-path query problems and low storage space overhead.

Active Publication Date: 2018-11-23
KUNMING UNIV OF SCI & TECH
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The variant of R-Tree optimizes R-Tree based on the principles of minimum area, minimum overlapping area, minimum perimeter and high storage utilization, but the retrieval efficiency is still restricted by the multi-path query problem of R-Tree.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Spatial key query method and device based on Trie
  • Spatial key query method and device based on Trie
  • Spatial key query method and device based on Trie

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] Embodiment 1: as Figure 1-Figure 7 As shown, a Trie-based spatial keyword query method includes: a data preprocessing step, encoding all position points in the data set D into a string geoStr of length n, and lexicographically sorting the data according to the string geoStr suffix ssuf Each row of data in set D is sorted and generated with an ID number, each row of data is called a record r, and a data set consisting of one or more rows of records r is called a record set R; where ssuf refers to the last n-m characters of the string geoStr , m≤n, m represents the number of digits in the prefix part of the string geoStr;

[0044] The step of establishing the spatial keyword index is to construct a Trie for the string prefix spre, and the leaf node of the Trie points to the inverted index constructed according to the keywords in the field. The list elements of the inverted index are keywords and their corresponding id lists, and the space is obtained Keyword index struc...

Embodiment 2

[0106] Embodiment 2: As in embodiment 1, d≤d is given 1 Under the circumstances, the specific implementation process, this embodiment provides d>d 1 Situation, adopt the data in embodiment 1 to be described here as follows: Given query location point (19.596412-99.219501), query distance range 2000 meters, query keywords {historicalSite, garden}, as known by the geohash precision table, need p The corresponding distance error is not less than 2000 and is the minimum value, then the p value should be set to 5, and (19.596412 -99.219501) is encoded into a 5-digit string 9g3rq through the geohash algorithm. The geohash codes of the 8 areas around 9g3rq are: 9g3rw, 9g3rx, 9g3rr, 9g3rp, 9g3rn, 9g3rj, 9g3rm, 9g3rt, and 9g3rq and its surrounding 8 areas are used as query domains. Because 2000>610, according to the geohash code retrieval Trie, select the inverted list to be retrieved, then retrieve the selected inverted list, respectively obtain the id list containing the query keywo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a spatial key query method and device based on Trie. The method of the invention includes: a data preprocessing step, wherein all position points in a data set D are encoded into character strings geoStr with length as n, each row of data in the data set D are sorted according to suffixes ssuf of the character strings geoStr and a dictionary order, a number id is generated, each row of data are referred to as a record r, and then a data set consisting of one or more rows of records r is referred to as a record set R; a spatial keyword indexing step, wherein Trie is constructed on character string prefixes spre, leaf nodes of Trie point to an inverted index constructed according to keywords in a domain, list elements of the inverted index are the keywords and an idlist corresponding thereto, and a spatial keyword index structure is obtained; and a spatial keyword query step, wherein retrieval is carried out on the spatial keyword index structure, id meeting a query condition is acquired, an id candidate set is obtained through filtering, the candidate set is verified, and position points meeting a spatial query condition are returned. The method can highlyefficiently support keyword queries in any spatial range.

Description

technical field [0001] The invention relates to a Trie-based spatial keyword query method and device, and belongs to the field of spatial keyword query (Spatial Keyword query), location-based service (Location-Based Service, LBS) and other fields. Background technique [0002] In recent years, with the popularization of mobile devices and the rapid development of positioning technology, a large number of location-based services have been produced, such as navigation services (Automap, Baidu Map, Tencent Map, etc.) to recommend arrivals for users in real time according to the current traffic status. The optimal route to the destination; social services (such as: Foursquare, Twitter, WeChat, Momo, etc.) allow users to share their geographic location and add corresponding description information for other users’ reference; food and accommodation services (such as: Meituan Waimai, Hungry What, Qunar, Ctrip, etc.) allow users to query nearby points of interest; entertainment serv...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 沈兵林贾连印游进国丁家满张晶陈明鲜张崇德唐季林
Owner KUNMING UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products