TAILIEUCHUNG - MultiBooks - Tổng hợp IT - PC part 156

Tham khảo tài liệu 'multibooks - tổng hợp it - pc part 156', 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ả | Where as addressing determines the location of a record by using algorithmic methods searching finds the record by scanning groups of records and index or both. - The simplest method is to examine every record a file until the required record is found a shortcut is generally desiable. 1. Indexed sequential searching - A cylinder index is created to hold the highest cylinder s key - Associated with each cylinder is a block index holding the highest key in each block within that cylinder - When searching for a record s key in the index The cylinder index is examined key_by_key until one is found that is larger than or equal to the wanted key this directs the search to the appropriate block index The block index a similarly examined and the search The block is searched record by record until the wanted record is found 1. Binary searching binary chopping - The key in the index to be binary search must be in sequence and form a complete set - The search starts at the midpoint of the index and then moves half way to the left or right down or up depending upon whether are wanted key is less than or greater than the midpoint key - In pracice the index is unlikely to as convenient as this example because it is not always possible to exactly halve each sucessive move complete exact holvingis possible only when the total number of keys in the index is 20-1 - The average number of examinations comparisons is log2k -1 k is the number of keys in the index 2. Block searching - A block is a subdivision of an index. A block is devised to contain roughly the square root of the number of keys in the whole index - The search is first through the block index to find the appropriate block and then through this to find the wanted key - The average number of examinations is square - root - k k is the total number of keys 3. Balanced binary tree searching - A binary tree is a relationship of keys such that the examination of any key leads to one of two other keys - The binary tree is .

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.