Question

In: Computer Science

Any integer can be represented in binary, octal, decimal, and hexadecimal. What are the limits on...

Any integer can be represented in binary, octal, decimal, and hexadecimal. What are the limits on representing integers using unary or only having the 1 digit?

Solutions

Expert Solution

It is true that any integer can be represented in binary, octal, decimal, and hexadecimal.

For Eg- In binary 110 can represent 6, In Hecadecimal 32 can be represented by 20,etc

The limits on representing integers using unary or only having the 1 digit:-

  1. We will need significantly more number of digits to represent a number.Eg. 6 can be represented by 110 in binary, but in unary we will have two use six 1s "111111".
  2. It will be slower to compute using unary system, as more digits are needed to be calculated.
  3. Unary system will be more expensive than other systems, due to large number of digits.
  4. Ambiguity in representing zero. 0 is currently represented by an empty string. But in registers extra mechanisms might be needed to represent empty string.
  5. Empty string is itself a character. By using both empty string and 1 for representation. The unary system is not truly unary i.e. it uses 2 characters. So this is an ongoing debate in the scientific community whether "unary systems exist or not?".

Related Solutions

What is (567.12) octal in binary. What is(5CF.AD) hexadecimal in binary. Please show work so I...
What is (567.12) octal in binary. What is(5CF.AD) hexadecimal in binary. Please show work so I can understand how to solve thanks.
1) What are the hexadecimal, and octal equivalents for the unsigned binary value 0111 0000 1101?...
1) What are the hexadecimal, and octal equivalents for the unsigned binary value 0111 0000 1101? (note the spaces in the binary are for readability (like a comma in a decimal value; there is only a single 12 bit binary value) PLEASE EXPLAIN IT IN DETAIL
Write an application that prints a table of the binary and octal equivalent of the decimal...
Write an application that prints a table of the binary and octal equivalent of the decimal numbers in the range 1 through 256. **Write in JAVA**
Convert the following to Octal, hexadecimal and binary (long method (multiply and Divide by methods)) 2647.95...
Convert the following to Octal, hexadecimal and binary (long method (multiply and Divide by methods)) 2647.95 (10)
Program that does conversions (i.e. decimal to hexadecimal, binary to decimal) but needs to have a...
Program that does conversions (i.e. decimal to hexadecimal, binary to decimal) but needs to have a drop down menu to give you the option to choose with conversion you want to go from and convert into (JOptionPane). Cannot use the conversion tool that is built-in Java. Need to use equations or some sort. Please include comments on what is happening to understand.
Convert the following decimal number into (a) binary and (b) Octal (SHOW ALL STEPS) 205.75
Convert the following decimal number into (a) binary and (b) Octal (SHOW ALL STEPS) 205.75
With a detailed step-by-step process, convert the following decimal number into binary, Hexadecimal and IEEE 754...
With a detailed step-by-step process, convert the following decimal number into binary, Hexadecimal and IEEE 754 formats : 72.nn ( where nn is 80)
Write a MIPS Assembly Language program which runs interactively to convert between decimal, binary, and hexadecimal....
Write a MIPS Assembly Language program which runs interactively to convert between decimal, binary, and hexadecimal. 1. Request input data type. 2. Request input data. 3. Request output data type. 4. Output the data. Use any algorithm
What is the 11 bit, binary representation of -108? What is the hexadecimal equivalent of this...
What is the 11 bit, binary representation of -108? What is the hexadecimal equivalent of this number?
int bintodec(string); // converts a binary number (represented as a STRING) to decimal int hextodec(string); //...
int bintodec(string); // converts a binary number (represented as a STRING) to decimal int hextodec(string); // converts a hexadecimal number (represented as a STRING) to decimal string dectobin(int); // converts a decimal number to binary (represted as a STRING) string dectohex(int); // converts a decimal number to hexadecimal (represted as a STRING) //the addbin and addhex functions work on UNsigned numbers string addbin(string, string); // adds two binary numbers together (represented as STRINGS) string addhex(string, string); // adds two hexadecimal...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT