期刊文献+

C语言小程序算法的表示 被引量:3

Express the algorithm of a small program in C
在线阅读 下载PDF
导出
摘要 在自动评判程序中的逻辑错误时,一个关键问题是正确表示程序的算法,并解决多样性问题.围绕算法的定义,提出用变量的源变量列表(VSV)和单变量访问流图(SVAF)共同表示程序的算法.其中VSV用于描述变量间的计算关系,SVAF用于描述每个变量的操作方式、次序以及相关的程序控制结构.经过规格化操作,可消除VSV和SVAF中因语句次序、临时变量、特殊赋值语句以及循环语句等引发的多样性问题. In ovder to analyze and find out logic errors in program automatically,it is must to express the algorithm of the program in unified form.According to the definition of algorithm,this paper talks about how to express the algorithm with Variable's source variables' list(VSV) and Single variable accessed flow(SVAF) from different sides,and how to normalize.VSV is used for expressing the relationships among the variables when doing calculate.And SVAF is used for expressing the access type,access order,and control flow used of every variable.And the multiform problems,which were caused by sentences(and blocks) order,using temporary variables unlimited,special assignment statements,and loop statements,were removed after normalization.
出处 《天津理工大学学报》 2011年第3期33-36,共4页 Journal of Tianjin University of Technology
基金 天津理工大学教学基金(YB08-17)
关键词 算法的表示 算法多样性 单变量访问流图 变量源变量列表 算法规格化 express the algorithm multiform of the algorithm single variable accessed flow variable's source variables' list uniform the algorithm
  • 相关文献

参考文献6

  • 1Yasuhiro Ajiro, Kazunori Ueda. Kima-an automated error correction system for concurrent logic programs [ J 3. Auto- mated Software Engineering, 2002, 9( 1 ) : 67-94.
  • 2Simeon C Ntafos. A comparison of some structural testing strategies[ J]. IEEE Transactions on Software Engineer- ing, 1988, 14(6), 868-874.
  • 3Phil Stocks, David Carrington. A framework for specifica- tion-based testing [ J ]. IEEE Transactions on Software En- gineering, 1996, 22(11), 777-793.
  • 4Henry Muccini, Antonia Bertolino, Paola Inverardi. Using software architecture for code testing[ J ]. IEEE Transac- tions on Software Engineering, 2004, 30 ( 3 ) , 160-171.
  • 5Zahira Ammarguellat. A control -flow normalization algo- rithm and its complexity [ J ]. IEEE Transactions on Soft- ware Engineering, 1992, 18 (3) , 237- 251.
  • 6Thomas H Cormen,Charles E Leiserson, Ronald L Rivest,等.算法导论[M].北京:机械工业出版社,2006.

共引文献9

同被引文献10

引证文献3

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部