摘要
数据结构内容的高抽象性、强逻辑性和算法复杂性始终是学生学习的一个难点。为便于学生理解算法,将算法结果可视化,即输出直观的图像。以建立并输出二叉树的图像为例介绍如何层次遍历输出描述二叉树的DOT文件,在Graphviz软件中查看二叉树图像结果。
High abstraction, strong logic and complex algorithm of data structure are always difficult for students to learn. In order to facilitate students to understand the algorithm, the algorithm results are visualized, that is, the output of intuitive images.Taking the image of building and outputting binary tree as an example, this paper introduces how to output the DOT file of describing binary tree hierarchically and view the result of binary tree image in Graphviz software.
出处
《电脑知识与技术》
2018年第12X期247-249,共3页
Computer Knowledge and Technology