• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 12:11
CET 18:11
KST 02:11
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !3Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
When will we find out if there are more tournament Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win Did they add GM to 2v2? ComeBackTV's documentary on Byun's Career ! RSL Revival - 2025 Season Finals Preview
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET [BSL21] RO8 - Day 2 - Sunday 21:00 CET [ASL20] Grand Finals
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile General RTS Discussion Thread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1525 users

A challenging riddle/question - Page 3

Blogs > TadH
Post a Reply
Prev 1 2 3 All
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
March 29 2011 22:24 GMT
#41
On March 30 2011 05:25 TadH wrote:
I think you're probably the closest, I'm going to post the answer in a spoiler when it's released by IBM.

When is this going to be posted?
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
March 29 2011 22:42 GMT
#42
bleh, i got nothing good for B. i suck at this
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
TadH
Profile Blog Joined February 2010
Canada1846 Posts
March 29 2011 22:43 GMT
#43
On March 30 2011 07:24 EsX_Raptor wrote:
Show nested quote +
On March 30 2011 05:25 TadH wrote:
I think you're probably the closest, I'm going to post the answer in a spoiler when it's released by IBM.

When is this going to be posted?



They post the answer on the ibm website on april 1st i believe

in any case ill update it here.
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
March 29 2011 23:57 GMT
#44
On March 30 2011 04:06 EsX_Raptor wrote:
For those who do not understand how the Hamming Code works, here is a simplified and illustrative explanation in terms of the problem stated.

For simplification purposes, let us use 8 bits of data instead of 100,000.

Suppose the following is our data:

[image loading]

Suppose the following is the erroneous bit:

[image loading]

Since we have 8 bits of data, we will need ceiling(log2(8)) + 1 = 4 agents to diagnose it. Furthermore, the agents are labeled with numbers that are powers of 2.

Every agent checks certain bits based on their number. Here are the bits each checks:

[image loading]


[image loading]


[image loading]


[image loading]

From these images, it is easy to observe that agents 1 and 4 will die upon checking the faulty bit:

[image loading]

Therefore, bit 1 + 4 = 5 is the faulty bit:

[image loading]

---

By the way, for 100,000 bits, 18 agents are necessary--not 17.

QED


just to point out your error: the +1 agent is in fact not needed: Suppose the eighth of your bits would be the faulty one, then agents 1 through 3 would all survive, leaving bit 8 as the only possible solution for the broken bit.

The only thing achieved by your +1 agent is to prove, that the remaining bit is actually broken. But if you already know, that exactly one is broken, you don't need to sacrifice an agent just to prove that.

therefore, ceiling(log2(n)) is sufficient which is 17 for 100000 as i pointed out in the first reply ;P
Gold isn't everything in life... you need wood, too!
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
March 30 2011 00:34 GMT
#45
On March 30 2011 08:57 MisterD wrote:
just to point out your error: the +1 agent is in fact not needed: Suppose the eighth of your bits would be the faulty one, then agents 1 through 3 would all survive, leaving bit 8 as the only possible solution for the broken bit.

The only thing achieved by your +1 agent is to prove, that the remaining bit is actually broken. But if you already know, that exactly one is broken, you don't need to sacrifice an agent just to prove that.

therefore, ceiling(log2(n)) is sufficient which is 17 for 100000 as i pointed out in the first reply ;P

Brilliant! XD
THE_DOMINATOR
Profile Blog Joined April 2010
United States309 Posts
March 30 2011 04:22 GMT
#46
On March 30 2011 03:39 Kazius wrote:
Show nested quote +
On March 30 2011 00:55 THE_DOMINATOR wrote:
Hamming codes derp de der http://en.wikipedia.org/wiki/Hamming_code
MisterD is right you need 17 placed at each power of 2


Show nested quote +
On March 30 2011 01:05 THE_DOMINATOR wrote:
you still only need 17...no "queries" are even needed. All the agents have to do is run to their own subset and write down if each bit is a 0 or 1. Then they all meet up at the crew quarters(they can all go at once simultaneously) create the syndrome bits and compare.


Unfortunately, you're wrong. Just off the top of my head, have 16 search the first half in the first hour, if they found it, great. If they didn't, the 16 can find it in the next hour in the other half. Already one agent less.

BTW: After giving it 5 minutes of thought (and thanks to my Prof. for Discrete mathematics), I have the correct answer. PM me if you want a spoiler.

In mine no one dies
DOMINATION
Kiarip
Profile Joined August 2008
United States1835 Posts
Last Edited: 2011-03-30 07:56:59
March 30 2011 07:53 GMT
#47
OK.

If you divide 100000 bits into 21 areas, such that the intersection of any 7 is only 1 bit (this works out, because 21C7 > 100000,) then you only need 20 checks total. The most that can die without giving away the bit is 6, so you only need 13 total (13 + (13-6) = 20)

Still not as good as 11 =\. And since 7 die, you'll need at least 20 to do it twice.


BUUUT!


new solution for B!!!

16!

The first check goes as follows:

break up the set of all bits in to 29 subsets, such that the intersection of any 5 is only a single bit (and all of the bits resulting in intersections of different subsets are distinct, this is possible because 29C5 = 118 755 > 100000.)

Have 16 agents. First hour the first 16 check. At maximum 5 can die. If 5 do die, then you already know the faulty bit. If 4 die, you will need to do 12 more checks (you don't need to check the last section, because you know that a total of only 5 will cause agents to die, so if only 4 agents die you know the last one also contains the faulty bit.)

16 - 4 = 12 so even in the worst case you have enough to do the 12 more checks necessary.
At most 5 agents will die total, so you will always have 11 to complete the second check using the base-3 method posted earlier.

Kazius
Profile Blog Joined August 2009
Israel1456 Posts
Last Edited: 2011-04-01 03:25:19
April 01 2011 03:23 GMT
#48
Was gone for a while (more work?), but have managed to solve it. Very similar to Kiarip's solution here, but a tad more formal (and explaining why 29 and 5 are the necessary numbers).

Part A: 11 (question is equivalent to the number of bits required for representing a number between 1 and 100000 in base 3). Simple enough, and a satisfactory explanation has been given.

Part B:
1) Let there be a division of the 100000 bits into M groups, so that each N groups overlap in one bit. N will be the amount of agents killed, as N groups will overlap on the faulty bit.

Requirements:

A) M choose N must be greater than or equal to 100000. Otherwise, there is not enough information to be sure of the location of the faulty bit.
B) M-1 groups will have to be checked. If there is one death too little, we know that it is in the unchecked group, so that is equivalent to a check as well. Any less checks will allow two groups to be unchecked, and hence locating the faulty bit will not be assured.

2) There must be 11 + N agents, because 11 must survive, and up to N will die (N groups with the faulty bit may be checked).

3) The minimum amount of groups checked: All agents (11 + N) in the first check, 12 agents (11+1) in the second check (if all five die in the first check, it is located, otherwise, 12 or more remain for the second check).

4) Due to 1B, 2 and 3: M-1 = 11 + N + 12
Hence: M = 24 + N

5) Due to 1 and 4: the question can now be phrased thusly: what is 11+N, when N is the minimal natural number in which (24 + N choose N) is greater than or equal to 100000?

6) Calculation: N is 5.

Result: There must be at least 16 (11+5) agents in the first check in order to positively locate the faulty bit in 2 hours, with a minimal amount of agents left in order to complete a second check.
Friendship is like peeing yourself. Anyone can see it, but only you get that warm feeling.
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
April 04 2011 16:14 GMT
#49
so?
Prev 1 2 3 All
Please log in or register to reply.
Live Events Refresh
WardiTV 2025
13:00
Playoffs
Scarlett vs GeraldLIVE!
Rogue vs Shameless
MaNa vs ShoWTimE
Nice vs Creator
WardiTV1513
ComeBackTV 792
TaKeTV 390
IndyStarCraft 261
Rex108
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
IndyStarCraft 261
ProTech138
Rex 108
BRAT_OK 75
UpATreeSC 56
DivinesiaTV 15
StarCraft: Brood War
Britney 24624
Sea 3678
Calm 1933
EffOrt 1002
Larva 949
Mini 861
Soma 506
Horang2 440
ZerO 315
Snow 310
[ Show more ]
firebathero 280
Sharp 216
Rush 183
hero 172
actioN 134
Hyun 64
PianO 45
sorry 44
JYJ 43
Aegong 26
Mind 25
Terrorterran 17
soO 15
scan(afreeca) 14
Shine 12
Sacsri 12
Mong 9
Dota 2
Gorgc6322
singsing3757
qojqva3441
Dendi1134
syndereN356
Other Games
FrodaN1376
Beastyqt771
B2W.Neo698
crisheroes306
DeMusliM134
KnowMe115
QueenE99
Livibee62
Trikslyr61
Mew2King44
nookyyy 37
ZerO(Twitch)29
trigger8
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• StrangeGG 54
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 26
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV592
League of Legends
• Nemesis2548
• TFBlade882
Other Games
• Shiphtur139
Upcoming Events
WardiTV 2025
17h 49m
ByuN vs TBD
Clem vs TBD
OSC
20h 49m
CranKy Ducklings
1d 16h
WardiTV 2025
1d 17h
SC Evo League
1d 19h
Ladder Legends
2 days
BSL 21
2 days
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
2 days
Ladder Legends
2 days
BSL 21
3 days
StRyKeR vs TBD
Bonyth vs TBD
[ Show More ]
Replay Cast
3 days
Wardi Open
3 days
Monday Night Weeklies
3 days
WardiTV Invitational
5 days
Replay Cast
6 days
WardiTV Invitational
6 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 1
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL Season 19: Qualifier 2
CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.