由买买提看人间百态

topics

全部话题 - 话题: digraph
(共0页)
p***o
发帖数: 1252
1
来自主题: Programming版 - 请教如何自己C++编程牛逼些
Here is some code from the book. You can decide if you want to
read it ... I would spend my time on STL and Boost, at least
they are shown to be WORKING.
class SparseMultiGRAPH
{ int Vcnt, Ecnt; bool digraph;
struct node
{ int v; node* next;
node(int x, node* t) { v = x; next = t; }
};
typedef node* link;
vector adj;
public:
SparseMultiGRAPH(int V, bool digraph = false) :
adj(V), Vcnt(V), Ecnt(0), digraph(digraph)
{ adj.assign(V, 0); }
int V() const { retur... 阅读全帖
c*x
发帖数: 555
2
来自主题: Science版 - Is this a NP-complete problem?
An airline network is represented by a weighted digraph G=(V,E) in which
airports are denoted by vertices, flight legs are denoted by edges, and flight
time (or geological distance) is denoted by a weight. Suppose that the airline
company wants to establish k repair facilities at certain airports so that
every airport can receive repair service reasonably. The distance d(u,v) from
vertex u to vertex v is defined as the length of a shortest path from u to v
on G.
Input:
weighted digraph G=(V,E)
p
t****a
发帖数: 1212
3
来自主题: JobHunting版 - 刚才重新回顾了一下那题
勉强hack好了,不过还是弄不明白这里头的执行顺序,太诡异了,真不能随便用全局变
量阿。
http://kangtu.me/~kangtu/study/interview.html#sec-12
有愿意改进的朋友请指点指点
PS: 画digraph需要给结点赋予唯一的名称,而生成一个hashmap表示这个树就没这个限
制,容易多了。
m********l
发帖数: 791
4
或者替他题目用dijkstra's algorithm的?
想看看有没有比较interview friendly的解法(数据结构的实现简单一些)
主要针对edge weighted digraph的题目
谢谢!
S**********r
发帖数: 1410
5
应该是个complete digraph, 因为谁都认为比别人牛:-)

发帖数: 1
6
来自主题: AnthroLing版 - WHY IDO?
WHY IDO?
http://idolinguo.org.uk/whyido.htm
NOTE: Because of the difficulty of showing Esperanto's special accented
letters, where a letter which in Esperanto should carry a circumflex it is
shown here followed by a circumflex (^), and where the letter 'u' should
carry a breve it is followed by a tilde (~).
The idea of using a constructed language as a medium of international
communication - not replacing existing languages but supplementing them - is
far from new. The first such language to ach... 阅读全帖
l*******e
发帖数: 2431
7
来自主题: _K12版 - 一点别的想法
这不是坐井观天嘛。在我们学区算advanced,但是和加州德州比,
当然远远谈不上了。
他读过MTH,A to Z mysteries,Cam Jansen三套系列。老师评语如下:
Language: Jeff's reading ability has grown a lot throughout
this year, and he is now reading fluently, having mastered
the phonetic sounds and many vowel and consonant blends and
digraphs. He builds sentences using his inventive spelling,
and can correct his writing work with the moveable alphabet.
He can also write independently using appropriate spacing
and upper and lower case letters. Jeff has a good u
t********r
发帖数: 4908
8
来自主题: _K12版 - [合集] 一点别的想法
☆─────────────────────────────────────☆
flyinger (上香上香) 于 (Thu Jun 10 16:53:10 2010, 美东) 提到:
看到大家都在这里推,我倒是最近觉得应该多给孩子自由发挥的时间特别是艺术文字方
面的培养
我发现我女儿说的象诗一样的语言都是她自己一个人玩得时候自己唠叨的
比如昨天她得了两份恐龙袋子,自己就在家玩
早上也自己玩,我发现她就在讲故事
每个恐龙的名字她都知道
所以就放个树在一旁自己说XXX龙我支持草,吃了草我就可以长大
然后这边是什么,要吃动物
然后发生了什么事情
一个人玩得不亦乐乎
都是用英文说的
我这个不是native的人听得觉得语言好优美阿
画画也是地,都是她心中的故事
其实不需要我推的
我只用给她买她要的颜色就好了
我自己是学工科的,不知道文科气质的孩子该如何培养
希望能抛砖引玉,文科牛的妈妈能说说?
☆─────────────────────────────────────☆
bluerock (...) 于 (Thu Jun 10 17:02:45 2010, 美东) 提到:... 阅读全帖
(共0页)