The invention discloses a universal
tree structure storage
analysis method, relates to the field of computer application and solves the technical problems of huge calculated amount, complex storage code, complex logic, non-visual data
tree structure and the like in the prior art since a
recursion way is adopted to analyze
tree structure data. The method mainly comprises the following steps that: through a
temporary variable, circularly traversing a data
list generated by hierarchy associated data; reading the root data of the data
list; utilizing
tree node characteristics in the data
list to combine with a temporary
data set to construct a threshold value condition; setting a
tree code for the
tree node which conforms to the threshold value condition in a progressive increase way in sequence; storing the
tree code corresponding to the current
tree node in the data list into the temporary
data set; after circulation ends, obtaining an integral tree temporary
data set relative to the data list; and searching the temporary data set by corresponding to the root data to obtain the root tree node and all subtree nodes of the tree structure. The method has the characteristics of being simple, easy in use and high in
maintainability and maneuverability.