TAILIEUCHUNG - Lecture Data structures and algorithms in Java (6th edition): Chapter 14.2 - Goodrich, Tamassia, Goldwasser

This chapter provides knowledge of DFS. Data structures and algorithms in java provides an introduction to data structures and algorithms, including their design, analysis, and implementation. | Depth-First Search 3/25/14 15:22 Presentation for use with the textbook Data Structures and Algorithms in Java, 6th edition, by M. T. Goodrich, R. Tamassia, and M. H. Goldwasser, Wiley, 2014 Depth-First Search A B D E C © 2014 Goodrich, Tamassia, Goldwasser Depth-First Search 1 Subgraphs q   A subgraph S of a graph G is a graph such that n   n   q   The vertices of S are a subset of the vertices of G The edges of S are a subset of the edges of G Subgraph A spanning subgraph of G is a subgraph that contains all the vertices of G Spanning subgraph © 2014 Goodrich, Tamassia, Goldwasser Depth-First Search 2 1 Depth-First Search 3/25/14 15:22 Connectivity q   q   A graph is connected if there is a path between every pair of vertices A connected component of a graph G is a maximal connected subgraph of G © 2014 Goodrich, Tamassia, Goldwasser Connected graph Non connected graph with two connected components Depth-First Search 3 Trees and Forests q   A (free) tree is an undirected graph T such that T is connected n   T has no cycles This definition of tree is different from the one of a rooted tree n   q   q   A forest is an undirected graph without cycles The connected components of a forest are trees © 2014 Goodrich, Tamassia, Goldwasser Depth-First Search Tree Forest 4 2 Depth-First Search 3/25/14 15:22 Spanning Trees and Forests q   q   q   q   A spanning tree of a connected graph is a spanning subgraph that is a tree A spanning tree is not unique unless the graph is a tree Spanning trees have applications to the design of communication networks A spanning forest of a graph is a spanning subgraph that is a forest Graph Spanning tree © 2014 Goodrich, Tamassia, Goldwasser Depth-First Search 5 Depth-First Search q   q   Depth-first search (DFS) is a general technique for traversing a graph A DFS traversal of a graph G n   n   n   n   Visits all the vertices and edges of G Determines whether G .

TÀI LIỆU MỚI ĐĂNG
8    164    3    22-12-2024
28    156    1    22-12-2024
337    144    2    22-12-2024
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.