Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««123

Binary Expand / Collapse
Author
Message
Posted Thursday, January 2, 2014 9:47 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: 2 days ago @ 12:50 PM
Points: 2,500, Visits: 1,586
Thanks Steve, Kind of like back to the very basics! Very Cool!

M.


Not all gray hairs are Dinosaurs!
Post #1527197
Posted Thursday, January 2, 2014 10:20 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Yesterday @ 12:40 PM
Points: 452, Visits: 1,233
IgorMi (1/1/2014)
Cool, in
11111011110
it was essential to spot that the first two bits (1) and the last one (0) are constructing the right answer.

Regards,
IgorMi


That's pretty much how I did it. Since the last bit had to be a zero since it's an even number, that narrowed it down to 2 answers. Since they differed on the second bit, I only calculated that far.

Love multiple choice.
Post #1527214
Posted Thursday, January 2, 2014 11:45 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 4:21 PM
Points: 7,928, Visits: 9,653
Nice question.

But although the explanation is correct adding up the 1 bits is doing it the hard way. 2014 is 2047 - 33, so the bits with are 0 must be the bit that represents 1 and teh bit that represents 32 - that's much easier. Or doing it by elimination as suggested by Igor and Marcia - 2014 is oddeven so the last bit is zero; it's bigger that 1536, so the 2nd bit (from the significant end) is not zero. That eliminates 3 of the 4 options, and is a lot easier than adding up the powers of two indicated by 10 bits to see if they come to 2014 even if you start by testing the correct value: if you did it that way and came to the correct value last you would end up adding up 3 sets of 10 numbers - no need to ad up teh 4th set once you know the others are all wrong - really a lot of work compared with the not-so-hard ways of doing it.


Tom
Post #1527240
Posted Thursday, January 2, 2014 12:33 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Thursday, December 18, 2014 10:56 AM
Points: 3,417, Visits: 2,035
Thanks for the fun question Steve. Haven't converted anything from binary since school. Happy 2014 all.
Post #1527256
Posted Monday, January 6, 2014 12:22 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Thursday, November 20, 2014 4:29 AM
Points: 3,559, Visits: 2,671
twin.devil (1/1/2014)
Bill (DBAOnTheGo) (12/31/2013)
There are only 10 types of people in this world.

+10


+10

Happy 2014...
Post #1527979
Posted Monday, January 6, 2014 3:25 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Thursday, December 18, 2014 12:52 PM
Points: 13,636, Visits: 11,509
Great question.

Happy 11111011110 to you all!




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1528016
Posted Friday, January 31, 2014 6:35 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 3:24 AM
Points: 1,144, Visits: 299
easy one this year on my blog, my happy new year wishes were in binary format :)
Post #1536758
Posted Sunday, February 9, 2014 1:02 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Wednesday, October 22, 2014 7:02 PM
Points: 2,157, Visits: 879
Excellent Question. Reducing things to Binary should remind Computer people of our origins.
Post #1539553
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse