AVL tree-based data writing method and apparatus
A technology of data writing and AVL tree, which is applied in the computer field, can solve the problems of high performance overhead and achieve the effect of improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach
[0075] As a specific implementation manner, the above-mentioned judging module 300 may also include:
[0076] The positioning unit is used to determine the search path according to the size of the node value written in the data of the current concurrent write operation and the characteristics of the AVL tree, and locate the position of the second node actually written;
[0077] A calculation unit, configured to calculate the balance factor of the parent node of the second node, and recursively calculate the balance factors of other nodes upwards until the first node whose balance factor value is 2 or -2 is calculated;
[0078] an opening unit, configured to open the lock state of the first node, and make corresponding adjustments according to the value of the balance factor;
[0079] A release unit, configured to release the lock state of the first node after the write operation is completed.
[0080] As a specific implementation manner, the above-mentioned opening unit can a...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 