unionfindnode.h

来自「datastucutre and algorithms, application」· C头文件 代码 · 共 19 行

H
19
字号
// nodes used in union/find trees

#ifndef unionFindNode_
#define unionFindNode_

using namespace std;


struct unionFindNode
{
   int parent;  // if true then tree weight
                // otherwise pointer to parent in tree
   bool root;   // true iff root

   unionFindNode()
      {parent = 1; root = true;}
};
#endif;

⌨️ 快捷键说明

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