Things to Know when Implementing KBO

  • Authors:
  • Bernd Löchner

  • Affiliations:
  • FB Informatik, Technische Universität Kaiserslautern, Kaiserslautern, Germany

  • Venue:
  • Journal of Automated Reasoning
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

The Knuth---Bendix ordering (KBO) is one of the term orderings in widespread use. We present a new algorithm to compute KBO, which is (to our knowledge) the first asymptotically optimal one. Starting with an `obviously correct' version, we use program transformation to stepwise develop an efficient version, making clear the essential ideas, while retaining correctness. By theoretical analysis we show that the worst-case behavior is thereby changed from quadratic to linear. Measurements show the practical improvements of the different variants.