Research Article

A Novel Mathematical Formula for Retrieval Algorithm

Table 1

Data structure of a binary tree.

FieldData typeMeaning

Formula elementStringOperator, variable, or constant
CategoryStringOPS (satisfying the commutative law), VAR (variable), OPU (not satisfying the commutative law), and CON (constant)
PriorityIntegerOperator priority (the larger the value is, the higher the priority is; maximum machine number if priority is for variables and constants)
CombinationStringLR (left-right), UD (up-down), and SG (single)
Node heightIntegerThe height of the binary tree that regards current node as root
Structure codeStringStructure code of current node structure code of its left child + node height + its structure code of right child