The family of giants you work for is throwing a fancy dinner party, and they all want to look their best. But there’s a problem – the elder giant’s favorite shirt is wrinkled! To fix it, you’ll need to power up… the Giant Iron.
Familia ya majitu makubwa unayoifanyia kazi imeandaa karamu ya kuvutia, na wote wataka kuonekana wakiwa katika uzuri wao Lakini kuna tatizo moja - shati pendwa la kubwa la majitu limejikunja Kurekebisha, unatakiwa kuwasha... Pasi Kubwa.
The iron needs two giant batteries to work. You just had 4 working ones and 4 dead ones in separate piles, but it looks like the baby giant mixed them all up. You need to get the iron working and press the giant shirt, fast – or you’ll end up being the main course tonight!
Pasi inahitaji betri mbili kubwa kufanya kazi. Ulikuwa na 4 tu zifanyazo kazi na 4 mbovu katika marundo tofauti. Lakini inaonekana mtoto wa majitu amezichanganya zote. Unatakiwa kufanya pasi ifanye kazi na kunyoosha shati kubwa, haraka - au utaishia kuwa mlo mkuu usiku huu!
How can you test the batteries so that you’re guaranteed to get a working pair in 7 tries or less?
Unawezaje kupima betri ili uwe na uhakika wa kupata jozi nzima katika majaribio 7 au pungufu?
Pause the video now if you want to figure it out for yourself Answer in 3 Answer in 2 Answer in 1
Simamisha video sasa kama unataka kupiga hesabu mwenyewe Jibu ndani ya: 3 Jibu ndani ya: 2 Jibu ndani ya: 1
You could, of course, take all eight batteries and begin testing the 28 possible combinations. You might get lucky within the first few tries. But if you don’t, moving the giant batteries that many times will take way too long. You can’t rely on luck – you need to assume the worst possibility and plan accordingly.
Ungeweza kuchukua betri zote nane na kuanza kujaribu miungano yote 28 iwezekanayo. Unaweza bahatika ndani ya majaribio machache ya kwanza Lakini usipobahatika, kuhamisha betri kubwa mara nyingi hivyo kutachukua muda mrefu sana. Huwezi kutegemea bahati unatakiwa kufikiria matokeo mabaya kabisa na kupanga ipasavyo.
However, you don’t actually need to test every possible combination. Remember – there are four good batteries in total, meaning that any pile of six you choose will have at least two good batteries in it. That doesn’t help you right away, since testing all six batteries could still take as many as 15 tries. But it does give you a clue to the solution – dividing the batteries into smaller subsets narrows down the possible results.
Hata hivyo, huhitaji kujaribu kila muungano unaowezekana Kumbuka kuna betri 4 nzima kwa ujumla, ikimaanisha kuwa rundo lolote la 6 utakalochagua litakuwa na walau betri mbili nzima ndani yake. Hiyo haikusaidii papo hapo, sababu kujaribu betri zote sita kunaweza kuchukua hata majaribu 15 Lakini inakupa dokezo kuelekea ufumbuzi - kugawa betri katika sehemu ya seti ndogo ndogo inapunguza idadi ya matokeo
So instead of six batteries, let’s take any three. This group has a total of three possible combinations. Since both batteries have to be working for the iron to power up, a single failure can’t tell you whether both batteries are dead, or just one. But if all three combinations fail, then you’ll know this group has either one good battery, or none at all. Now you can set those three aside and repeat the process for another three batteries. You might get a match, but if every combination fails again, you’ll know this set can have no more than one good battery. That would leave only two batteries untried. Since there are four good batteries in total and you’ve only accounted for two so far, both of these remaining ones must be good.
Kwa hiyo badala ya betri sita tuchukue betri tatu zozote. kundi hili lina jumla ya miungano mitatu inayowezekana Kwa kuwa betri zote zatakiwa kufanya kazi ili pasi iwake, Kushindwa mara moja hakuwezi kukwambia kama betri zote mbovu au moja tu. Lakini miungano yote mitatu ikishindwa, hapo utajua kuwa kundi hili lina aidha betri moja nzima au zote mbovu Sasa unaweza kuziweka hizo tatu pembeni na kurudia mchakato huo kwa betri nyingine tatu Unaweza kupata zinazoendana, lakini miungano yote ikishindikana tena, utajua kuwa seti hii haina zaidi ya betri moja nzima. Hiyo itaacha betri mbili tu ambazo hazijajaribiwa. Kwa kuwa kuna betri nne nzima kwa ujumla na umetambua mbili tu hadi sasa mbili zilizobakia lazima zitakuwa nzima tu.
Dividing the batteries into sets of 3, 3, and 2 is guaranteed to get a working result in 7 tries or less, no matter what order you test the piles in.
Kugawa betri katika seti za 3, 3, na 2 kunatoa hakika kupata jibu sahihi katika majaribio 7 au pungufu bila kujali mpangilio unaojaribia marundo.
With no time to spare, the iron comes to life, and you manage to get the shirt flawlessly ironed. The pleased elder and his family show up to the party dressed to the nines … well, almost.
Bila kuwa na muda wa ziada, pasi inawaka, na unaweza kufanya shati lipigwe pasi vizuri. Mkubwa wa majitu aliyeridhika na familiaye wataingia karamuni wakivalia maridadi sana ....naam, karibia.