An Euler Circuit is a cycle of an undirected graph, that .ppt
《An Euler Circuit is a cycle of an undirected graph, that .ppt》由会员分享,可在线阅读,更多相关《An Euler Circuit is a cycle of an undirected graph, that .ppt(11页珍藏版)》请在麦多课文档分享上搜索。
1、An Euler Circuit is a cycle of an undirected graph, that traverses every edge of the graph exactly once, and ends at the same node from which it began. Eulers Theorem: A connected graph G possesses an Euler circuit if and only if G does not contain any nodes of odd degree.Proof of Eulers theorem: As
2、sume that G has zero nodes of odd degree. It can then be shown that this is a necessary and a sufficient condition for an Euler circuit to exist. Part 1: It is necessary because any Euler circuit drawn on the graph must always enter a node through some edge and leave through another and all edges on
3、 the graph must be used exactly once. Thus, an even number of incident edges is required for every node on the graph.,Proof of Eulers theorem Part 2: Sufficiency, on the other hand, can be shown through the following tour construction argument. We begin at some initial node k0 and draw a circuit thr
4、ough G (thus eventually returning to k0). Let this circuit be denoted C0. If C0 happens to be an Euler circuit, this is fine; we stop. If C0 is not an Euler circuit, then if we remove from G all edges used by circuit C0, there must be some edges left over. Moreover, at least two of these edges must
5、be incident on some node k1 through which circuit C0 has passed. This must be so since, by assumption, G is, first, connected and, second, all its nodes are of even degree (and C0 has only used up an even number of edges which are incident on k1). Thus, it is possible to draw another circuit C1 orig
6、inating and terminating at k1, which uses only edges of G, the graph left after we eliminate the edges of C0 from G. This procedure may now be continued until eventually, say after the nth step, there will be no edges left uncovered. At that time, an Euler circuit will also have been obtained which
7、will be a combination of circuits C0, C1, C2, . . ., Cn.,Eulers theorem is a proof by construction. However, the algorithm could be O(E2) or O(E log E) where E is the number of edges in the graph.Note: both of these are O(E2):,for i = 1 to n for k = 1 to n ,for i = 1 to n for i = 1 to n . . (linear
8、function of n times) . for i = 1 to n ,Pick any vertex to start. From that vertex pick an edge to traverse, considering following rule: never cross a bridge of the reduced graph unless there is no other choice. Darken that edge, as a reminder that you cant traverse it again. Travel that edge, coming
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANEULERCIRCUITISACYCLEOFANUNDIRECTEDGRAPH THATPPT

链接地址:http://www.mydoc123.com/p-378269.html