Various parameter values are provided in the form of data tables, where data keys are ordered and unevenly spaced in general, for real‐time simulation of dynamic systems. However, most parameter values required for simulation do not explicitly exist in data tables. Thus, unit intervals, including parameter values, are searched rather than the data keys. Since real‐time constraint enforces use of a fixed step size in integration of system differential equations because of the inherent nature of input from and output to real hardware, the worst case of iterated probes in searching algorithms is the core measure for comparison. The worst case is expressed as Big O. In this study, conventional bisection, interpolation, and fast searches are analyzed and compared in Big O as well as the newly developed searching algorithms: modified fast search and modified regular falsi search. If the criterion is actual execution time required for searching, most numerical tests in this paper show that bisection search is superior to the others. Interpolation search and its variations show better performance in the case of linear or near linear data distribution than bisection search. The numerical tests show that modified regular falsi search is faster than the other interpolation searches in either expected time or worst cases. Given parameter tables should be carefully examined for their data distribution in order to determine the most appropriate searching algorithm for the application.
[1]
F. Warren Burton,et al.
Expected Complexity of Fast Search with Uniformly Distributed Data
,
1981,
Inf. Process. Lett..
[2]
S. Yoon.
A study of searching algorithms for real-time simulation of a dynamic system
,
1996
.
[3]
Gaston H. Gonnet,et al.
An algorithmic and complexity analysis of interpolation search
,
2004,
Acta Informatica.
[4]
F. Warren Burton,et al.
A Robust Variation of Interpolation Search
,
1980,
Inf. Process. Lett..
[5]
Samuel D. Conte,et al.
Elementary Numerical Analysis: An Algorithmic Approach
,
1975
.
[6]
Yehoshua Perl,et al.
Understanding the Complexity of Interpolation Search
,
1977,
Inf. Process. Lett..
[7]
Leon S. Levy.
An Improved List-Searching Algorithm
,
1982,
Inf. Process. Lett..