查阅API文档,找到 add():增加一个元素。如果队列已满,则抛出一个IIIegaISlabEepeplian异常 Inserts the specified element at the tail of this queue. As the queue is unbounded, this me ...
分类:
编程语言 时间:
2020-05-31 16:02:19
阅读次数:
84
网络最大流 DInic cpp include include include define MAXN 10005 define MAXM 100005 define INF 2147483647 struct queue { int q[MAXN]; int head,tail; queue() ...
分类:
其他好文 时间:
2018-12-23 15:20:52
阅读次数:
151
推荐博客 : https://blog.csdn.net/Whispers_zmf/article/details/80809609 http://www.cnblogs.com/Kv-Stalin/p/9443622.html HDU 2222 ...
分类:
其他好文 时间:
2018-11-22 00:09:10
阅读次数:
160
看源代码的时候发现一个新的数据结构,然后我就好好的画了一下这个数据结构的图形,一是为了记录一下我自己的分析过程,二是和大家分享一下这个数据结构。这个数据结构的名字叫TAIL QUEUE感觉很高大上。所以我想分析一下这个数据结构,这个数据结构里面使用到了很多的宏定义。
这个结构体的定义如下:
typedef struct ConfNode_ {
char *name;
cha...
分类:
其他好文 时间:
2015-07-12 14:20:40
阅读次数:
195
//使用数组queue[ ]存放结点队列void BFS( ) { head=0; tail=1; queue[head]=首结点的值; while (head<tail) //队列不空 { temp=tail; for (k=head; k<=ta...
分类:
其他好文 时间:
2014-08-03 23:03:16
阅读次数:
250