Formally Analyzing Expected Time Complexity of Algorithms Using Theorem Proving

被引:0
作者
Osman Hasan
Sofiène Tahar
机构
[1] DepartmentofElectricalandComputerEngineering,ConcordiaUniversity
关键词
formal method; higher-order logic; probability theory; theorem proving; birthday paradox; hat-check problem; hiring problem;
D O I
暂无
中图分类号
TP301.6 [算法理论];
学科分类号
081202 ;
摘要
Probabilistic techniques are widely used in the analysis of algorithms to estimate the computational complexity of algorithms or a computational problem.Traditionally,such analyses are performed using paper-and-pencil proofs and the results are sometimes validated using simulation techniques.These techniques are informal and thus may result in an inaccurate analysis.In this paper,we propose a formal technique for analyzing the expected time complexity of algorithms using higher-order-logic theorem proving.The approach calls for mathematically modeling the algorithm along with its inputs,using indicator random variables,in higher-order logic.This model is then used to formally reason about the expected time complexity of the underlying algorithm in a theorem prover.The paper includes the higher-order-logic formalization of indicator random variables,which are fundamental to the proposed infrastructure.In order to illustrate the practical effiectiveness and utilization of the proposed infrastructure,the paper also includes the analysis of algorithms for three well-known problems,i.e.,the hat-check problem,the birthday paradox and the hiring problem.
引用
收藏
页码:1305 / 1320
页数:16
相关论文
共 49 条
[21]   Using the VIRT programming language for automatic theorem proving [J].
A. I. Baranovskii .
Cybernetics and Systems Analysis, 1999, 35 :918-929
[22]   Using the VIRT programming language for automatic theorem proving [J].
Baranovskii, AI .
CYBERNETICS AND SYSTEMS ANALYSIS, 1999, 35 (06) :918-929
[23]   Evaluation of anonymity and confidentiality protocols using theorem proving [J].
Tarek Mhamdi ;
Osman Hasan ;
Sofiène Tahar .
Formal Methods in System Design, 2015, 47 :265-286
[24]   Commonsense Reasoning Using Theorem Proving and Machine Learning [J].
Siebert, Sophie ;
Schon, Claudia ;
Stolzenburg, Frieder .
MACHINE LEARNING AND KNOWLEDGE EXTRACTION, CD-MAKE 2019, 2019, 11713 :395-413
[25]   Formalization of bond graph using higher-order-logic theorem proving [J].
Qasim, Ujala ;
Rashid, Adnan ;
Hasan, Osman .
ISA TRANSACTIONS, 2022, 128 :453-469
[26]   A Methodology for the Formal Verification of Dynamic Fault Trees Using HOL Theorem Proving [J].
Elderhalli, Yassmeen ;
Hasan, Osman ;
Tahar, Sofiene .
IEEE ACCESS, 2019, 7 :136176-136192
[27]   Formal Analysis of the Biological Circuits using Higher-order-logic Theorem Proving [J].
Abed, Sa'ed ;
Rashid, Adnan ;
Hasan, Osman .
PROCEEDINGS OF THE 35TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING (SAC'20), 2020, :3-7
[28]   DESIGN AND VERIFICATION OF PARITY CHECKING CIRCUIT USING HOL4 THEOREM PROVING [J].
Deniz, Elif ;
Aksoy, Kubra ;
Tahar, Sofiene ;
Zeren, Yusuf .
SIGMA JOURNAL OF ENGINEERING AND NATURAL SCIENCES-SIGMA MUHENDISLIK VE FEN BILIMLERI DERGISI, 2019, 10 (02) :245-252
[29]   Towards the formal performance analysis of multistate coherent systems using HOL theorem proving [J].
Murtza, Shahid Ali ;
Ahmed, Waqar ;
Rashid, Adnan ;
Hasan, Osman .
PROCEEDINGS OF THE INSTITUTION OF MECHANICAL ENGINEERS PART O-JOURNAL OF RISK AND RELIABILITY, 2023, 237 (01) :180-194
[30]   Formal analysis of the continuous dynamics of cyber-physical systems using theorem proving [J].
Rashid, Adnan ;
Hasan, Osman .
JOURNAL OF SYSTEMS ARCHITECTURE, 2021, 112