题目大意:有n(n大于等于1小于等于1000)个主题,每个主题要花费t1,t2,……,tn(每个ti都不会大于L)的时间来讲,每个讲座L(L大于等于1小于等于500)分钟;安排讲座有两个规则:
不能讲一个主题分在两个讲座讲;
必须按顺序讲,即ti要在ti-1之后讲。
每个讲座都有一个DI值,(即不满意值)设t为提前下课的分钟数,则:
DI=0(若t=0)或DI=-C(若t大于等于1小于等于...
分类:
其他好文 时间:
2015-04-29 10:04:07
阅读次数:
185
The fundamental idea of YARN is to split the two major responsibilities of the JobTracker—that is, resource management and job scheduling/monitoring—i...
分类:
其他好文 时间:
2015-04-24 07:53:21
阅读次数:
165
MIT JOS # RoundRobin Scheduling#
下面是MIT JOS里 round-robin调度策略的实现.
在 kern/sched.c里面
下面的截图来自> (以前搬过的砖也是有好处的哇~)
结合代码就能够很形象的理解Round-robin.
每当我们调用sched_yeild()的时候,我们就打算让当前进程让出CPU了.
...
分类:
其他好文 时间:
2015-04-22 11:37:16
阅读次数:
112
http://blog.sina.com.cn/s/blog_927cff010101a7yh.html上行调度请求(Scheduling Request,SR)如果UE没有上行数据要传输,eNodeB并不需要为该UE分配上行资源,否则会造成资源的浪费。因此,UE需要告诉eNodeB自己是否有上行数...
分类:
其他好文 时间:
2015-04-14 00:29:41
阅读次数:
475
同事整理的android(安卓)开源框架,个个都堪称经典。32 个赞!1、volley项目地址 https://github.com/smanikandan14/Volley-demo(1) JSON,图像等的异步下载;(2) 网络请求的排序(scheduling)(3) 网络请求的优先级处理(4)...
分类:
移动开发 时间:
2015-04-13 16:03:34
阅读次数:
113
1、volley 项目地址 https://github.com/smanikandan14/Volley-demo(1) JSON,图像等的异步下载;(2) 网络请求的排序(scheduling)(3) 网络请求的优先级处理(4) 缓存(5) 多级别取消请求(6) 和Activity和生命周期的联...
分类:
移动开发 时间:
2015-04-13 14:34:38
阅读次数:
142
#include
#include
#include
using namespace std;
int num_of_st;
void getdata(vector & v, int n)
{
if (!v.empty())
throw runtime_error("v empty");
int t;
for (int i = 0; i > t...
分类:
编程语言 时间:
2015-04-13 09:43:23
阅读次数:
189
13983. Milk Scheduling
Constraints
Time Limit: 1 secs, Memory Limit: 256 MB
Description
Farmer John has N cows that need to be milked (1
Being impatient animals, some cows will r...
分类:
其他好文 时间:
2015-04-13 09:32:47
阅读次数:
154
虽然我们在做app的时候并不一定用到框架,但是一些好框架的思想是非常有学习价值的1、volley项目地址 https://github.com/smanikandan14/Volley-demo(1) JSON,图像等的异步下载;(2) 网络请求的排序(scheduling)(3) 网络请求的优先级...
分类:
移动开发 时间:
2015-04-10 17:40:29
阅读次数:
123
Machine ScheduleTime Limit: 1 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1150DescriptionAs we all know, machine scheduling i...
分类:
系统相关 时间:
2015-04-10 16:53:10
阅读次数:
173