{"title":"Probabilistic Modeling for Conditional Statements","authors":"Alaa Ghazi, Yasir Hashim","doi":"10.53799/ajse.v22i3.841","DOIUrl":null,"url":null,"abstract":"A new mathematical framework is proposed in this study to comprehend the impact of program architecture on input random variables, the IF statement was the main topic. The primary idea that is theoretically and experimentally supported in this study is that the part of the joint pmf of a collection of random variables that represents the condition will be shifted to the part that represents the action. After sorting two random variables, the framework is used with four random variables, and the theoretically produced results were realistically validated. The study's equations can be applied to assessing probabilistic models of various sorting algorithms or other intricate program structures. This may also result in future investigations formalizing more precise execution time expectations.","PeriodicalId":224436,"journal":{"name":"AIUB Journal of Science and Engineering (AJSE)","volume":"52 3","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-12-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"AIUB Journal of Science and Engineering (AJSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.53799/ajse.v22i3.841","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
A new mathematical framework is proposed in this study to comprehend the impact of program architecture on input random variables, the IF statement was the main topic. The primary idea that is theoretically and experimentally supported in this study is that the part of the joint pmf of a collection of random variables that represents the condition will be shifted to the part that represents the action. After sorting two random variables, the framework is used with four random variables, and the theoretically produced results were realistically validated. The study's equations can be applied to assessing probabilistic models of various sorting algorithms or other intricate program structures. This may also result in future investigations formalizing more precise execution time expectations.
本研究提出了一个新的数学框架,以理解程序结构对输入随机变量的影响,其中 IF 语句是主要课题。本研究中得到理论和实验支持的主要观点是,随机变量集合的联合 pmf 中代表条件的部分将转移到代表动作的部分。在对两个随机变量进行分类后,该框架被用于四个随机变量,理论上得出的结果得到了现实验证。本研究的方程可用于评估各种排序算法或其他复杂程序结构的概率模型。这也可能导致未来的研究正式确定更精确的执行时间预期。