path.h
来自「Solaris环境下的数据挖掘算法:birch聚类算法。该算法适用于对大量数据的」· C头文件 代码 · 共 68 行
H
68 行
/****************************************************************File Name: path.h Author: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995 Copyright(c) 1995 by Tian Zhang All Rights ReservedPermission to use, copy and modify this software must be grantedby the author and provided that the above copyright notice appear in all relevant copies and that both that copyright notice and this permission notice appear in all relevant supporting documentations. Comments and additions may be sent the author at zhang@cs.wisc.edu.******************************************************************/#ifndef PATH_H#define PATH_Hclass Node;class Path {public: int height; int stacktop; int *indexstack; Node **nodestack; Path(int size); ~Path(); void Push(int index, Node* node); void Pop(int &index, Node** node); Entry *TopLeafEntry() const; Node *TopLeaf() const; void Reset() {stacktop=-1;} short Exists() const {return stacktop==height-1;} void operator=(const Path& path); short operator==(const Path& path); short operator>(const Path& path); short operator<(const Path& path); short NextRightPath(); Node* NextRightLeafFreeSpace(Stat *Stats); short CollectSpace(Stat *Stats); void TakeoffPath(const Entry &ent); void InsertLeaf(Stat *Stats, Node* Root); void AddonPath(Stat *Stats, const Entry &ent, Node* Root); void AddonLeaf(Stat *Stats, const Entry &ent, Node* Root);};ostream& operator<<(ostream &fo,const Path& node);ofstream& operator<<(ofstream &fo,const Path& node);#endif PATH_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?