Visualization Method for Data Structure Evolution in Program Debugging
Data structure carries important information regarding program execution in complicated and abstract evolution processes.To address the difficulty encountered by beginners in understanding the evolution process of data structures,this study proposes a method for visualizing the data structure evolution in program debugging.Initially,during debugging,the data structures are represented using component expressions.Subsequently,visual views are generated using configuration tables and layout functions based on component expressions.After single-step debugging,the evolution behavior of the components is determined by comparing the visual data before and after single-step debugging.A data structure evolution model is constructed using the finite state machine theory.The execution of this model causes the components to evolve while generating visual actions.This model uses animation units to perform visual actions and visualize the evolution of data structures,helping beginners understand the execution process of data structure-related programs.The experimental results of applying this method to a data structure evolution visualization framework,StructV,and to the development of an online visualization programming training cloud platform show that this process can effectively reduce the difficulty encountered by beginners in understanding data structure evolution and improve the efficiency of program debugging during programming training.
program debuggingdata structure visualizationcomponent evolution behaviorfinite state machinedata structure evolution model