TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 166

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 166', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 1. When all entries in the main object table have been checked we report the results to the user. Assuming that the user wants us to rebuild the file we start phase two. After opening a new quantum file where we will store the rebuilt file we examine each quantum containing actual user data skipping any quanta containing the main object table big pointer arrays and little pointer arrays. For each such user-data quantum we extract the object number to which that quantum belongs and add the elements in that quantum to the appropriate element of the corresponding object in the new quantum file using the index number of each element as stored with the element. Chapter 1. Modifications to add capabilities to the dynamic hashing implementation 1. Deleting records is almost exactly the inverse of adding records. Every time the number of records decreases by the average number of records per slot we take the storage element from the highest-numbered slot and combine it with the one from its buddy slot placing the result back in the buddy slot. Then we decrease the active slot count by one. If the active slot count becomes equal to one-half of the allocated slot count we halve the allocated count. 2. The main problem with duplicate keys is that since records with the same key will always wind up in the same storage element they make it imperative to handle the overflow problem. Once that is solved handling duplicate keys is easy once you have located all storage elements that might contain records with that key search each of them to the end rather than stopping when you get a match. Of course you then have to decide which record you want to use but that s an application-specific problem. 2. This is a wonderful application for templates. Even the name of the class is intended to suggest that it could very easily be changed to PersistentArray type . Chapter 1. One fairly obvious way to handle the problem of improper key distributions for the .

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.