基于ACL2的渐近复杂性建模
Modeling Asymptotic Complexity Using ACL2
摘要:
渐近复杂性理论提供了一种方法来描述程序的行为,即执行的计算步骤或计算资源的使用的界限。我们描述的工作,使用ACL2证明在一个简单的命令式程序设计语言嵌入通过在ACL2的操作语义的程序实现的复杂性。同时证明了程序的函数性质及其复杂性。我们说明我们的方法,通过描述证明二进制搜索算法,证明它实现二进制搜索排序列表,它是O(log(n)),其中n是列表的长度。
英文摘要:
The theory of asymptotic complexity provides an approach to characterizing the behavior of programs in terms of bounds on the number of computational steps executed or use of computational resources. We describe work using ACL2 to prove complexity properties of programs implemented in a simple imperative programming language embedding via an operational semantics in ACL2. We simultaneously prove functional properties of a program and its complexity. We illustrate our approach by describing proofs about a binary search algorithm, proving both that it implements binary search on a sorted list and that it is O(log(n)), where n is the length of the list.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。