Warning: Illegal string offset 'html' in /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php on line 909

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 114

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 127

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 137

Warning: Cannot modify header information - headers already sent by (output started at /home/hsn/public_html/forum/cache/skin_cache/cacheid_1/skin_topic.php:909) in /home/hsn/public_html/forum/admin/sources/classes/output/formats/html/htmlOutput.php on line 141
Data Representaion - HSN forum

Jump to content


Data Representaion


10 replies to this topic

#1 Rocky

    Site Swot

  • Members
  • PipPipPipPip
  • 239 posts
  • Gender:Male

Posted 27 October 2005 - 03:30 PM

1:

Intergers- 16 bits
Real Numbers- 32 bits
Text- 8 bits

(i) What range of intergers can be stored using this representaion?


2:

Mantissa
101101100011101111011111
*24 bits

Exponent
10101111
*8 bits

(i) What range of numbers can be represented using this notation?
(ii) Explain clearly how the range of numbers could be increased using the same number of bits for the representation.



*Help will be appreciated.

#2 John

    HSN Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,713 posts
  • Location:In a Peripheral Estate in Glasgow
  • Interests:First the boring stuff:<br /><br />2004 Results:<br /><br />Highers:<br /><br />Computing A<br />Craft and Design A<br />Physics A<br />Administration A<br />English A<br />Maths A<br />Modern Studies A<br />French A<br /><br />2005 Results:<br /><br />Advanced Highers:<br />Computing A<br />Physics A<br />Maths A<br />Modern Studies A<br />English A<br /><br />2006 Results:<br /><br />Advanced Highers(All Crashed):<br />Chemistry A<br />Biology A<br />Business Managemnt A<br /><br />Aren't I marvellous?
  • Gender:Male

Posted 27 October 2005 - 03:38 PM

Is signed bit being used, twos complement, or none in them?

#3 Rocky

    Site Swot

  • Members
  • PipPipPipPip
  • 239 posts
  • Gender:Male

Posted 27 October 2005 - 03:43 PM

Its using "2 complement notation", soz I forgot to enter that in there.

#4 John

    HSN Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,713 posts
  • Location:In a Peripheral Estate in Glasgow
  • Interests:First the boring stuff:<br /><br />2004 Results:<br /><br />Highers:<br /><br />Computing A<br />Craft and Design A<br />Physics A<br />Administration A<br />English A<br />Maths A<br />Modern Studies A<br />French A<br /><br />2005 Results:<br /><br />Advanced Highers:<br />Computing A<br />Physics A<br />Maths A<br />Modern Studies A<br />English A<br /><br />2006 Results:<br /><br />Advanced Highers(All Crashed):<br />Chemistry A<br />Biology A<br />Business Managemnt A<br /><br />Aren't I marvellous?
  • Gender:Male

Posted 27 October 2005 - 06:07 PM

I'm going to give you hints first

1

find out what the largest power ism and make it negative, and from that you can work out the largest positive integer, thats your range

Never came across this before, so someone else can answer it

largest integer = amount of text characters

2

Not sure on hot to answer this one

#5 Rocky

    Site Swot

  • Members
  • PipPipPipPip
  • 239 posts
  • Gender:Male

Posted 27 October 2005 - 06:51 PM

I don't know anything you have said lol

#6 Rocky

    Site Swot

  • Members
  • PipPipPipPip
  • 239 posts
  • Gender:Male

Posted 28 October 2005 - 12:33 PM

1:

Intergers- 16 bits
Real Numbers- 32 bits
Text- 8 bits

(i) What range of intergers can be stored using this representaion?


2:

Mantissa
101101100011101111011111
*24 bits

Exponent
10101111
*8 bits

(i) What range of numbers can be represented using this notation?
(ii) Explain clearly how the range of numbers could be increased using the same number of bits for the representation.



*Help will be appreciated, as these are the only parts I am stuck at.
Btw I have done the other 6 Qs myself, so please help me with these 2 Qs.

#7 Rocky

    Site Swot

  • Members
  • PipPipPipPip
  • 239 posts
  • Gender:Male

Posted 28 October 2005 - 06:38 PM

In this time of trouble we need *music hits* DAVE lol

#8 coca

    Child Prodigy

  • Members
  • PipPipPipPipPipPip
  • 891 posts
  • Location:Stormwind City
  • Interests:Programming and gaming<br /><br />http://coca-123.bebo.com
  • Gender:Male

Posted 28 October 2005 - 09:49 PM

16 bit integers?! that's nuts! laugh.gif
<MrBob> I hate Uni. At least in film studies we get to talk about Fight Club.
<@X-Factor> Wouldnt you be breaking the first 2 rules?


#9 Rocky

    Site Swot

  • Members
  • PipPipPipPip
  • 239 posts
  • Gender:Male

Posted 29 October 2005 - 01:49 PM

Well, how do I do it then lol

#10 Rocky

    Site Swot

  • Members
  • PipPipPipPip
  • 239 posts
  • Gender:Male

Posted 29 October 2005 - 03:50 PM

QUOTE(Rocky @ Oct 28 2005, 01:33 PM)
1:

Intergers- 16 bits
Real Numbers- 32 bits
Text- 8 bits

(i) What range of intergers can be stored using this representaion?


2:

Mantissa
101101100011101111011111
*24 bits

Exponent
10101111
*8 bits

(i) What range of numbers can be represented using this notation?
(ii) Explain clearly how the range of numbers could be increased using the same number of bits for the representation.



*Help will be appreciated, as these are the only parts I am stuck at.
Btw I have done the other 6 Qs myself, so please help me with these 2 Qs.

View Post







PLEASE HELP ME sad.gif
As I've given harder Qs here, and got help immediately. But I gave some little Qs and no help sad.gif

#11 Dave

    Ruler (but not owner) of hsn

  • Moderators
  • PipPipPipPipPipPipPipPip
  • 4,252 posts
  • Location:kilmarnock(ok kilmaurs)
  • Interests:programming, exercising, brass band, using this board
  • Gender:Male

Posted 29 October 2005 - 08:08 PM

range of numbers with 2's complements is 216 divided by 2 and take 1

this is because for the total numbers being addressed be need + and - so its halved. Lastly we need to have a single zero number which is why we subtract zero

hence +- 32768 is the answer

for the next question the range in 2^255 i think tho i am not sure

the range can be increased bu increasing the size of the exponent


If i am not here i am somewhere else







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users