Pré-Publication, Document De Travail Année : 2024

Theoretical Analysis of Branch Prediction in the Sliding Window Algorithm

Résumé

We revisit the classical sliding window pattern matching algorithm from a computer architecture point of view and conduct a theoretical study to answer the question: what is the impact of adding a simple branch prediction mechanism to the model of computation? Assuming that the pattern is fixed and the text is random, we give precise estimations of the number of mispredictions produced by two variants of this algorithm using local predictors. This case study introduces key tools based on automata and Markov chain theories, which are promising for the analysis of more efficient algorithms and more advanced branch prediction schemes.

Fichier principal
Vignette du fichier
Mispredictions_Sliding.pdf (979.84 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Licence

Dates et versions

hal-05170281 , version 1 (18-07-2025)

Licence

Identifiants

  • HAL Id : hal-05170281 , version 1

Citer

Cyril Nicaud, Carine Pivoteau, Stéphane Vialette. Theoretical Analysis of Branch Prediction in the Sliding Window Algorithm. 2024. ⟨hal-05170281⟩
173 Consultations
207 Téléchargements

Partager

  • More