2.[問題描述] 編寫遞歸算法,在二叉樹中求位于先序序列中第K個位置的結(jié)點 [輸入] 按照先序序列的順序輸入該結(jié)點的內(nèi)容。其輸入abd eh cf i g 。輸入要求的位置 [輸出] 若二叉樹不空,按先序序列輸出,求出所求位置的結(jié)點 [存儲結(jié)構(gòu)] 采用二叉表存儲 [算法的基本思想] 采用遞歸方法建立和遍歷二叉樹。首先建立二叉樹的根結(jié)點,然后建立其左右子樹,直到空子樹為止,先序遍歷二叉樹時,先遍厲左子樹,后遍厲右子樹,最后訪問根結(jié)點并計算出二叉樹中葉子結(jié)點的數(shù)目和第K個位置的結(jié)點 #include<stdio.h> #include<malloc.h> struct node{ char info struct node*llink,*rlink } typedef struct node NODE
上傳時間: 2014-01-13
上傳用戶:zm7516678
This document provides guidelines for integrating a discrete high speed USB host controller onto a fourlayer desktop motherboard. The material covered can be broken into three main categories: Board design guidelines, EMI/ESD guidelines and front panel USB guidelines. Section 1.1 Background provides an explanation of the routing experiments and testing performed to validate the feasibility of 480 Megabits per second on an actual motherboard. Section 7 contains a design checklist that lists each design recommendation described in this document. High speed USB operation is described in the USB 2.0 Specification (http://www.usb.org/developers/docs.html).
標簽: integrating controller guidelines document
上傳時間: 2013-11-27
上傳用戶:電子世界
This document provides guidelines for integrating a discrete high speed USB host controller onto a fourlayer desktop motherboard. The material covered can be broken into three main categories: Board design guidelines, EMI/ESD guidelines and front panel USB guidelines. Section 1.1 Background provides an explanation of the routing experiments and testing performed to validate the feasibility of 480 Megabits per second on an actual motherboard. Section 7 contains a design checklist that lists each design recommendation described in this document. High speed USB operation is described in the USB 2.0 Specification (http://www.usb.org/developers/docs.html).
標簽: integrating controller guidelines document
上傳時間: 2015-11-18
上傳用戶:xhz1993
探討了pbl的格式,Pbl有四種塊類型,即Header、Free、Node、Data。Header塊的前四個字節(jié)一定是HDR*,F(xiàn)ree塊則是FRE*,Node塊是NOD*,Data塊是DAT*
上傳時間: 2015-11-26
上傳用戶:songyue1991
參考網(wǎng)上的提供的代碼,我把uCosII移植到MSP430f149上,分三個任務(wù),分別是485通訊,鍵盤掃描,LED顯示,可供參考!- Refers to code which on-line provides, I transplant uCosII to MSP430f149 on, divides three duties, respectively is 485 communications, scanning, LED demonstrated
標簽: on-line uCosII Refers which
上傳時間: 2013-12-11
上傳用戶:xieguodong1234
An AHB system is made of masters slaves and interconnections. A general approach to include all possible "muxed" implementation of multi layered AHB systems and arbitrated AHB ones can be thought as an acyclic graph where every source node is a master, every destination node is a slave and every internal node is an arbiter there must be one and only one arc exiting a master and one or more entering a slave (single slave verus multi-slave or arbitrated slave) an arbiter can have as many input and output connections as needed. A bridge is a special node that collapses one or more slave nodes and a master node in a new "complex" node.
標簽: interconnections approach general include
上傳時間: 2015-12-12
上傳用戶:lyy1234
DELPHIBOX The ImageHTML converts images to ASCII characters in HTML format. The output image is in three formats: true color, grayscale, and mono color. The ImageHTML is provided "AS IS " without any warranty of any kind, either express or implied. The entire risk as to the quality and performance of the software is with you. The author is not liable for any damages resulting from the use and misuse of the software. The ImageHTML is freeware. You may copy it as long as you copy all of files.
標簽: characters DELPHIBOX The ImageHTML
上傳時間: 2013-12-27
上傳用戶:zhichenglu
rtl8019參考,his package included three directories. One is for hardware, one is for software and one is for utility. I gather them from Internet or our server.
上傳時間: 2016-02-02
上傳用戶:xiaodu1124
These Simulink blocks contain transfer functions that model the pressure and flow transients for axisymmetric 2D viscous flow of a compressible fluid in a straight rigid circular cross section pipelines. Three models are available: (1) pressures at the ends (2) flow rates at the ends (3) pressure at one end and flow rate at the other Filtering is incorporated to reduce numerical oscillation (Gibbs phenomenon). See J. Dyn. Systems, Meas. & Control vol 122 (2000) pp. 153-162.
標簽: transients functions Simulink transfer
上傳時間: 2014-01-22
上傳用戶:Shaikh
Background maintenance is a frequent element of video surveillance systems. We develop Wallflower, a three-component system for background maintenance
標簽: surveillance maintenance Background Wallflower
上傳時間: 2016-02-22
上傳用戶:tianyi223
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1