• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:24
CET 14:24
KST 22:24
  • 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
[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9
Community News
Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win22025 RSL Offline Finals Dates + Ticket Sales!9BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION1Crank Gathers Season 2: SC II Pro Teams10Merivale 8 Open - LAN - Stellar Fest3
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win Could we add "Avoid Matchup" Feature for rankgame The New Patch Killed Mech! Chinese SC2 server to reopen; live all-star event in Hangzhou
Tourneys
Crank Gathers Season 2: SC II Pro Teams 2025 RSL Offline Finals Dates + Ticket Sales! Merivale 8 Open - LAN - Stellar Fest $5,000+ WardiTV 2025 Championship $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions BW General Discussion BSL Team A vs Koreans - Sat-Sun 16:00 CET [ASL20] Finals Preview: Arrival
Tourneys
[ASL20] Grand Finals The Casual Games of the Week Thread BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION ASL final tickets help
Strategy
PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2 Current Meta
Other Games
General Games
Stormgate/Frost Giant Megathread General RTS Discussion Thread Path of Exile Nintendo Switch Thread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine US Politics Mega-thread YouTube Thread The Chess Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread MLB/Baseball 2023 Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Just for future reference, …
Peanutsc
Reality "theory" prov…
perfectspheres
The Benefits Of Limited Comm…
TrAiDoS
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1335 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
CrankTV Team League
13:00
Playoffs: 2 Bo9s
Shopify Rebellion vs Team FalconLIVE!
BASILISK vs Team Liquid
LiquipediaDiscussion
OSC
12:00
King of the Hill #229
WardiTV608
IndyStarCraft 87
iHatsuTV 19
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko373
Rex 98
IndyStarCraft 76
RotterdaM 64
ProTech63
Codebar 10
StarCraft: Brood War
Bisu 2700
BeSt 950
actioN 338
EffOrt 236
Mini 230
Last 208
sSak 152
Light 128
Mind 82
Liquid`Ret 76
[ Show more ]
ToSsGirL 68
Larva 61
Aegong 53
PianO 42
Sharp 19
soO 17
yabsab 16
Terrorterran 14
Sacsri 14
scan(afreeca) 12
sorry 8
HiyA 7
Dota 2
Gorgc1595
qojqva690
XcaliburYe267
Dendi259
420jenkins159
ODPixel139
BananaSlamJamma89
Fuzer 1
Counter-Strike
fl0m1561
olofmeister1222
x6flipin638
Other Games
singsing2042
B2W.Neo735
hiko516
crisheroes340
DeMusliM310
Pyrionflax207
Sick193
Hui .158
byalli100
Mew2King61
Organizations
Counter-Strike
PGL14399
StarCraft: Brood War
lovetv 17
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1551
League of Legends
• Jankos3240
Upcoming Events
OSC
2h 36m
Replay Cast
9h 36m
The PondCast
19h 36m
CrankTV Team League
23h 36m
Replay Cast
1d 20h
WardiTV Invitational
1d 22h
ByuN vs Spirit
herO vs Solar
MaNa vs Gerald
Rogue vs GuMiho
CrankTV Team League
1d 23h
Replay Cast
2 days
BSL Team A[vengers]
3 days
Dewalt vs Shine
UltrA vs ZeLoT
BSL 21
3 days
[ Show More ]
Sparkling Tuna Cup
3 days
BSL Team A[vengers]
4 days
Cross vs Motive
Sziky vs HiyA
BSL 21
4 days
Wardi Open
4 days
Monday Night Weeklies
5 days
Liquipedia Results

Completed

CSL 2025 AUTUMN (S18)
WardiTV TLMC #15
Eternal Conflict S1

Ongoing

BSL 21 Points
BSL 21 Team A
C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
CranK Gathers Season 2: SC II Pro Teams
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025

Upcoming

SC4ALL: Brood War
YSL S2
BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
META Madness #9
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
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.