#define M
typedef struct BTNode{
int keynum;
struct BTNode *parent;
KeyType key[m+
struct BTNode *ptr[m+
Record *recptr[m+
}BTNode
typedef struct{
BTNode *pt;
int I;
int tag;
}//Result;
Result SearchBTree(Btree T
p=T; q=NULL; found=FALSE; i=
while(p&&!found){
i=Search(p
if(i>
found=TRUE;
else{q=p;p=p
}
if(found) return (p
else return (q
}//SearchBTree
返回《數據結構》考研復習精編
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23905.html