由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - A G interview question
相关主题
Amazon电面经做了一个中文版careercup
请叫大家一道题雅虎面经
Course Schedule II 变形题怎么做?what software can make chart like this (Ashby plot) (转载)
为啥careerCup 4里面graph就一题悲剧了,还是决定发发面经攒人品
请教一个面试问题,careercup上的关于onsite的presentation
a question regarding finding all paths with a common sumfind distribution paramters only by data mean and std. dev. (转载)
问个google面试题请问两个meeting schedule的题
问F家一道题被印度人压迫的同胞们,请支持一下 #indiansentiment
相关话题的讨论汇总
话题: lines话题: plotter话题: plotted话题: line话题: question
进入JobHunting版参与讨论
1 (共1页)
b**********r
发帖数: 91
1
From careercup
A line plotter is given which accepts start and end points to be plotted
as well as the line colour. What are the factors that affect the time
taken to plot the lines? Given a sequence of lines to be plotted give an
algorithm that helps you to plot the lines in the least amount of time.
Looks like a NPC problem
y*******g
发帖数: 6599
2
没看懂
准许的最基本plot操作是什么?

【在 b**********r 的大作中提到】
: From careercup
: A line plotter is given which accepts start and end points to be plotted
: as well as the line colour. What are the factors that affect the time
: taken to plot the lines? Given a sequence of lines to be plotted give an
: algorithm that helps you to plot the lines in the least amount of time.
: Looks like a NPC problem

b**********r
发帖数: 91
3
I think there are costs when move the plotter from one end of an interval
to one end of another one, changing color could have cost also.

【在 y*******g 的大作中提到】
: 没看懂
: 准许的最基本plot操作是什么?

b**********r
发帖数: 91
4
Some clarification of the problem:
(1) the line plotter take time to move from one point to another
proportional to the distance
(2) It takes constant time to change color from one to another
Give the above condition, how to arrange the line segment sequence to
minimize the total time to paint all of them?

【在 b**********r 的大作中提到】
: From careercup
: A line plotter is given which accepts start and end points to be plotted
: as well as the line colour. What are the factors that affect the time
: taken to plot the lines? Given a sequence of lines to be plotted give an
: algorithm that helps you to plot the lines in the least amount of time.
: Looks like a NPC problem

d*******l
发帖数: 338
5
好像还是有点不清楚诶,lines是在数轴上还是在二维平面上,重合的部分怎么算什么
的。。

【在 b**********r 的大作中提到】
: Some clarification of the problem:
: (1) the line plotter take time to move from one point to another
: proportional to the distance
: (2) It takes constant time to change color from one to another
: Give the above condition, how to arrange the line segment sequence to
: minimize the total time to paint all of them?

b**********r
发帖数: 91
6
It's should be on 2d plane, and we can assume no two lines are overlapped
or even intersected. This is from careercup asked by G.
http://www.careercup.com/question?id=9344067

【在 d*******l 的大作中提到】
: 好像还是有点不清楚诶,lines是在数轴上还是在二维平面上,重合的部分怎么算什么
: 的。。

B*******1
发帖数: 2454
7
请问这题有大牛有idea吗?
如果颜色不一样,应该怎么弄?
如果颜色都一样,应该怎么弄?
g**********y
发帖数: 14569
8
- 看见careercup上有人给minimum spanning tree的解法,初看好象有道理,仔细想一
下是错的。
- change color的cost对题目来说不重要,你就可以把这个cost折合进路径cost里,计
算方法是一样的。
- 这个有点象变形的bi-partition的min-flow, 直觉上计算量很大。
l***n
发帖数: 542
9
I guess it's some graph theory problem. First find a partition for the graph
so that each sub-graph is a connected graph and no two subgraph share the
same point. Next find the minimum tour path for each subgraph

【在 b**********r 的大作中提到】
: From careercup
: A line plotter is given which accepts start and end points to be plotted
: as well as the line colour. What are the factors that affect the time
: taken to plot the lines? Given a sequence of lines to be plotted give an
: algorithm that helps you to plot the lines in the least amount of time.
: Looks like a NPC problem

g**********y
发帖数: 14569
10
算了,不想了,你把所有线段退化成点,那就等同于货郎担问题了。这个找出简单解来
就牛大了。
B*******1
发帖数: 2454
11
货郎担问题是什么问题阿?
可否给个连接?
thanks

【在 g**********y 的大作中提到】
: 算了,不想了,你把所有线段退化成点,那就等同于货郎担问题了。这个找出简单解来
: 就牛大了。

g**********y
发帖数: 14569
12
http://en.wikipedia.org/wiki/Travelling_salesman_problem

【在 B*******1 的大作中提到】
: 货郎担问题是什么问题阿?
: 可否给个连接?
: thanks

1 (共1页)
进入JobHunting版参与讨论
相关主题
被印度人压迫的同胞们,请支持一下 #indiansentiment请教一个面试问题,careercup上的
Partition a map of water flows这题到底怎么做a question regarding finding all paths with a common sum
Tableau前景很好吗?问个google面试题
帮忙看看怎么做这道G的题目[3]问F家一道题
Amazon电面经做了一个中文版careercup
请叫大家一道题雅虎面经
Course Schedule II 变形题怎么做?what software can make chart like this (Ashby plot) (转载)
为啥careerCup 4里面graph就一题悲剧了,还是决定发发面经攒人品
相关话题的讨论汇总
话题: lines话题: plotter话题: plotted话题: line话题: question