由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - 问个算法题,给个简单的思路就好。
相关主题
问个common lisp的问题NS2 can be used to verify fat-tree in parallel?
问个在图中删除边和点的算法问题 (转载)请问目前security这个领域都有哪些比较热点的方向啊?
问个Scheme的题目,大家帮帮忙。。新年求教一下方向问题
[合集] 问个人工智能的问题有将军了解区块链吗
请教一个关于k-means的问题。[转载] 有搞算法的大侠吗?????问个问题!!!
关于min-max fairness帮忙找一篇paper
表扬一下Rajeev Alur 同学请教minimum set cover Problem
[转载] Scheme 编程问题求教max independent set
相关话题的讨论汇总
话题: some话题: morning话题: assume话题: customers话题: let
进入CS版参与讨论
1 (共1页)
b******e
发帖数: 432
1
Morning Coffee. Every morning, customers 1..n show up to get their morning
espresso-based concoction from Cafe Zoo. Suppose the omniscient barista
actually knows all of the customers, and knows their orders, o_1..o_n. Some
customers are nicer people; let T_i be the baristas expected tip from
customer i. Some drinks like a simple double-shot, are easy and fast, while
some other orders, like a hazelnut mocha soy-milk latte take longer. Let t_i
be the time it takes to make drink o_i . Assume the ba
l******e
发帖数: 470
2
very hard problem
google this paper
Approximation Schemes for Minimizing Average Weighted Completion Time
with Release Dates
I dont think the objective function you proposed is a good one in this
application though.

Some
while
_i
done
algorithm

【在 b******e 的大作中提到】
: Morning Coffee. Every morning, customers 1..n show up to get their morning
: espresso-based concoction from Cafe Zoo. Suppose the omniscient barista
: actually knows all of the customers, and knows their orders, o_1..o_n. Some
: customers are nicer people; let T_i be the baristas expected tip from
: customer i. Some drinks like a simple double-shot, are easy and fast, while
: some other orders, like a hazelnut mocha soy-milk latte take longer. Let t_i
: be the time it takes to make drink o_i . Assume the ba

a****9
发帖数: 418
3
greedy
pick T_i/t_i in decreasing order

Some
while
_i
done
algorithm

【在 b******e 的大作中提到】
: Morning Coffee. Every morning, customers 1..n show up to get their morning
: espresso-based concoction from Cafe Zoo. Suppose the omniscient barista
: actually knows all of the customers, and knows their orders, o_1..o_n. Some
: customers are nicer people; let T_i be the baristas expected tip from
: customer i. Some drinks like a simple double-shot, are easy and fast, while
: some other orders, like a hazelnut mocha soy-milk latte take longer. Let t_i
: be the time it takes to make drink o_i . Assume the ba

a****9
发帖数: 418
4
这里是单机offline调度,
问题不一样的

【在 l******e 的大作中提到】
: very hard problem
: google this paper
: Approximation Schemes for Minimizing Average Weighted Completion Time
: with Release Dates
: I dont think the objective function you proposed is a good one in this
: application though.
:
: Some
: while
: _i

l******e
发帖数: 470
5
you might want to say T_i/t_i ?
I think the Smith ratio only gives optimal solution when all jobs are
release atthe same time. I thought we were required to consider different
release times since lz mentioned the arrival order explicitly..
The paper i mentioned also solved the single machine case.

【在 a****9 的大作中提到】
: greedy
: pick T_i/t_i in decreasing order
:
: Some
: while
: _i
: done
: algorithm

b******e
发帖数: 432
6
非常感谢楼上的建议s。
"Assume the barista can make the drinks in any order that she wishes"我认为
这句话实际上说明"all jobs are release at the same time"
So, greedy might be OK.
另外再问一道:
Friends. Reword the following statement as a theorem about undirected
graphs, and then prove it. Assume that friendship is symmetric but not re
exive.
(a) Any group of at least two people contains at least two people with the
same number of friends in the group.
a**********s
发帖数: 588
7
鸽洞原理, 分有没有人没有朋友的两种情况讨论, 详细解答已经发给你了

【在 b******e 的大作中提到】
: 非常感谢楼上的建议s。
: "Assume the barista can make the drinks in any order that she wishes"我认为
: 这句话实际上说明"all jobs are release at the same time"
: So, greedy might be OK.
: 另外再问一道:
: Friends. Reword the following statement as a theorem about undirected
: graphs, and then prove it. Assume that friendship is symmetric but not re
: exive.
: (a) Any group of at least two people contains at least two people with the
: same number of friends in the group.

b******e
发帖数: 432
8
多谢啦。orz
1 (共1页)
进入CS版参与讨论
相关主题
max independent set请教一个关于k-means的问题。
Re: Efficient duplicate filtering for st关于min-max fairness
Theory的高手们指教一下吧表扬一下Rajeev Alur 同学
问一个feedback vertex set的问题[转载] Scheme 编程问题求教
问个common lisp的问题NS2 can be used to verify fat-tree in parallel?
问个在图中删除边和点的算法问题 (转载)请问目前security这个领域都有哪些比较热点的方向啊?
问个Scheme的题目,大家帮帮忙。。新年求教一下方向问题
[合集] 问个人工智能的问题有将军了解区块链吗
相关话题的讨论汇总
话题: some话题: morning话题: assume话题: customers话题: let