{'fraction_non_alphanumeric': 0.011270491803278689, 'fraction_numerical': 0.0030737704918032786, 'mean_word_length': 5.691780821917808, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Towards Context Modeling for Algorithm Animation

Algorithm animation plays an important role in the education of computing and the development of algorithms. But the lack of explicit modeling of visualization specifications makes it difficult to reuse the algorithm implementations and the specifications. A context-aware algorithm animation framework named CA3F is proposed in this paper to solve the problem. In the CA3F framework, the algorithm execution is abstracted as the creation of algorithm contexts, while the algorithm animation is considered as the visualization of algorithms driven by the change of contexts. Algorithm contexts are modeled as visualization specification explicitly and, in consequence, an algorithm implementation becomes independent of the algorithm animation so as to enhance the reusability of the visualization specification. A group of various sort algorithm animations are developed to demonstrate and evaluate the use of CA3F framework.