tree.h

来自「 关联规则fp算法」· C头文件 代码 · 共 37 行

H
37
字号
// Tree.h: interface for the CTree class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TREE_H__C46E4A30_0F74_4F41_A1D3_22636E0B1B7B__INCLUDED_)
#define AFX_TREE_H__C46E4A30_0F74_4F41_A1D3_22636E0B1B7B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/*----------------------------------------------------------------------
  Type Definitions 孩子兄弟链表 表示法
----------------------------------------------------------------------*/
typedef struct _fptnode {       /* --- frequent pattern tree node --- */
  struct _fptnode *succ;        /* pointer to successor (same item) */
  struct _fptnode *parent;      /* pointer to parent node */
  struct _fptnode *firstchild;  /* 第一个孩子节点 */
  struct _fptnode *next_sibling;/* 下一个兄弟节点 */
  CString         item;         /* 频繁项目 */
  int             count;        /* 支持数 */
}FPTNODE;	                      /* (frequent pattern tree node) */

class CTree  
{
public:
	CTree();
	virtual ~CTree();
	
public:
	BOOL isEmpty();
	BOOL setNull();
	FPTNODE *tree;
};

#endif // !defined(AFX_TREE_H__C46E4A30_0F74_4F41_A1D3_22636E0B1B7B__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?