Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 1.9, Problem 2QE
Program Plan Intro
LZW Compression:
LZW is a dictionary based compression
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Questión
Use Huffman coding to compress the letters in the following chart. What are the total bits of the compressed code?
Code
000
001
010
011
100
Frequency
12
14
11
3
Character
A
Total Bits
36
В
42
C
33
6.
15
D
E
F
N
101
110
13
39
1
3
a
177 bits
b
151 bits
174 bits
d
163 bits
Question
What is the result of expanding the following LZW-encoded sequence of 12 hexadecimal integers?
41 43 43 42 81 41 42 82 85 41 41 80
Assume the original encoding table consists of all 7-bit ASCII characters and uses 8-bit codewords.
Answer
Your answer should be a sequence of uppercase letters, separated by whitespace.
The shortest distance between any two encodings can be used to define the Hamming distance for a code. Why would it be preferable to avoid using the maximum or average distance? Give an example.
Chapter 1 Solutions
Computer Science: An Overview (12th Edition)
Ch. 1.1 - What input bit patterns will cause the following...Ch. 1.1 - In the text, we claimed that placing a 1 on the...Ch. 1.1 - Assuming that both inputs to the flip-flop in...Ch. 1.1 - a. If the output of an AND gate is passed through...Ch. 1.1 - Prob. 5QECh. 1.1 - Prob. 6QECh. 1.2 - If the memory cell whose address is 5 contains the...Ch. 1.2 - Prob. 2QECh. 1.2 - How many bits would be in the memory of a computer...Ch. 1.3 - Prob. 1QE
Ch. 1.3 - Prob. 2QECh. 1.3 - Prob. 3QECh. 1.3 - Prob. 4QECh. 1.3 - Prob. 5QECh. 1.3 - Prob. 6QECh. 1.4 - Here is a message encoded in ASCII using 8 bits...Ch. 1.4 - In the ASCII code, what is the relationship...Ch. 1.4 - Prob. 3QECh. 1.4 - Prob. 4QECh. 1.4 - Convert each of the following binary...Ch. 1.4 - Prob. 6QECh. 1.4 - What is the largest numeric value that could be...Ch. 1.4 - An alternative to hexadecimal notation for...Ch. 1.4 - What is an advantage of representing images via...Ch. 1.4 - Prob. 10QECh. 1.5 - Convert each of the following binary...Ch. 1.5 - Convert each of the following base ten...Ch. 1.5 - Convert each of the following binary...Ch. 1.5 - Express the following values in binary notation:...Ch. 1.5 - Perform the following additions in binary...Ch. 1.6 - Convert each of the following twos complement...Ch. 1.6 - Prob. 2QECh. 1.6 - Suppose the following bit patterns represent...Ch. 1.6 - Suppose a machine stores numbers in twos...Ch. 1.6 - In the following problems, each bit pattern...Ch. 1.6 - Prob. 6QECh. 1.6 - Prob. 7QECh. 1.6 - Prob. 8QECh. 1.6 - Prob. 9QECh. 1.6 - Prob. 10QECh. 1.6 - Prob. 11QECh. 1.7 - Prob. 1QECh. 1.7 - Prob. 3QECh. 1.7 - Prob. 4QECh. 1.8 - What makes Python an interpreted programming...Ch. 1.8 - Write Python statements that print the following:...Ch. 1.8 - Write Python statements to make the following...Ch. 1.8 - Write a Python statement that given an existing...Ch. 1.9 - Prob. 1QECh. 1.9 - Prob. 2QECh. 1.9 - Prob. 3QECh. 1.9 - Prob. 4QECh. 1.9 - Prob. 5QECh. 1.9 - Prob. 6QECh. 1.9 - Prob. 7QECh. 1.10 - Prob. 1QECh. 1.10 - Could errors have occurred in a byte from Question...Ch. 1.10 - Prob. 3QECh. 1.10 - Prob. 4QECh. 1.10 - Prob. 5QECh. 1.10 - Prob. 6QECh. 1 - Determine the output of each of the following...Ch. 1 - a. What Boolean operation does the circuit...Ch. 1 - a. If we were to purchase a flip-flop circuit from...Ch. 1 - Assume that both of the inputs in the following...Ch. 1 - The following table represents the addresses and...Ch. 1 - How many cells can be in a computers main memory...Ch. 1 - Prob. 7CRPCh. 1 - Prob. 8CRPCh. 1 - Prob. 9CRPCh. 1 - Prob. 10CRPCh. 1 - Suppose a picture is represented on a display...Ch. 1 - Prob. 12CRPCh. 1 - Prob. 13CRPCh. 1 - If each sector on a magnetic disk contains 1024...Ch. 1 - How many bytes of storage space would be required...Ch. 1 - Prob. 16CRPCh. 1 - Prob. 17CRPCh. 1 - Suppose a typist could type 60 words per minute...Ch. 1 - Prob. 19CRPCh. 1 - Prob. 20CRPCh. 1 - Prob. 21CRPCh. 1 - Prob. 22CRPCh. 1 - Prob. 23CRPCh. 1 - Prob. 24CRPCh. 1 - Prob. 25CRPCh. 1 - Prob. 26CRPCh. 1 - Prob. 27CRPCh. 1 - Prob. 28CRPCh. 1 - Prob. 29CRPCh. 1 - Prob. 30CRPCh. 1 - Prob. 31CRPCh. 1 - Prob. 32CRPCh. 1 - Prob. 33CRPCh. 1 - Prob. 34CRPCh. 1 - Prob. 35CRPCh. 1 - Prob. 36CRPCh. 1 - Prob. 37CRPCh. 1 - Prob. 38CRPCh. 1 - Prob. 39CRPCh. 1 - Prob. 40CRPCh. 1 - Prob. 41CRPCh. 1 - Prob. 42CRPCh. 1 - Prob. 43CRPCh. 1 - Prob. 44CRPCh. 1 - Prob. 45CRPCh. 1 - What would be the hexadecimal representation of...Ch. 1 - Prob. 47CRPCh. 1 - Prob. 48CRPCh. 1 - Prob. 49CRPCh. 1 - Prob. 50CRPCh. 1 - Prob. 51CRPCh. 1 - Prob. 52CRPCh. 1 - Prob. 53CRPCh. 1 - Prob. 54CRPCh. 1 - Prob. 55CRPCh. 1 - Prob. 56CRPCh. 1 - Prob. 57CRPCh. 1 - Prob. 58CRPCh. 1 - Write and test a Python script that, given a...Ch. 1 - Prob. 61CRPCh. 1 - Prob. 2SICh. 1 - Prob. 3SICh. 1 - Prob. 4SICh. 1 - Prob. 5SICh. 1 - Prob. 6SICh. 1 - Prob. 7SI
Knowledge Booster
Similar questions
- Question What is the result of compressing the following string of length 15 using LZW compression? ВАСАСАВВВСА ВВСА Assume the original encoding table consists of all 7-bit ASCII characters and uses 8-bit codewords. Answer Your answer should be a sequence of 11 two-digit hexadecimal integers, separated by whitespace, starting with 42 and ending with the stop codeword 80.arrow_forwardb) Using ASCII encoding (table), what is the binary representation of the letters below (case sensitive). 0 1 2 3 4 5 6 7 SigMa 0 2 5 6 1 3 4 NUL SOH STX ETX EOT ENQ ACK DLE DC1 DC2 DC3 DC4 " SP ! 0 1 @ A P Q a q Р 2 B R b musun $ 4 D T d 7 8 BEL BS HT NAK SYN ETB CAN % & ( ) 8 9 : H I J X Y Z h i j X y Z t SE3 5 U e u 6 F V f V . TCM6.0 3 7 G W W 9 A EM SUB * BCDE LF VT FF CES ESC FS + ; K k -VL7~- CR SO GS RS M 1 ] m 13 > ZV. 455120 10W F SI US ? DELarrow_forwardHow many eight-bit binary strings contain exactly 3 1s? How many eight-bit binary strings contain at least three 1s? How many eight-bit binary strings contain an equal number of 0s and 1s? How many eight-bit binary strings contain at most three 1s?arrow_forward
- Question in image. Thank you for helping.arrow_forwardConvert the following unpacked Binary Coded Decimal (BCD) encodings to their decimal values. Note: Spaces are placed between each 4-bit sequence to make the binary sequence more readable and decrease the likelihood of a mistake. a) 0000 0111 0000 0100 0000 1000 b) 0000 1001 0000 0001 0000 0110arrow_forwardWhy do we use binary encoding to represent information in the computer? What would be the pros and cons of using base-10 instead of base-2?arrow_forward
- Manchester encoding guarantees frequent clock synchronization by changing signal values. What is the maximum number of bits which may be encoded without a signal change? (Note: The way this question has been asked. you are not to include the bit which includes a signal change in your count)arrow_forwardSeparate the bit sequence into appropriate sized chuncks for each of the following domains. (You do NOT have to decode this bit sequence.) 1. Octal String: 010 110 101 010 101 111 010 111 111 101 011 011 011 011 010 1001. Hex String:1. Base64 String:arrow_forwardQuestion 6 Answer the following questions: a) Describe the difference between lossy and lossless compression. Give an example of each. b) Using ASCII encoding (table), what is the binary representation of the letters below (case sensitive). E 0 1 2 3 4 5 6 7 SigMa -5LOOP. 0 NUL SOH DLE DC1 1 SP ! 1 A Q a q 0 @ P 2 STX DC2 "1 2 B R b r 3 ETX DC3 # 3 C S с S 4 5 EOT DC4 $ 4 D T d t ENQ NAK % 5 E U e u 6 ACK SYN & 6 F V f V 7 BEL ETB . 7 · 0.0 3 G W W 8 9 BS HT LF CAN EM SUB ( ) 8 HX ≤ x h C 9 I Y i y NUNG BCDE F VT FF CR SO SI ESC FS GS RS US + / ? 0 ; K [ k . VLL- 1 MEM . M N m AZ CI {I } n O DELarrow_forward
- Explain the term masking. How is it useful for data representation? Explain the concept using an example For a floating-point format with a k -bit exponent and an n -bit fraction, give a formula for the smallest positive integer that cannot be represented exactly (because it would require an n + 1 –bit fraction to be exact).arrow_forwardQuestion 11 Computer Science Given a binary string of X=10011111, compute its binary arithmetic coding tag T(X), and what will be the coding length?arrow_forwardUse Huffman code to demonstrate that a variable length encoding scheme can be used to compress the following message: rammer_jammer_yellow_hammer_give_them_h_alabama How many bits were saved over a MINIMAL FIXED LENGTH encoding scheme?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning