【正文】
raversal。 traversal。在遍歷的過(guò)程中更加深入的了解二叉樹(shù)遍歷的算法過(guò)程及其應(yīng)用,以至于充分的認(rèn)識(shí)到二叉樹(shù)遍歷的優(yōu)越性。樹(shù)的遍歷是指一次訪問(wèn)樹(shù)的所有節(jié)點(diǎn)的過(guò)程。優(yōu)集學(xué)院學(xué)期論文二叉樹(shù)的遍歷及其應(yīng)用摘要:二叉樹(shù)是一種特殊的樹(shù),它在計(jì)算機(jī)科學(xué)領(lǐng)域提供了大量的實(shí)際應(yīng)用。二叉樹(shù)依照需求可以通過(guò)陣列以及鏈接鏈表來(lái)實(shí)現(xiàn)。遍歷二叉樹(shù)有三種方式,分別是先序遍歷,中序遍歷,后序遍歷。關(guān)鍵詞:二叉樹(shù),遍歷,先序遍歷,中序遍歷,后序遍歷Traversing a binary tree and its applicationAbstract:A binary tree is a special type of tree that offers a lot of practical applications in the field of puter trees can be implemented by using arrays as well as linked lists,depending upon the requirements. Traversing a tree refers to the process of visiting all the nodes of the tree are three ways in which you can traverse a binary are inorder,preorder,and postorder traversal. In the process of binary,I deeply realise the arithmetic process and theappliance of also realise the superiority of traversing a binary tree. Key words:binary tree。inorder traversal。 postorder traversal0引言所謂遍歷,是指沿著某條搜索路線,依次對(duì)樹(shù)中每個(gè)結(jié)點(diǎn)均做一次且僅做一次訪問(wèn)。 遍歷在二叉樹(shù)上最重要的運(yùn)算之一,是二叉樹(shù)上進(jìn)行其它運(yùn)算之基礎(chǔ)。遍歷是二叉樹(shù)算法設(shè)計(jì)中經(jīng)典且永恒的話題。遞歸算法具有簡(jiǎn)練、清晰等優(yōu)點(diǎn),但因其執(zhí)行過(guò)程涉及到大量的堆棧使用,難于應(yīng)用到一些嚴(yán)格限制堆棧使用的系統(tǒng),也無(wú)法應(yīng)用到一些不支持遞歸的語(yǔ)言環(huán)境[9]。這里提到的