TAILIEUCHUNG - Skiena - The Algorithm Design Manual [Springer-Verlag 1997] Episode 4

Tham khảo tài liệu 'skiena - the algorithm design manual [springer-verlag 1997] episode 4', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Graph Data Structures algorithms . Adjacency matrices win for algorithms that repeatedly ask Is if in Ơ However most graph algorithms can be modified to eliminate such queries. Will you be modifying the graph over the course of your application and if so how - Repeated edge insertions and particularly deletions argue for adjacency matrices or perhaps for fancier versions of adjacency lists such as binary search trees. However more likely than modifying the topology of graph is modifying the attributes of a vertex or edge of the graph such as size weight or color. Attributes are best handled as extra fields in the vertex or edge records of adjacency lists. Building a good general-purpose graph type is surprisingly tricky and difficult. For this reason we suggest that you check out existing implementations particularly LEDA before hacking up your own. Note that it costs only time linear in the size of the larger data structure to convert between adjacency matrices and adjacency lists. This conversion is unlikely to be the bottleneck in any application if you decide you want to use both data structures and have the space to store them. This usually isn t necessary but might prove simplest if you are confused about the alternatives. Planar graphs are those that can be drawn in the plane so that no two edges cross. Many graphs arising in applications are planar by definition such as maps of countries while others are planar by happenstance like any tree. Planar graphs are always sparse since any -vertex planar graph can have at most 3n-6 edges so they should usually be represented by adjacency lists. If the planar drawing or embedding of the graph is fundamental to what is being computed planar graphs are best represented geometrically. See Section I I for algorithms for constructing planar embeddings from graphs and Section I I for algorithms maintaining graphs implicit in the arrangements of geometric objects like lines and polygons. Hypergraphs are generalized graphs

TỪ KHÓA LIÊN QUAN
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.