Date: Fri, 11 Oct. 2024 05:44:08 +00:00
Mime-Version: 1.0 (Produced by Tiki)
Content-Type: application/x-tikiwiki;
pagename=Introduction%20to%20the%20a%20simplified%20toy-DICOM%20file%20format%20I%20%28Problems%20for%20the%20reader%29;
flags="";
author=david.legrady;
version=2;
lastmodified=1329339654;
author_id=188.142.216.4;
summary="";
hits=3593;
description="";
charset=utf-8
Content-Transfer-Encoding: binary
^Translation of this page is incomplete.^
If you understand all what we have said about the binary and hexadecimal coding of alphanumeric characters then you would certainly solve the following Problems:
# If we know that the bits 1100 represent a number, what number do they represent in hexadecimal form and in decimal form?
# If we know that the half byte C represents a number, what number it is then in decimal form?
# If we know that the half byte CC represents a number, what number it is then in decimal form?
# If the two bytes 1F CC represent a number, can we tell what number it is without asking a question? What would that question be?
# Regarding the previous problem, let us assume that the answer to the question is: The place values increase from the left to the right. What then is our number in question in decimal form?
# If the answer is, as opposed to the previous answer: the place values increase from the left to the right. What is the number then in decimal form?
# Let us take the following byte stream:: ::11 01 1F 2A 11 11. :: Let as assume that these bytes represent a series of numbers. a) a. Is it possible to get the represented numbers without any questions? b) b. In order for us to be able decode this sequence what questions should be asked?
# Let us suppose now that the answers are a) These are words. The decimal numbers at stake are represented by pairs of bytes. b) The place values increase from the right to the left c)Having answered the questions, give the 3 decimal numbers encoded in our byte stream above
# Let us suppose that we have 3 special signs (bytes) 00, 11, FF. Then the task will be to decode a byte stream a) a. 00 tells us that the following byte in the stream represents one single decimal number, b) FF tells us that the following 2 bytes form a word, which represents a decimal number and the place values increase from the right to the left, c) 11 tells us that the following 3 bytes represent 3 Latin-2 characters d) Here is our byte sequence coded according to the rules given above :: 00 01 00 00 00 FF 00 B1 FF 00 00 FF 00 11 11 42 59 45 11 42 59 45:: e) What would happen if because of some error we could not see the first byte? f) How do we know that an FF in the stream is a part of a number, or is it a symbol helping us in decoding our byte stream? g) g. Let us decode the byte stream given above