Linear data structure query efficiency improving method
A technology of query efficiency and linear data, applied in electrical digital data processing, instruments, memory systems, etc., can solve problems such as increased time complexity of linear search
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] Embodiment 1, this embodiment is a method of searching the linear array in the shared memory by converting it into a red-black tree.
[0030] In this embodiment, the following arrays are stored in the shared memory:
[0031]
[0032] The array in the shared memory contains the information of 1000 students. If a process needs to search for 1000 students, the time spent is 1000*(1000 / 2)=500000 time units.
[0033] At this time, this process may construct a dedicated red-black tree construction process to construct the following red-black tree:
[0034]
[0035]
[0036] In the red-black tree structure defined above, we can use the student number as the key of the red-black tree, and the address of the array element of the student information as the data field of the red-black tree, so as to construct a red-black tree, so as to realize the The lookup of a linear array is converted into a lookup of a red-black tree.
[0037] Here, I assume that the insertion oper...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com