计算机应用与软件2016,Vol.33Issue(12):230-233,4.DOI:10.3969/j.issn.1000-386x.2016.12.055
Word文档中二叉树的自动绘制方法研究
ON AUTOMATIC BINARY TREE DRAWING METHOD IN WORD DOCUMENTS
摘要
Abstract
Aiming at the problem that the Word documents cannot automatically draw the binary tree at present yet,we first studied the existing general binary tree drawing algorithms,and compared and analysed some binary tree drawing algorithms such as Knuth,TR,WS,etc ., then we selected TR algorithm,it has good drawing effect and high efficiency,to be applied in automatic binary tree drawing in Word documents.We designed the drawing macro DrawTree with VBA programming,thus achieved the automatic binary tree drawing in Word documents.Experiments showed that as long as the first order and post order sequences of a binary tree are given,the conceived binary tree can be drawn automatically in Word documents by using macro DrawTree.关键词
静态链表/绘树算法/VBA宏/Word文档Key words
Static linked list/Algorithm of drawing tree/Visual Basic for/Applications/Word document分类
信息技术与安全科学引用本文复制引用
孙发军,刘建国..Word文档中二叉树的自动绘制方法研究[J].计算机应用与软件,2016,33(12):230-233,4.基金项目
国家自然科学青年科学基金项目(41405083);湖南省教育厅教改项目(湘教通(2014)247号-465)。 ()