xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 3KB
    文件類型: .cpp
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-04
  • 語言: C/C++
  • 標簽:

資源簡介

分支限界法中的優先隊列式分支限界法解裝載問題

資源截圖

代碼片段和文件信息

#include???
using?namespace?std;??
????
class?MaxHeap;???
class?HeapNode;???
????
class?bbnode{??
friend?void?AddLiveNode(MaxHeap&bbnode*intboolint);???
??friend?int?MaxLoading(int*intintint?*);?????
private:???
bbnode?*parent;?//?指向父節點的指針???
bool?Lchild;?//左兒子節點標志???
};???
????


???
class?HeapNode{??
friend?void?AddLiveNode(MaxHeap&bbnode?*intboolint);???
friend?int?MaxLoading(int*intintint*);??
friend?class?MaxHeap;??


public:??
operator?int()?const{?return?uweight;}???
private:???
??bbnode?*ptr;?//指向活節點在子集樹中相應節點的指針???
int?uweight;?//?活節點的優先級--上界???
??int?level;?//?活節點在子集樹中所處的層序號???
};???
???

class?MaxHeap{??
friend?void?AddLiveNode(MaxHeap&bbnode?*intboolint);???
??friend?int?Maxloading(int*intintint*);??
private:???

評論

共有 條評論

相關資源