• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:43
CET 16:43
KST 00:43
  • 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
Behind the Blue - Team Liquid History Book15Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8herO wins SC2 All-Star Invitational14
Community News
ACS replaced by "ASL Season Open" - Starts 21/0212LiuLi Cup: 2025 Grand Finals (Feb 10-16)17Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker9PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)12
StarCraft 2
General
Nexon's StarCraft game could be FPS, led by UMS maker Terran Scanner Sweep How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Behind the Blue - Team Liquid History Book Weekly Cups (Jan 12-18): herO, MaxPax, Solar win
Tourneys
LiuLi Cup: 2025 Grand Finals (Feb 10-16) RSL Revival: Season 4 Korea Qualifier (Feb 14) PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth Mutation # 510 Safety Violation
Brood War
General
ACS replaced by "ASL Season Open" - Starts 21/02 Gypsy to Korea Liquipedia.net NEEDS editors for Brood War Recent recommended BW games [ASL21] Potential Map Candidates
Tourneys
Escore Tournament StarCraft Season 1 [Megathread] Daily Proleagues Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Fighting Spirit mining rates Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta
Other Games
General Games
Diablo 2 thread Path of Exile Nintendo Switch Thread Battle Aces/David Kim RTS Megathread ZeroSpace Megathread
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 Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread The Games Industry And ATVI Ask and answer stupid questions here! Russo-Ukrainian War Thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
ADHD And Gaming Addiction…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2556 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
Next event in 1h 17m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Grubby 2236
ProTech148
Ryung 45
StarCraft: Brood War
Rain 8227
Jaedong 622
Hyuk 456
firebathero 278
Soulkey 237
Zeus 214
Rush 164
Hm[arnc] 144
Barracks 111
Sea.KH 110
[ Show more ]
PianO 76
Yoon 58
[sc1f]eonzerg 51
Backho 38
sSak 36
JulyZerg 36
yabsab 34
Rock 30
ToSsGirL 30
Nal_rA 26
Noble 22
soO 20
Terrorterran 17
ajuk12(nOOB) 13
ivOry 9
Britney 0
Dota 2
Gorgc6047
singsing3336
qojqva2334
Fuzer 202
XcaliburYe167
420jenkins106
Counter-Strike
byalli1473
allub421
Super Smash Bros
Mew2King76
Heroes of the Storm
Khaldor198
Other Games
gofns15607
hiko687
crisheroes399
Sick143
KnowMe81
ArmadaUGS75
djWHEAT73
Trikslyr21
MindelVK2
Organizations
Other Games
BasetradeTV13
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• poizon28 24
• iHatsuTV 6
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• Migwel
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Michael_bg 2
• FirePhoenix2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV204
League of Legends
• Nemesis5823
• Jankos1945
• TFBlade1083
Upcoming Events
Big Brain Bouts
1h 17m
ByuN vs GgMaChine
Serral vs Jumy
RSL Revival
11h 17m
RSL Revival
16h 17m
LiuLi Cup
19h 17m
uThermal 2v2 Circuit
20h 17m
RSL Revival
1d 2h
Replay Cast
1d 8h
Sparkling Tuna Cup
1d 18h
LiuLi Cup
1d 19h
Replay Cast
2 days
[ Show More ]
Replay Cast
2 days
LiuLi Cup
2 days
Wardi Open
2 days
Monday Night Weeklies
3 days
OSC
3 days
WardiTV Winter Champion…
3 days
Replay Cast
4 days
WardiTV Winter Champion…
4 days
Replay Cast
5 days
The PondCast
5 days
KCM Race Survival
5 days
WardiTV Winter Champion…
5 days
Replay Cast
6 days
Epic.LAN
6 days
Liquipedia Results

Completed

Proleague 2026-02-10
Rongyi Cup S3
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Escore Tournament S1: W8
LiuLi Cup: 2025 Grand Finals
Nations Cup 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
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 © 2026 TLnet. All Rights Reserved.