Verifying Time Complexity of Binary Search using Dafny

08/06/2021
by   Shiri Morshtein, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/05/2018

Verifying Asymptotic Time Complexity of Imperative Programs in Isabelle

We present a framework in Isabelle for verifying asymptotic time complex...
research
02/24/2011

New Worst-Case Upper Bound for X3SAT

The rigorous theoretical analyses of algorithms for exact 3-satisfiabili...
research
08/30/2010

Improving the Performance of maxRPC

Max Restricted Path Consistency (maxRPC) is a local consistency for bina...
research
08/14/2023

Extend Wave Function Collapse to Large-Scale Content Generation

Wave Function Collapse (WFC) is a widely used tile-based algorithm in pr...
research
06/19/2013

Verifying the Steane code with Quantomatic

In this paper we give a partially mechanized proof of the correctness of...
research
08/27/2017

Plain stopping time and conditional complexities revisited

In this paper we analyze the notion of "stopping time complexity", infor...
research
10/16/2018

A Scalable, Trustworthy Infrastructure for Collaborative Container Repositories

We present a scalable "Trustworthy Container Repository" (TCR) infrastru...

Please sign up or login with your details

Forgot password? Click here to reset