基于短路机制的闰年判断的执行效率研究  

Research on the Execution Efficiency of Leap Year Judgment Based on Short Circuit Mechanism

在线阅读下载全文

作  者:雒晓霞 LUO Xiao-xia(Kunshan Second Vocational School,Jiangsu Province,Kunshan 215300,China;Kunshan Open University,Kunshan 215300,China)

机构地区:[1]江苏省昆山第二中等专业学校,昆山215300 [2]昆山开放大学,昆山215300

出  处:《价值工程》2024年第35期139-141,共3页Value Engineering

摘  要:闰年的判断是一个相对复杂的逻辑运算过程,逻辑运算中短路机制的运用可以提升判断的执行效率。本文通过对四种不同顺序组合的闰年和平年判断条件在一个判断周期内的判断次数进行了研究,发现了具有最高执行效率的逻辑表达式,提出了较为合理的判断程序代码。The determination of leap years is a relatively complex logical operation process,and the use of short-circuit mechanisms in logical operations can improve the execution efficiency of judgment.This article studies the number of judgments in a judgment cycle for four different combinations of leap year and normal year judgment conditions,and discovers the logical expression with the highest execution efficiency.A more reasonable judgment program code is proposed.

关 键 词:逻辑运算 短路机制 闰年判断 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象