Here you can ask questions and find or give answers to organizational, academic and other questions about studying computer science.

1.1k questions

1.3k answers

1.7k comments

556 users

0 votes
In the SS14 exam number 2c) they convert a number from Radix-6 to Radix-4 to Complement-4. Is this solution sufficient? And how come they apply the first digit "rule" to the Radix number? They add a 0 to the Radix-4 number and add a 'Z'.

<[1012]>6 = 224 = <[3200]>4 = <[03200]>4 Z
in * Other Teaching Fields by (200 points)

1 Answer

+2 votes

they add a 0 to the Radix-4 number and add a 'Z'

The radix number is non-negative, but a complement number starting with 3 in base-4 is negative. By adding the leading zero we make sure that it is still non-negative. In general radix numbers can be extended with leading zeroes, without changing their value. Complement numbers that are non-negative can be extended with leading zeroes. And complement numbers that are negative can be extended with B-1.


Is this solution sufficient?

If it says "give the computation steps" and "don't use base-10 as intermediate", you would need to provide more. But if not, then this solution is ok. In any case it is useful to write some of the computation steps. That way you can gain partial points even if the final answer is wrong.

by (2.4k points)

Related questions

+1 vote
1 answer
asked Aug 18, 2020 in * Other Teaching Fields by davidschulz (410 points)
+1 vote
1 answer
asked Aug 18, 2020 in * Other Teaching Fields by Eichi (200 points)
0 votes
1 answer
0 votes
1 answer
Imprint | Privacy Policy
...