用三种遍历方法遍历二叉树,写出遍历结果,并总结三种...
《数据结构》
有二叉树如图1所示:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAACmCAIAAABP3E3GAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nO2deXxUVbbv1z41pMaMFTKSpDLP80QGCISxVUBAsdVuvQ7P+1rb7mtfvb7X9kh79dK296r9bG2xbbvBARBBlDEQE0jIQAaSEDLPqUxFKjWP5+z3x0mKojJBCCSpnO9H+VSqTp3aZ539O3tYe6+FMMbAcNewmhchZGdqjDFCiP5oAUrGcDsQC12AZYSdHhh5LCHsH3IM9xLa+IxgFj/shS7AcsFsNut0OrlcbjAYvL29hUKhk5PTQheK4VZhdDKfTB6NIIR0Ol1JSWl9fR1BoKGhYYVCERMTo9frpUFBq7KyfH19rV9ZsHIzzAbT75pPKIqCm2t8XV3dp3//VK3RhIaGREZGSCSeGGO9Xt/S3Nza1jamHNu5Y+d9993HDOgXOYxO5hPamPS/ZrP52LFj+/fvz8/P37Vrl0QiYbFYBEHQB5AkqdVqL1688Omnn6alpT/33HMuLi70SRi1LEIYncwnGGPaniaT6cSJE18d/urh3Q/fd999bBabtvK4BGibIwCAa9ea9uzZExMT88ILL1ilwrDYYOaF5xm6NWhqajp8+PC6/HUbN25ks6yDQKyRNZ767tvyq73GcVFBeHj4U089VVVVVVJSYjabF7DkDDPA6GT+MZlMBQUFzs7OmzZt4vN5GGEMmDSprpYe++Prr/3s5//+wZEyNQBgBBgIgkhPT8/MzDxx4sTw8PBCl51hahidzCd0Y6LRaKqqqtLT0318fDBgAMBmbfXJT//w+nt9rt4rTKRKqaMAAUIUYAAQi8UZGRlyuby/v5/pBi9OGJ3MMwihtra2vr6+6OhoFosetQNGWOAd9dhLe//zlacDeSw0PjahAFO0MPz8/FgsVkdHB0mSC1t+hilh/CfzT2dnp6ura2Bg4LgHBTDBEcZk5scAIEs1QQ/lEf3/+NSWs7Mzm81ubGw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FAyAxT5h2x7ekRjmR5AkI43FANPvmlcwsJ0EK3yDrrcVHfyqQMWL/Y8/PCar/MfeV18KTIhPXbXp/mjL+DQvhvHZX3tuhKVEgDEzC7w4YHQyfyCESN1QW82JLy8W11ObtqyVN1V9+eXg9q27fxciO/LPjz99v7YpY6XCyGGPDzcwBjxJK3RISwowwggAUwtyKQx2MDq5M6xuRgwIEMK6tvrqkJWP/v73ua58jikj8cqZv7311j+e3fv6G/vuM5tNhu6Tz//H1+RE+iI0SSYYEBDYth1Btr01pnVZIBid3BHY5gXGFMn2yHrwR0/vSKf0Q5UXGodURsQNX7/By52HCRbLicVn8bgETKgE46ndhvQIHyEEBItgI0Qggs7aQv8ao5UFgNHJHXNTvcUkaQHAFpNueLC/R66zjPYWnC6pHdILf/JEhCePzq4K+EYyr0n1HiNAlMWs1+vNpEWt11tIk0Y1Nqbi8vgCJzbByGRBYHRyZyAM1HjfCAEgIJz4IoRYIteAvC1eFpKijNrs1amnzlwbUUKEJ7AFPIIgKIwRLZZJk1n0EH+4ueLtvX8sbpIp5d29g8bf/MtD7/hF/a9Xf/dYTjCXWbqyEDA6uTNsKztChHmk+PAH+oYAFnFjfMFiEYiPv//y7WIE5Fhzy7CGoD+dUiiAMAKeiyQhNZPwGqUIgoWAIimWq1+QREiMz5QxQrnXMDq5Y8aH2QBs3orA8CRfr4hgHxaayE6PbQ4AoFScIZ3J3w3R45Mp3ScIgat/xOMvvophotWxXVbPtCYLAZPX4U4ZNyBCQJo1Gh1HIHSiJ36nxqJS6PhuYjamVxpjOlek3dnGvSeTdGJ3MMM9g9EJA8PsMOtWGBhmh9EJA8PsMDphYJgdRicMDLPz/wE7DRPqZyyIbAAAAABJRU5ErkJggg==
(1)用三种遍历方法遍历二叉树,写出遍历结果,并总结三种遍历方法的特征。
(2)选择其中的一种遍历结果,采用至少两种排序方法将其按从大到小的顺序排列。
(3)简要比较和评价所选排序算法。
作业要求:
(1)排序方法需描述算法思路并用程序描述算法,程序请添加注释;
(2)排序算法的评价和比较主要从复杂度入手。
页:
[1]