Đang chuẩn bị liên kết để tải về tài liệu:
Less-Numerical Algorithms part 6

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

We saw in the previous section that a perfect (entropy-bounded) coding scheme would use Li = − log2 pi bits to encode character i (in the range 1 ≤ i ≤ Nch ), if pi is its probability of occurrence. | 910 Chapter 20. Less-Numerical Algorithms 20.5Arithmetic Coding We saw in the previous section that a perfect entropy-bounded coding scheme would use Li - log2 pi bits to encode character i in the range 1 i Nch if pi is its probability of occurrence. Huffman coding gives a way of rounding the Li s to close integer values and constructing a code with those lengths. Arithmetic coding 1 which we now discuss actually does manage to encode characters using noninteger numbers of bits It also provides a convenient way to output the result not as a stream of bits but as a stream of symbols in any desired radix. This latter property is particularly useful if you want e.g. to convert data from bytes radix 256 to printable ASCII characters radix 94 or to case-independent alphanumeric sequences containing only A-Z and 0-9 radix 36 . In arithmetic coding an input message of any length is represented as a real number R in the range 0 R 1. The longer the message the more precision required of R. This is best illustrated by an example so let us return to the fictitious language Vowellish of the previous section. Recall that Vowellish has a 5 character alphabet A E I O U with occurrence probabilities 0.12 0.42 0.09 0.30 and 0.07 respectively. Figure 20.5.1 shows how a message beginning IOU is encoded The interval 0 1 is divided into segments corresponding to the 5 alphabetical characters the length of a segment is the corresponding pi. We see that the first message character I narrows the range of R to 0.37 R 0.46. This interval is now subdivided into five subintervals again with lengths proportional to the pi s. The second message character O narrows the range of R to 0.3763 R 0.4033. The U character further narrows the range to 0.37630 R 0.37819. Any value of R in this range can be sent as encoding IOU . In particular the binary fraction .011000001 is in this range so IOU can be sent in 9 bits. Huffman coding took 10 bits for this example see 20.4. Of course there is the problem

TÀI LIỆU LIÊN QUAN
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.