Unlock instant, AI-driven research and patent intelligence for your innovation.

A data query method and system

A data query and data technology, applied in the field of data processing, can solve the problems of increased chip area, lack of data query method that comprehensively considers time cost consumption and hardware cost consumption, and hardware consumes more and more register resources, etc., to achieve reduction Hardware cost, the effect of saving chip resources

Active Publication Date: 2019-02-26
ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This approach saves time to the greatest extent, but as the number of preset data for comparison increases, the hardware will consume more and more register resources, resulting in an increase in chip area.
[0007] In summary, there is still a lack of data query methods that comprehensively consider time cost consumption and hardware cost consumption

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
  • A data query method and system
  • A data query method and system
  • A data query method and system

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0034] image 3 It is the realization flow diagram of the data query method provided in the first embodiment of the present invention, Figure 6 is a schematic structural diagram of the data query system in the first embodiment of the present invention, and the system is used to implement the data query method provided in the first embodiment of the present invention. Such as image 3 As shown, the implementation process includes:

[0035] Step 11. Receive the data to be queried.

[0036] Wherein, the number of digits of the data to be queried can be a preset fixed value, and each digit in the data to be queried corresponds to a number respectively, such as the data to be queried is a binary number 10010, then the number of digits of the data to be queried is 5, and The data to be queried includes 5 digits (bit) 0, bit1, bit2, bit3 and bit4 (from right to left), and the number corresponding to bit0 is 0, the number corresponding to bit1 is 1, and the number corresponding to...

no. 2 example

[0059] Figure 7 It is the realization flowchart of the data query method provided in the second embodiment of the present invention, such as Figure 7 As shown, the data query method provided in the embodiment of the present invention includes:

[0060] Step 21. Receive the first data to be queried, and set a first counter corresponding to the first data to be queried as the number of bits of the first data to be queried.

[0061] Wherein, the number of digits of the first data to be queried is the same as that of the preset data.

[0062] Step 22. Simultaneously compare the number corresponding to any digit in the first data to be queried, whether it is the same as the digits corresponding to the digit in each preset data, repeat the comparison operation, and perform a comparison corresponding to each digit The operation decrements the first counter by one.

[0063] Step 23. Receive the second data to be queried, and set a second counter corresponding to the second data t...

no. 3 example

[0072] Figure 9 is a schematic diagram of the data query method provided in the third embodiment of the present invention, Figure 10 It is a schematic diagram of the data query result provided in the third embodiment of the present invention. Such as Figure 9 As shown, the preset data includes: 00011, 10000, 01001, 11000, 10001, 00111 and 10110, etc., Figure 10 shown in Figure 9 The result of the query method shown, combined with Figure 9 and Figure 10 As shown, the query of the first data to be queried 10010 is started at time T'1, the second data to be queried 00000 is started to be queried at time T'2, and the third data to be queried 11000 is started to be queried at time T'4, wherein the first data to be queried is The query time is T'1-T'5, the query time of the second data to be queried is T'2-T'6, and the query time of the third data to be queried is T'4-T'8, that is, each The time length of the data to be queried is equal to the number of digits of the pr...

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 embodiment of the invention relates to the technical field of data processing, in particular to a data inquiring method and a data inquiring system. The method comprises the following steps: receiving data to be inquired; aiming at each digit in the data to be inquired, simultaneously comparing whether a number corresponding to the digit is the same with each number corresponding to the digit in each preset data received from a storage; according to a comparison result, determining an inquiry result and outputting the inquiry result. According to the embodiment of the invention, the number corresponding to one digit can be inquired at the same time so as to ensure that the longest inquiring time of each data to be inquired is determined; moreover, according to the embodiment of the invention, the preset data is stored in the storage instead of a register, and thus, chip resources are saved, so that hardware cost is reduced.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular to a data query method and system. Background technique [0002] In the software of the TV set-top box, the TV signal received from the cloud will contain a program (Program ID, PID) list that may be very long, and there may be multiple clients on demand, so it is necessary to respond to the query request of the multi-client, namely Query whether there is a PID matching the user request in the PID list. [0003] In the traditional query method of existing software, the preset data in RAM (Ramdom Access Memory, volatile random access storage) is usually read one by one, and the data to be queried is compared with each preset data one by one. This method is simple, but as the number of preset data increases, the software will consume more and more time for comparison. figure 1 is a schematic diagram of the traditional query method of the softwar...

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 Patents(China)
IPC IPC(8): G06F16/2453
CPCG06F16/90344
Inventor 万瑛娴
Owner ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL