Linked list implementing method for quickly searching data

An implementation method and technology for retrieving data, applied in the field of computer systems, can solve the problems of inadvisability of linked lists, inability to allocate and release, and the speed of retrieving data, etc., and achieve the effect of avoiding frequent allocation and waste.

Active Publication Date: 2008-10-01
SHANGHAI XIN YUE LIAN HUI ELECTRONICS TECH
View PDF0 Cites 43 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The ordinary linked list structure in the prior art is not comprehensive enough, and the data items of its nodes generally point to a specific data
At the same time, when too many nodes in the linked list are created, there will be too many system memory allocation operations. With the continuous allocation and release of nodes, it is easy to cause a large amount of memory fragmentation, which makes the system inconvenient to run. This needs to be avoided in system operation.
At the same time, due to too many nodes in the linked list, the speed of retrieving data drops sharply, and the operating efficiency is poor.
Therefore, when the amount of data is large, it is not advisable to use a linked list
[0004] At the same time, due to the large limitations of ordinary arrays, they must be allocated first when the system is initialized or the function is initialized, and cannot be dynamically allocated and released. Its flexibility is poor and it will cause large memory overhead.
[0005] Although the dynamic allocation of memory in the prior art can solve the shortcomings of ordinary arrays, the dynamic allocation and use during use reduces the overhead of system memory and expands the flexibility of ordinary arrays. It is very inconvenient to maintain

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
  • Linked list implementing method for quickly searching data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention will be further described below in conjunction with accompanying drawing and specific embodiment:

[0025] figure 1 An example diagram of a two-way dynamic array linked list.

[0026] When the system needs to save a large amount of similar data in the memory, it must first call the initialization function of the dynamic numerical linked list in this method to determine the relevant attribute values ​​of the dynamic array linked list. Prepare for creating a dynamic array linked list.

[0027] You can add dynamic array linked list data, and add a dynamic array linked list data in the linked list. And when it is added, it is judged whether there are any array elements that are not used. If there are, the data will be directly assigned to the unused elements. If not, a new node will be automatically created, and a dynamic array will be dynamically allocated, and then the data item of the new node will point to The dynamic array, and assign the speci...

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 an implement method that searches linked list of data rapidly. The technical problem that needs to solve is that not only the advantages of an array and a linked list are maintained, but also limitations of use thereof are overcame. The implementations lie in that appointing a data item of each node in the linked list to an array space; each element in the array appointed by the data item has a unique index number; the linked list can be a signal linked list or a double linked list; the array can be dynamically distributed array or appointed array. The data in the entire linked list is stored in sequence. The array is combined with the linked list, which is capable of enhancing the number of the nodes of the linked list to realize the dynamical array. Because of each node appoints to an array space that appoints size, but not a data item only, the function of the double linked list is extended and frequently distribution and waste of the memory are avoided too. Storing after ordering the entire data to position the data rapidly by dichotomy is convenient to operate.

Description

Technical field: [0001] The invention relates to a computer system, in particular to a linked list implementation method for fast data retrieval. Background technique: [0002] With the rapid development of computer technology, especially the development of embedded systems, in order to speed up the processing speed of the system, more and more data to be processed need to be stored in the system memory in large quantities, which requires a convenient memory Data maintenance operations to meet various data processing needs. [0003] The common linked list structure in the prior art is not comprehensive enough, and the data items of its nodes generally point to a specific data. At the same time, when too many nodes in the linked list are created, there will be too many system memory allocation operations. With the continuous allocation and release of nodes, it is easy to cause a large amount of memory fragmentation, which makes the system inconvenient to run. This needs to b...

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 SHANGHAI XIN YUE LIAN HUI ELECTRONICS TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products