When a bug is detected by testing a quantum program on a quantum computer, we want to determine its location to fix it. To locate the bug, the quantum program is divided into several segments, and each segment is test...
详细信息
ISBN:
(纸本)9798400705007
When a bug is detected by testing a quantum program on a quantum computer, we want to determine its location to fix it. To locate the bug, the quantum program is divided into several segments, and each segment is tested. However, to prepare a quantum state that is input to a segment, it is necessary to execute all the segments ahead of that segment in a quantum computer. This means that the cost of testing each segment depends on its location. We can also locate a buggy segment only if it is confirmed that there are no bugs in all segments ahead of that buggy segment. Since a quantum program is tested statistically on the basis of measurement results, there is a tradeoff between testing accuracy and cost. Although these characteristics are unique to quantum programs and complicate locating bugs, they have not been investigated. We suggest for the first time that these characteristics should be considered to efficiently locate bugs. We are also the first to propose a bug-locating method that takes these characteristics into account. The results from experiments indicate that the bug-locating cost, represented as the number of executed quantum gates, can be reduced with the proposed method compared with naive methods.
Maintenance is the most labor-intensive stage in the Software System Development Life Cycle (SDLC). When an error is detected, an Automatic program Repair (APR) system can locate the error by utilizing fault predictio...
详细信息
—When a bug is detected by testing a quantum program on a quantum computer, we want to determine its location to fix it. To locate the bug, the quantum program is divided into several segments, and each segment is te...
详细信息
This study utilized a VR eye-tracker to analyze visual attention as well as compare the differences in internal behavioral cognition during program debugging assignments. In this study, 40 students were recruited as p...
详细信息
This study utilized a VR eye-tracker to analyze visual attention as well as compare the differences in internal behavioral cognition during program debugging assignments. In this study, 40 students were recruited as participants who studied C++ programming language courses for at least one year in the department of computer science. Forty participants (27 men and 13 women) were categorized into field independence (FI) and field dependence (FD) groups based on their Group Embedded-Figures Test (GEFT) scores. Based on defined the regions of interest (ROIs), this studyused eye movement indicators to discussthe difference in visual attention between various ROIs during the program debugging task. The results indicated that different participants' cognitive styles led to different gaze sequences of viewing ROIs;no significant difference was identified in students' visual fixation on viewing the ROIs of programs between the FI and FD groups based on the latency of first fixation (LFF);a partly significant difference was identified in students' visual fixation on viewing the ROIs of programs between the FI and FD groups based on the duration of first fixation (DFF);in the FI group, students showed longer fixation durations and fixation counts than their FD counterparts on viewing the ROIs of programs;different gender have different gaze sequences of viewing ROIs;a partly significant difference was identified in students' visual fixation on viewing the ROIs of programs by gender based on the LFF and DFF;man students showed longer fixation durations than women students in viewing the ROIs of programs based on the total fixation duration (TFD);and based on fixation counts (FC), there were inconsistent comparison results in FC by gender in viewing the ROIs of programs.
In software engineering, debugging is a most tedious job. Finding and correcting the bug takes much more time and effort than coding. Many researchers have worked for making the debugging process easier. Man...
详细信息
—We propose an effective parallel program debugging approach based on the timing annotation technique. With prevalent multi-core platforms, parallel programming is required to fully utilize the computing power. Howev...
详细信息
The immersion of virtual reality (VR) has transcended the existing experience of multimedia teaching. This paper aims to design a virtual reality eye tracker device to analyze the cognitive process of program debuggin...
详细信息
This study explores students' cognitive processes while debuggingprograms by using an eye tracker. Students' eye movements during debugging were recorded by an eye tracker to investigate whether and how high-...
详细信息
This study explores students' cognitive processes while debuggingprograms by using an eye tracker. Students' eye movements during debugging were recorded by an eye tracker to investigate whether and how high- and low-performance students act differently during debugging. Thirty-eight computer science undergraduates were asked to debug two C programs. The path of students' gaze while following program codes was subjected to sequential analysis to reveal significant sequences of areas examined. These significant gaze path sequences were then compared to those of students with different debugging performances. The results show that, when debugging, high-performance students traced programs in a more logical manner, whereas low-performance students tended to stick to a line-by-line sequence and were unable to quickly derive the program's higher-level logic. Low-performance students also often jumped directly to certain suspected statements to find bugs, without following the program's logic. They also often needed to trace back to prior statements to recall information, and spent more time on manual computation. Based on the research results, adaptive instructional strategies and materials can be developed for students of different performance levels, to improve associated cognitive activities during debugging, which can foster learning during debugging and programming.
Fault locating is a time-consuming process. In a previous paper, Liu proposed an algorithm named bounded debugging via multiple predicate switching (BMPS)[1], which try to find a successful execution trace by switchin...
详细信息
Automated program Repair (APR) holds the promise of alleviating the burden of debugging and fixing software bugs. Despite this, developers still need to manually inspect each patch to confirm its correctness, which is...
详细信息
暂无评论