宝贝说他国内一好哥们最近刚有了女儿,现在2个月大左右了,回国本说带点奶粉过去,毕竟国内的奶粉不是人喝的。。结果人家说他媳妇奶多的是,母奶都喝不完,别说奶粉了,放家也就是摆设罢了。然后,介于我每次路过童装店都有一种想住里面不回家了的欲望。。这次二话没说,拉着我宝贝就逛街去了。我看中了至少100样东西,好吧,确切的说,他们店里没有什么是我看不上的。=.= 我遇到小孩的东西就克制不住自己。。
哈哈,这些小衣服都留不下,虽然我特想全装箱子里留给我女儿以后穿。我说我第一天怀孕了,我就拿xx钱出来,不管男女,一顿乱买,宝贝头上无数滴汗下来了估计。。
这次买的那件小比基尼也太可爱了,还有小樱桃在上面,哈哈哈哈,太逗了。有的时候真想什么都不管了,直接要个娃娃算了,理智冷静下来,的确还不是时候=_=|| 烦啊。。。我想要小女儿啊,给她买无数的公主裙啊。。
跟宝贝的日子越过越开心了,我仔细的想了一想,过去的2年多时间里,我似乎没有一天不是笑着过的。我很满足。我要跟我宝贝好好过一辈子。
be an
vertex graph. Suppose
has a pair of vertices
and
such that
.
. Find such vertex with linear time algorithm.
be the layers discovered. Thus
and
, so there are
layers between
. We claim that there is a layer
for some
that has a single node. Otherwise, if all layers between
and
had two or more vertices then if we count all vertices in the tree, we have 1 vertex
.
, but this cannot be.
的时候。
, if removing them will disconnects path
.
. Assume all layer has more than 2 vertices, then we get
.
for BFS.
consisting of
. Want to compute the matrix
for
. Consider below for computing B:
do
2. for
do
3. add up array entries
through
4. store result in
5. return B
to 1 iteration when
. Thus Lines 3 and 4 are executed 
and
are. Line 3 and 4 take
time. Means each iteration takes
time.
. And if each iteration takes
, then running time is
.
. For this, we need to argue only the algorithm runs in
. Consider the iterations where
and
. There are
such iterations. In each of there iterations,
. Therefore, even when only restricted to there iterations, we get a time complexity of 