Verifying time complexity of binary search using Dafny

2Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.

Abstract

Formal software verification techniques are widely used to specify and prove the functional correctness of programs. However, nonfunctional properties such as time complexity are usually carried out with pen and paper. Inefficient code in terms of time complexity may cause massive performance problems in large-scale complex systems. We present a proof of concept for using the Dafny verification tool to specify and verify the worst-case time complexity of binary search. This approach can also be used for academic purposes as a new way to teach algorithms and complexity.

Cite

CITATION STYLE

APA

Morshtein, S., Ettinger, R., & Tyszberowicz, S. (2021). Verifying time complexity of binary search using Dafny. In Electronic Proceedings in Theoretical Computer Science, EPTCS (Vol. 338, pp. 68–81). Open Publishing Association. https://doi.org/10.4204/EPTCS.338.9

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free