亚洲精品92内射,午夜福利院在线观看免费 ,亚洲av中文无码乱人伦在线视色,亚洲国产欧美国产综合在线,亚洲国产精品综合久久2007

?
Java知識分享網(wǎng) - 輕松學(xué)習(xí)從此開始!????

Java知識分享網(wǎng)

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus權(quán)限系統(tǒng)實(shí)戰(zhàn)課程 震撼發(fā)布        

最新Java全棧就業(yè)實(shí)戰(zhàn)課程(免費(fèi))

AI人工智能學(xué)習(xí)大禮包

IDEA永久激活

66套java實(shí)戰(zhàn)課程無套路領(lǐng)取

鋒哥開始收J(rèn)ava學(xué)員啦!

Python學(xué)習(xí)路線圖

鋒哥開始收J(rèn)ava學(xué)員啦!
當(dāng)前位置: 主頁 > Java文檔 > Java基礎(chǔ)相關(guān) >

關(guān)于LKH算法的圖論知識 PDF 下載


分享到:
時間:2021-04-27 09:43來源:http://sh6999.cn 作者:轉(zhuǎn)載  侵權(quán)舉報(bào)
關(guān)于LKH算法的圖論知識 PDF 下載
失效鏈接處理
關(guān)于LKH算法的圖論知識 PDF 下載


本站整理下載:
提取碼:6lrz 
 
 
相關(guān)截圖:
 
主要內(nèi)容:

1 Trees
Today we’ll talk about a very special class of graphs called trees. Trees arise in all sorts
of applications and you’ll see them in just about every computer science class that you’ll
take at MIT. There are at least half a dozen ways to define a tree, but the simplest is the
following.
Definition. A tree is a simple 1 , connected, acyclic graph.
For example, a tree might look like this.
On the other hand, this is not a tree
and neither is this
1 Recall that we only consider simple graphs in this class, that is, graphs without loops or multiple edges.
2 Graph Theory III
Sometimes we’ll draw trees in a leveled fashion, in which case we can identify the top
node as the root, and every edge joints a “parent” to a “child”.
Parent
Child
Leaf
Root
The nodes at the bottom of degree 1 are called leaves.
Definition. A leaf is a node in a tree with degree 1.
For example, in the tree above there are 5 leaves. It turns out that no matter how we
draw a tree, every tree with more than 1 node always has some leaves.
Theorem 1. Every tree with more than 1 node has at least one leaf.
Proof. We prove the theorem by contradiction. Suppose it is not true. Then there exists
a tree T = (V,E) where every node has degree at least 2. Let P = v 1 ,v 2 ,...,v m be a
path of maximum length in T, i.e., there is no path with m + 1 or more nodes in T (recall
that all nodes in a path are distinct by definition). Note that we are implicitly using the
well-ordering principle here.
Since |V | ≥ 2 and T is connected, such a P exists and we have 2 ≤ m ≤ n. Since
T has minimum degree at least 2 by assumption, v m is joined to at least 2 nodes. In
particular, there is a node x 6= v m−1 such that {v m ,x} ∈ E. Since P has maximum length,
v 1 ,v 2 ,...,v m ,x is not a path, which means x = v i for some 1 ≤ i < m − 1. But then
v i ,v i+1 ,...,v m−1 ,v m ,v i is a cycle in T. But T is a tree, and so by definition contains no
cycle. This is a contradiction.
As it turns out, every tree has at least 2 leaves, which you’ll prove in the problem sets.
There is also a close correlation between the number of nodes and number of edges in a
tree. In the previous example we saw that N = 7 and E = 6. We also have the following
examples.

 

------分隔線----------------------------
?
鋒哥公眾號


鋒哥微信


關(guān)注公眾號
【Java資料站】
回復(fù) 666
獲取 
66套java
從菜雞到大神
項(xiàng)目實(shí)戰(zhàn)課程

鋒哥推薦