TAILIEUCHUNG - Algorithms and Data Structures in C part 11

To illustrate message passing consider the case of determining the path to send a message from processor 0 to processor 7 in a 3-dimensional hypercube as shown | To illustrate message passing consider the case of determining the path to send a message from processor 0 to processor 7 in a 3-dimensional hypercube as shown in Figure . If the message is to traverse a path which is of minimal length that is d 0 7 then it should travel over three edges. For this case there are six possible paths Figure Hypercube Architecture In general in a hypercube of dimension d a message travelling from processor x to processor y has d x y distinct paths see Problem . One simple algorithm is to compute the exclusive-or of the source and destination processors and traverse the edge corresponding to complementing the first bit that is set. This is illustrated in Table for left to right complementing and in Table for right to left complementing. Table Calculating the Message Path Left to Right Processor Source ProcessorDestination Exclusive-Or Next Processor 000 111 111 100 100 110 111 011 111 110 001 111 Table Calculating the Message Path Right to Left Processor Source Processor Destination Exclusive-Or Next Processor 000 111 111 001 001 111 110 011 011 111 100 111 The message passing algorithm still works under certain circumstances even when the hypercube has nodes that are faulty. This is discussed in the next section. Efficient Hypercubes This section presents the analysis of the class of hypercubes for which the message passing routines of the previous section are valid. Examples are presented in detail for an 8-node hypercube. Transitive Closure Definition The adjacency matrix A of a graph G is the matrix with elements aij such that aij 1 implies there is an edge from i to j. If there is no edge then aij 0. The adjacency matrix A of the transitive closure of the 8-node hypercube is simply the matrix For a hypercube with all functional nodes every processor is reachable. Previous Table of Contents Next Copyright CRC Press LLC Algorithms and Data Structures in C by Alan Parker CRC Press CRC .

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.