⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 path.h

📁 Solaris环境下的数据挖掘算法:birch聚类算法。该算法适用于对大量数据的挖掘。
💻 H
字号:
/****************************************************************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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -