摘要 |
A computing device and method for searching for parameters in a data model uses a first hash table to store index values of all parameter names in a data model, and uses a second hash table to store index values of data paths of duplicate parameters names in the data model, and changes the comparison sequence when searching for parameters in the data model. That is, comparing beginning from the last character in the input data string, if a leaf node in the data model matches the last character, then comparing parent nodes of the leaf node with the remaining characters of the input data string. Then, a data path of a parameter having a unique name is located according to the first hash table. Furthermore, data paths of parameters having duplicate names is located according to the second hash table. |