The application relates to a time-effect balanced tree-based
data processing method and
system, and relates to a time-effect balanced tree-based
data processing method and
system which solves the problem that the node with the highest query frequency in a short period usually consumes a high cost on the balanced
tree structure of a computer, the single query consumption is usually fixed as logarithmic level time, the balanced tree lacks sensitivity to the query frequency and the time-effectiveness of recent queries, and the query time is too long each time. The application constructs a time-effect balanced tree, stores data according to the structure of the time-effect balanced tree, and the empty tree,
single node, left subtree and right subtree of the time-effect balanced tree are all time-effect balanced trees. Each node on the time-effect balanced tree comprises a retrieval key value pair, a time-effect weight and a
record query round, and the time-effect weight is calculated by a decay method. The unbalance degree, balance state and rotation mode of the time-effect balanced tree are defined. The
computer data processing is completed according to the definition, the time-effect balanced tree and the time-effect weight. The application belongs to the field of
computer data processing.