講演抄録/キーワード |
講演名 |
2004-11-25 16:30
変数更新の回数と分散に基づくプログラムのメンタルシミュレーションコスト評価 ○石黒誉久・井垣 宏・中村匡秀・門田暁人・松本健一(奈良先端大) |
抄録 |
(和) |
理解しやすいプログラムを作成することは,プログラムの信頼性や保守性を向上させるうえで重要である.本稿では,プログラム理解性を評価するための一つの側面として,プログラムのメンタルシミュレーション に着目する.以前の研究でメンタルシミュレーションの仮想モデル(VMSM)を開発し,バックトラック距離が,メンタルシミュレーションのコストに大きく影響することが示された.しかし,後の実験でバックトラック距離だけではうまくコストが表せないような問題が存在する.本稿では,プログラム中の変数の更新がメンタルシミュレーションコストに大きく影響していることを考え,変数の更新頻度の総和と変数の更新頻度の分散による新たな動的メトリクスを提案する.実験の結果,提案メトリクスは,従来のVMSMで説明できなかったいくつかの問題を説明することができた. |
(英) |
This paper presents a method to estimate the cost of mental simulation of programs. In our previous research, we developed a model called virtual mental simulation model (VMSM). It showed that a distance of simulation backtrack significantly influences the cost of mental simulation. Through the subsequent experiments, however, we have found some cases that are not well justified by the distance only. In this paper, we show that updates of variables in a program also have significant correlation to the mental simulation. Then, we propose two new dynamic metrics: Sum in Number of Variable Updates and Variance in Number of Variable Updates. The experimental evaluation shows that the proposed metrics well explain the cases the previous VMSM cannot cover. |
キーワード |
(和) |
プログラム理解性 / メンタルシミュレーション / VMSM / / / / / |
(英) |
program comprehension / mental simulation / VMSM / / / / / |
文献情報 |
信学技報, vol. 104, no. 466, SS2004-32, pp. 37-42, 2004年11月. |
資料番号 |
SS2004-32 |
発行日 |
2004-11-18 (SS) |
ISSN |
Print edition: ISSN 0913-5685 |
PDFダウンロード |
|