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

Efficient retrieval of variable-length character string data

Inactive Publication Date: 2005-06-02
NEC CORP
View PDF7 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0009] Accordingly, an object of the present invention is to provide an information retrieval technique, which achieves high retrieval efficiency even when the overlapping parts of registration patterns have a variety of lengths.
[0010] According to a first aspect of the present invention, an index element for a registration pattern is generated, wherein the index element is a partial string of characters which is selected from a plurality of possible partial strings of characters according to a predetermined selection rule, wherein the plurality of possible partial strings of characters are extracted from the registration pattern according to a predetermined extraction rule. An index element for a given retrieval key is retrieved using a plurality of partial strings of characters with different lengths that are extracted from the given retrieval key according to the predetermined extraction rule, to narrow scope of retrieval.
[0011] As described above, according to the present invention, high retrieval efficiency can be achieved even when the overlapping parts of registration patterns vary in length.

Problems solved by technology

On the other hand, a pattern that does not match leading characters of the retrieval key, such as a pattern “BCDE”, does not meet a condition of prefix matching, even if the pattern is a partial character string of the retrieval key.
Such a prior art has a disadvantage, which will be described with reference to FIG. 1.
Therefore, if a character string starting with “PQRSPQRSP” is inputted as a retrieval key, the narrowing of the patterns1305 to 1310 based on the indexes is insufficient, leading to increased costs of suffix-part comparison to be performed thereafter, lowering the retrieval efficiency.
As described above, the prior art has a problem that, when the overlapping parts of registration patterns vary in length, the registration patterns are not narrowed sufficiently based on indexes, resulting in the costs of comparing the remaining parts of the character strings becoming large.

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
  • Efficient retrieval of variable-length character string data
  • Efficient retrieval of variable-length character string data
  • Efficient retrieval of variable-length character string data

Examples

Experimental program
Comparison scheme
Effect test

first embodiment

1. First Embodiment

[0044] 1.1) Configuration

[0045] Referring to FIG. 2, a variable-length character string retrieval apparatus 1 according to a first embodiment of the present invention generally includes a pattern registration section 131, a retrieval execution section 11 and a pattern storage section 12.

[0046] When a registration pattern 132 is inputted, the pattern registration section 131 extracts N prefixes (N: natural number) with different lengths in accordance with a given extraction rule. Further, the pattern registration section 131 selects one prefix among the extracted prefixes in accordance with a given selection rule, and sets the selected prefix as an index element for the registration pattern 132. Thereafter, a predetermined hash function is applied to the prefix set as the index element to obtain a hash value, and this prefix is registered on a prefix pattern list 121 in the pattern storage section 12, at a location according to the obtained hash value. That is, i...

second embodiment

2. Second Embodiment

[0075] In the first embodiment as described above, the prefix extractor 111 extracts prefixes with predetermined N different lengths from a retrieval key, and the pattern registration section 131 extracts a prefix to be set as an index element from a registration pattern based on the predetermined N different lengths. By comparison, in a second embodiment of the present invention, the prefix extractor 111 extracts prefixes with N different lengths according to a predetermined separating character, and the pattern registration section 131 extracts a prefix to be set as an index element from a registration pattern according to the predetermined separating character.

[0076] 2.1) Prefix Extraction

[0077] First, the operation of the prefix extractor 111 in the second embodiment will be described with reference to FIGS. 6 and 7. In the following description, it is assumed that N=4. In addition, consideration will be given to a case, for example, where a retrieval key 5...

third embodiment

3. Third Embodiment

[0092] In the first and second embodiments, the retrieval of the longest prefix match of a variable-length character string is performed. By comparison, in a third embodiment of the present invention, the retrieval of a longest suffix match will be performed. Now the third embodiment will be described with reference to FIGS. 11 and 12.

[0093]FIG. 11 is a block diagram showing an exemplary configuration of a variable-length character string retrieval apparatus 1a for retrieving a longest suffix match. Referring to FIG. 11, the variable-length character string retrieval apparatus 1a according to the third embodiment generally includes a pattern registration section 131a, a retrieval execution section 11a and a pattern storage section 12a.

[0094] When a registration pattern 132 is inputted, the pattern registration section 131a extracts N suffixes (N: natural number) with different lengths from the tail of the registration pattern 132 in accordance with a given extra...

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

Prefixes are registered on a first list as index elements for respective registration patterns. Each prefix is selected as the longest of different-length prefixes that are extractable from a registration pattern in accordance with an extraction rule. Suffixes, which are the remaining parts of the registration patterns excluding the respective prefixes, are registered on a second list. Using different-length prefixes that are extracted from a retrieval key in accordance with the extraction rule, a prefix retriever searches the first list to retrieve a registration pattern whose prefix matches any of the prefixes of the retrieval key. A suffix checker carries out a check on the suffix of the registration pattern retrieved by the prefix retriever, among the suffixes on the second list, as to whether the suffix of the registration pattern matches the suffix of the retrieval key.

Description

BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention [0002] The present invention relates to an information retrieval technology of retrieving variable-length character string data. More particularly, the present invention relates to a technology to enhance efficiency in retrieving the longest prefix match or longest suffix match of a variable-length character string. [0003] 2. Description of the Related Art [0004] First of all, a description will be given of a general outline of the retrieval of the longest prefix match; which is the primary application target of the present invention. In the retrieval of the longest prefix match, a retrieval result is, in a pattern list, the longest of patterns that match leading characters of a retrieval key (character string to retrieve). For example, when there are three patterns “ABCD”, “ABCDEFGH” and “ABCDE” that match leading characters of a retrieval key (e.g., “ABCDEFGHIJ”), the longest matching pattern “ABCDEFGH” is outputted as a...

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
IPC IPC(8): G06F17/30
CPCG06F17/30985G06F16/90344Y10S707/99936
Inventor MOTOKI, AKIHIRO
Owner NEC CORP
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