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

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 138', 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ả | The first test determines whether the highest frequency value allocated to our message is less than one-half of the total frequency range. If it is we know that the first output bit is 0 so we call the bit_plus_follow_0 macro Figure to output that bit. Let s take a look at that macro. First we call output_0 which adds a 0 bit to the output buffer and writes it out if it is full. Then in the event that bits_to_follow is greater than 0 we call output_1 and decrement bits_to_follow until it reaches 0. Why do we do this The bit_plus_follow_0 macro from compress Figure codelist The reason is that bits_to_follow indicates the number of bits that could not be output up till now because we didn t know the first bit to be produced deferred bits . For example if the range of codes for the message had been 011 through 100 we would be unable to output any bits until the first bit was decided. However once we have enough information to decide that the first bit is 0 we can output three bits 011 . The value of bits_to_follow would be 2 in that case since we have two deferred bits. Of course if the first bit turns out to be 1 we would emit 100 instead. The reason that we know that the following bits must be the opposite of the initial bit is that the only time we have to defer bits is when the code range is split between codes starting with 0 and those starting with 1 if both low and high started with the same bit we could send that bit out. The values of HALF FIRST_QTR and THIRD_QTR are all based on TOP_VALUE Figure . In our example FIRST_QTR is 64 HALF is 128 and THIRD_QTR is 192. The current value of high is 255 which is more than HALF so we continue with our tests. Assuming that we haven t obtained the current output bit yet we continue by testing the complementary condition. If low is greater than or equal to HALF we know that the entire frequency range allocated to our message so far is in the top half of the total frequency .

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.