码迷,mamicode.com
首页 >  
搜索关键字:advanced queue    ( 10739个结果
C#集合类
代码来自互联网,原作者已不可考。ArrayList 使用大小可按需动态增加的数组实现 IList 接口。 BitArray 管理位值的压缩数组,该值表示为布尔值,其中 true 表示位是打开的 (1),false 表示位是关闭的 (0)。 Stack 表示对象的简单的后进先出非泛型集合。Queue ...
分类:其他好文   时间:2014-05-17 00:30:08    阅读次数:208
PJOI PKU Campus 2011 B:A Problem about Tree LCA 求任意点x为根的y的父节点
题目链接:点击打开链接 题意:给定n个点 m个询问 下面n-1行给定一棵树 m个询问 x y 问把树转成以x为根 y的父节点是谁 第一种情况lca==y那就是x的第 dep[x] - dep[y] -1 父亲,依次向上爬山坡,利用倍增的二进制加速。 第二种就是Father[y]; #include"cstdio" #include"iostream" #include"queue" ...
分类:其他好文   时间:2014-05-15 09:11:44    阅读次数:397
RAW-OS:消息队列
平台:VS2010版本:1.04我们先看看消息队列的数据结构:typedefstructRAW_QUEUE { RAW_COMMON_BLOCK_OBJECTcommon_block_obj; RAW_MSG_Qmsg_q; RAW_VOID(*queue_send_notify)(structRAW_QUEUE*queue_ptr); }RAW_QUEUE;RAW_MSG_Q:typedefstructRAW_MSG_Q{ RAW_VOID**queue_sta..
分类:其他好文   时间:2014-05-15 08:35:51    阅读次数:318
Pat(Advanced Level)Practice--1043(Is It a Binary Search Tree)
Pat1043代码 题目描述: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes with keys less than t...
分类:其他好文   时间:2014-05-15 05:09:59    阅读次数:351
Hadoop 2.0 Queue
Hadoop 2.0 Queue setting 解析...
分类:其他好文   时间:2014-05-15 05:03:25    阅读次数:544
模板类Queue的实现
1 #include 2 #include 3 using namespace std; 4 5 template class Queue; 6 template ostream & operator &); 7 8 template class QueueItem...
分类:其他好文   时间:2014-05-15 02:01:47    阅读次数:406
Pat(Advanced Level)Practice--1043(Is It a Binary Search Tree)
Pat1043代码题目描述:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contain...
分类:其他好文   时间:2014-05-14 22:03:25    阅读次数:487
C++ primer 模板与泛型编程
c++ primer 模板与泛型编程 Queue模板的实现...
分类:编程语言   时间:2014-05-14 20:45:26    阅读次数:362
java并发编程之Master-Worker模式
Master-Worker模式适合在一个任务可以拆分成多个小任务来进行的情况下使用。packagecn.fcl.masterworker; importjava.util.HashMap; importjava.util.Map; importjava.util.Queue; importjava.util.concurrent.ConcurrentHashMap; importjava.util.concurrent.ConcurrentLinked..
分类:编程语言   时间:2014-05-14 18:26:04    阅读次数:243
Pat(Advanced Level)Practice--1044(Shopping in Mars)
Pat1044代码 题目描述: Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can...
分类:其他好文   时间:2014-05-13 14:33:08    阅读次数:437
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!