TAILIEUCHUNG - data structures and algorithms in C PHẦN 6

và tài liệu tham khảo để thực hiện bằng cách sử dụng cho cấu trúc dữ liệu và các thuật toán từ. NET Framework Class Library cũng như những người phải được phát triển bởi các lập trình viên. Trong một thời trang theo định hướng đối tượng, tác giả trình bày mảng và ArrayLists, danh sách liên kết, bảng băm, | Section The Family of B-Trees E 319 Prefix B -Trees If a key occurred in a leaf and in an internal node of a B -tree then it is enough to delete it only from the leaf because the key retained in the node is still a good guide in subsequent searches. So it really does not matter whether a key in an internal node is in any leaf or not. What counts is that it is an acceptable separator for keys in adjacent children for example for two keys Kị and K2 the separator s must meet the condition Kị s ifi. This property of the separator keys is also retained if we make keys in internal nodes as small as possible by removing all redundant contents from them and still have a properly working B -tree. A simple prefix B -tree Bayer and Unterauer 1977 is a B -tree in which the chosen separators are the shortest prefixes that allow US to distinguish two neighboring index keys. For example in Figure the left child of the root has two keys BF90 and BQ322. If a key is less than BF90 the first leaf is chosen if it is less than BQ322 the second leaf is the right pick. But observe that we also have the same results if instead of BF90 keys BF9 or just BF are used and instead of BQ322 one of three prefixes of this key is used BQ32 BQ3 or just BQ. After choosing the shortest prefixes of both keys if any key is less than BF the search ends up in the first leaf and if the key is less than BQ the second leaf is chosen the result is the same as before. Reducing the size of the separators to the bare minimum does not change the result of the search. It only makes separators smaller. As a result more separators can be placed in the same node whereby such a node can have more children. The entire B -tree can have fewer levels which reduces the branching factor and makes processing the tree faster. This reasoning does not stop at the level of parents of the leaves. It is carried over to any other level so that the entire index set of a B -tree is filled with prefixes see Figure

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.