A PERFORMANCE MEASUREMENT BETWEEN TRADITIONAL BINARY SEARCH AND BUIATTI BINARY SEARCH ALGORITHMS
DOI:
https://doi.org/10.61164/nzkwct67Keywords:
Busca Binária; Otimização de Algoritmos; Medição de Desempenho; Algoritmos Adaptativos; Busca Binária Buiatti, Binary Search; Algorithm Optimization; Performance Measurement; Adaptive Algorithms; Buiatti Binary Search., Búsqueda binaria; Optimización de algoritmos; Medición del rendimiento; Algoritmos adaptativos; Búsqueda binaria BuiattiAbstract
This undergraduate research project presents a detailed performance measurement comparing the traditional binary search algorithm with Buiatti binary search, an innovative adaptive variation. Although traditional binary search is worst-case optimal for comparisons (complexity O(log n)), its fixed symmetric splitting strategy does not exploit statistical properties of the data distribution or access patterns that could reduce the average search cost. In practical scenarios where data exhibits non-uniform distributions (such as clusters) or where repetitive access patterns exist, this independence from the data represents a missed optimization opportunity. In this context, Buiatti binary search emerges as a promising alternative, designed to optimize the average case by introducing local verification heuristics before classical splitting. The methodology adopted, based on classic works such as Cormen et al. (2009) and Knuth (1998), consisted of the implementation and comparative analysis of both versions. Empirical tests using random search strategies and control points revealed that, although both maintain logarithmic complexity, the Buiatti approach offers measurable performance gains and greater stability in reference locality scenarios, validating its potential for specific applications.
Downloads
References
BENTLEY, Jon. Programming Pearls. 2. ed. Addison-Wesley, 1999.
BLOCH, Joshua. Effective Java. 3. ed. Addison-Wesley, 2018.
CORMEN, Thomas H. et al. Algoritmos: Teoria e Prática. 3. ed. Rio de Janeiro: Elsevier, 2012.
CORMEN, Thomas H. et al. Introduction to Algorithms. 3. ed. MIT Press, 2009.
GAMMA, Erich et al. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, 1994.
ISO/IEC. ISO/IEC 14882:2020 - Programming Language C++. International Organization for Standardization, 2020.
KNUTH, Donald E. The Art of Computer Programming, Volume 3: Sorting and Searching. 2. ed. Addison-Wesley, 1998.
LUTZ, Mark. Programming Python: Powerful Object-Oriented Programming. 4. ed. O'Reilly Media, 2011.
ORACLE. The Java™ Tutorials. Oracle, 2023. Disponível em: https://docs.oracle.com/javase/tutorial/. Acesso em: 10 out. 2023.
PYTHON SOFTWARE FOUNDATION. Python Language Reference. Disponível em: https://docs.python.org/3/reference/. Acesso em: 10 out. 2023.
SEDGEWICK, Robert; WAYNE, Kevin. Algorithms. 4. ed. Addison-Wesley, 2011.
STROUSTRUP, Bjarne. The C++ Programming Language. 4. ed. Addison-Wesley, 2013.
TANENBAUM, Andrew S. Estruturas de Dados Usando C. Pearson, 2007.
VAN ROSSUM, Guido; DRAKE, Fred L. Python Tutorial. Python Software Foundation, 2023. Disponível em: https://docs.python.org/3/tutorial/. Acesso em: 10 out. 2023.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Reane Franco Goulart, Roberto Caetano Buiatti

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish in this journal agree to the following terms:
Authors retain copyright and grant the journal the right of first publication, with the work simultaneously licensed under the Creative Commons Attribution License, which permits the sharing of the work with proper acknowledgment of authorship and initial publication in this journal;
Authors are authorized to enter into separate, additional agreements for the non-exclusive distribution of the version of the work published in this journal (e.g., posting in an institutional repository or publishing it as a book chapter), provided that authorship and initial publication in this journal are properly acknowledged, and that the work is adapted to the template of the respective repository;
Authors are permitted and encouraged to post and distribute their work online (e.g., in institutional repositories or on their personal websites) at any point before or during the editorial process, as this may lead to productive exchanges and increase the impact and citation of the published work (see The Effect of Open Access);
Authors are responsible for correctly providing their personal information, including name, keywords, abstracts, and other relevant data, thereby defining how they wish to be cited. The journal’s editorial board is not responsible for any errors or inconsistencies in these records.
PRIVACY POLICY
The names and email addresses provided to this journal will be used exclusively for the purposes of this publication and will not be made available for any other purpose or to third parties.
Note: All content of the work is the sole responsibility of the author and the advisor.
