For the World Puzzle Championship puzzle with numbers, see Balance (puzzle).
A balance puzzle or weighing puzzle is a logic puzzle about balancing items—often coins—to determine which one has different weight than the rest, by using balance scales a limited number of times.
The solution to the most common puzzle variants is summarized in the following table:[1]
Known
Goal
Maximum coins for nweighings
Number of weighings for ccoins
Whether target coin is lighter or heavier than others
Identify coin
Target coin is different from others
Identify coin
Target coin is different from others, or all coins are the same
Identify if unique coin exists, and whether it is lighter or heavier
For example, in detecting a dissimilar coin in three weighings (), the maximum number of coins that can be analyzed is . Note that with weighings and coins, it is not always possible to determine the nature of the last coin (whether it is heavier or lighter than the rest), but only that the other coins are all the same, implying that the last coin is the dissimilar coin. In general, with weighings, one can always determine the identity and nature of a single dissimilar coin if there are or fewer coins. In the case of three weighings, it is possible to find and describe a single dissimilar coin among a collection of coins.
This twelve-coin version of the problem appeared in print as early as 1945[2][3] and Guy and Nowakowski explain it "was popular on both sides of the Atlantic during WW2; it was even suggested that it be dropped over Germany in an attempt to sabotage their war effort".[3]
Nine-coin problem
A well-known example has up to nine items, say coins (or balls), that are identical in weight except one, which is lighter than the others—a counterfeit (an oddball). The difference is perceptible only by weighing them on scale—but only the coins themselves can be weighed. How can one isolate the counterfeit coin with only two weighings?
Solution
To find a solution, we first consider the maximum number of items from which one can find the lighter one in just one weighing. The maximum number possible is three. To find the lighter one, we can compare any two coins, leaving the third out. If the two coins weigh the same, then the lighter coin must be one of those not on the balance. Otherwise, it is the one indicated as lighter by the balance.
Now, imagine the nine coins in three stacks of three coins each. In one move we can find which of the three stacks is lighter (i.e. the one containing the lighter coin). It then takes only one more move to identify the light coin from within that lighter stack. So in two weighings, we can find a single light coin from a set of 3 × 3 = 9.
By extension, it would take only three weighings to find the odd light coin among 27 coins, and four weighings to find it from 81 coins.
Twelve-coin problem
A more complex version has twelve coins, eleven of twelve of which are identical. If one is different, we don't know whether it is heavier or lighter than the others. This time the balance may be used three times to determine if there is a unique coin—and if there is, to isolate it and determine its weight relative to the others. (This puzzle and its solution first appeared in an article in 1945.[2]) The problem has a simpler variant with three coins in two weighings, and a more complex variant with 39 coins in four weighings.
Solution
This problem has more than one solution. One is easily scalable to a higher number of coins by using base-three numbering: labelling each coin with a different number of three digits in base three, and positioning at the n-th weighing all the coins that are labelled with the n-th digit identical to the label of the plate (with three plates, one on each side of the scale labelled 0 and 2, and one off the scale labelled 1).[4] Other step-by-step procedures are similar to the following. It is less straightforward for this problem, and the second and third weighings depend on what has happened previously, although that need not be the case (see below).
Four coins are put on each side. There are two possibilities:
1. One side is heavier than the other. If this is the case, remove three coins from the heavier side, move three coins from the lighter side to the heavier side, and place three coins that were not weighed the first time on the lighter side. (Remember which coins are which.) There are three possibilities:
1.a) The same side that was heavier the first time is still heavier. This means that either the coin that stayed there is heavier or that the coin that stayed on the lighter side is lighter. Balancing one of these against one of the other ten coins reveals which of these is true, thus solving the puzzle.
1.b) The side that was heavier the first time is lighter the second time. This means that one of the three coins that went from the lighter side to the heavier side is the light coin. For the third attempt, weigh two of these coins against each other: if one is lighter, it is the unique coin; if they balance, the third coin is the light one.
1.c) Both sides are even. This means that one of the three coins that was removed from the heavier side is the heavy coin. For the third attempt, weigh two of these coins against each other: if one is heavier, it is the unique coin; if they balance, the third coin is the heavy one.
2. Both sides are even. If this is the case, all eight coins are identical and can be set aside. Take the four remaining coins and place three on one side of the balance. Place 3 of the 8 identical coins on the other side. There are three possibilities:
2.a) The three remaining coins are lighter. In this case you now know that one of those three coins is the odd one out and that it is lighter. Take two of those three coins and weigh them against each other. If the balance tips then the lighter coin is the odd one out. If the two coins balance then the third coin not on the balance is the odd one out and it is lighter.
2.b) The three remaining coins are heavier. In this case you now know that one of those three coins is the odd one out and that it is heavier. Take two of those three coins and weigh them against each other. If the balance tips then the heavier coin is the odd one out. If the two coins balance then the third coin not on the balance is the odd one out and it is heavier.
2.c) The three remaining coins balance. In this case you just need to weigh the remaining coin against any of the other 11 coins and this tells you whether it is heavier, lighter, or the same.
Variations
Given a population of 13 coins in which it is known that 1 of the 13 is different (mass) from the rest, it is simple to determine which coin it is with a balance and 3 tests as follows:
1) Subdivide the coins in to 2 groups of 4 coins and a third group with the remaining 5 coins.
2) Test 1, Test the 2 groups of 4 coins against each other:
a. If the coins balance, the odd coin is in the population of 5 and proceed to test 2a.
b. The odd coin is among the population of 8 coins, proceed in the same way as in the 12 coins problem.
3) Test 2a, Test 3 of the coins from the group of 5 coins against any 3 coins from the population of 8 coins:
a. If the 3 coins balance, then the odd coin is among the remaining population of 2 coins. Test one of the 2 coins against any other coin; if they balance, the odd coin is the last untested coin, if they do not balance, the odd coin is the current test coin.
b. If the 3 coins do not balance, then the odd coin is from this population of 3 coins. Pay attention to the direction of the balance swing (up means the odd coin is light, down means it is heavy). Remove one of the 3 coins, move another to the other side of the balance (remove all other coins from balance). If the balance evens out, the odd coin is the coin that was removed. If the balance switches direction, the odd coin is the one that was moved to the other side, otherwise, the odd coin is the coin that remained in place.
With a reference coin
If there is one authentic coin for reference then the suspect coins can be thirteen. Number the coins from 1 to 13 and the authentic coin number 0 and perform these weighings in any order:
0, 1, 4, 5, 6 against 7, 10, 11, 12, 13
0, 2, 4, 10, 11 against 5, 8, 9, 12, 13
0, 3, 8, 10, 12 against 6, 7, 9, 11, 13
If the scales are only off balance once, then it must be one of the coins 1, 2, 3—which only appear in one weighing.
If there is never balance then it must be one of the coins 10–13 that appear in all weighings. Picking out the one counterfeit coin corresponding to each of the 27 outcomes is always possible (13 coins one either too heavy or too light is 26 possibilities) except when all weighings are balanced, in which case there is no counterfeit coin (or its weight is correct). If coins 0 and 13 are deleted from these weighings they give one generic solution to the 12-coin problem.
If two coins are counterfeit, this procedure, in general, does not pick either of these, but rather some authentic coin. For instance, if both coins 1 and 2 are counterfeit, either coin 4 or 5 is wrongly picked.
Without a reference coin
In a relaxed variation of this puzzle, one only needs to find the counterfeit coin without necessarily being able to tell its weight relative to the others. In this case, clearly any solution that previously weighed every coin at some point can be adapted to handle one extra coin. This coin is never put on the scales, but if all weighings are balanced it is picked as the counterfeit coin. It is not possible to do any better, since any coin that is put on the scales at some point and picked as the counterfeit coin can then always be assigned weight relative to the others.
A method which weighs the same sets of coins regardless of outcomes lets one either
(among 12 coins A–L) conclude if they all weigh the same, or find the odd coin and tell if it is lighter or heavier, or
(among 13 coins A–M) find the odd coin, and, at 12/13 probability, tell if it is lighter or heavier (for the remaining 1/13 probability, just that it is different).
The three possible outcomes of each weighing can be denoted by "\" for the left side being lighter, "/" for the right side being lighter, and "–" for both sides having the same weight. The symbols for the weighings are listed in sequence. For example, "//–" means that the right side is lighter in the first and second weighings, and both sides weigh the same in the third weighing. Three weighings give the following 33 = 27 outcomes. Except for "–––", the sets are divided such that each set on the right has a "/" where the set on the left has a "\", and vice versa:
As each weighing gives a meaningful result only when the number of coins on the left side is equal to the number on the right side, we disregard the first row, so that each column has the same number of "\" and "/" symbols (four of each). The rows are labelled, the order of the coins being irrelevant:
\// A light /\\ A heavy
/\/ B light \/\ B heavy
//\ C light \\/ C heavy
\/– D light /\– D heavy
–\/ E light –/\ E heavy
/–\ F light \–/ F heavy
\\– G light //– G heavy
–\\ H light –// H heavy
\–\ I light /–/ I heavy
/–– J light \–– J heavy
–/– K light –\– K heavy
––/ L light ––\ L heavy
––– M either lighter or heavier (13-coin case),
or all coins weigh the same (12-coin case)
Using the pattern of outcomes above, the composition of coins for each weighing can be determined; for example the set "\/– D light" implies that coin D must be on the left side in the first weighing (to cause that side to be lighter), on the right side in the second, and unused in the third:
1st weighing: left side: ADGI, right side: BCFJ
2nd weighing: left side: BEGH, right side: ACDK
3rd weighing: left side: CFHI, right side: ABEL
The outcomes are then read off the table. For example, if the right side is lighter in the first two weighings and both sides weigh the same in the third, the corresponding code "//– G heavy" implies that coin G is the odd one, and it is heavier than the others.[5]
Generalization to multiple scales
In another generalization of this problem, we have two balance scales that can be used in parallel. For example, if you know exactly one coin is different but do not know if it is heavier or lighter than a normal coin, then in rounds, you can solve the problem with at most coins.[6]
Generalization to multiple unknown coins
The generalization of this problem is described in Chudnov.[7]
Let be the -dimensional Euclidean space and be the inner product of vectors and from For vectors and subsets the operations and are defined, respectively, as ; , , By we shall denote the discrete [−1; 1]-cube in ; i.e., the set of all sequences of length over the alphabet The set is the discrete ball of radius (in the Hamming metric ) with centre at the point Relative weights of objects are given by a vector which defines the configurations of weights of the objects: the th object has standard weight if the weight of the th object is greater (smaller) by a constant (unknown) value if (respectively, ). The vector characterizes the types of objects: the standard type, the non-standard type (i.e., configurations of types), and it does not contain information about relative weights of non-standard objects.
A weighing (a check) is given by a vector the result of a weighing for a situation is The weighing given by a vector has the following interpretation: for a given check the th object participates in the weighing if ; it is put on the left balance pan if and is put on the right pan if For each weighing , both pans should contain the same number of objects: if on some pan the number of objects is smaller than as it should be, then it receives some reference objects. The result of a weighing describes the following cases: the balance if , the left pan outweighs the right one if , and the right pan outweighs the left one if The incompleteness of initial information about the distribution of weights of a group of objects is characterized by the set of admissible distributions of weights of objects which is also called the set of admissible situations, the elements of are called admissible situations.
Each weighing induces the partition of the set by the plane (hyperplane ) into three parts , and defines the corresponding partition of the set where
Definition 1. A weighing algorithm (WA) of length is a sequence where is the function determining the check at each th step, of the algorithm from the results of weighings at the previous steps ( is a given initial check).
Let be the set of all -syndromes and be the set of situations with the same syndrome ; i.e., ;
Definition 2. A WA is said to:
a) identify the situations in a set if the condition is satisfied for all
b) identify the types of objects in a set if the condition is satisfied for all
It is proved in [7] that for so-called suitable sets an algorithm of identification the types identifies also the situations in
As an example the perfect dynamic (two-cascade) algorithms with parameters are constructed in [7] which correspond to the parameters of the perfect ternary Golay code (Virtakallio-Golay code). At the same time, it is established that a static WA (i.e. weighting code) with the same parameters does not exist.
Each of these algorithms using 5 weighings finds among 11 coins up to two counterfeit coins which could be heavier or lighter than real coins by the same value. In this case the uncertainty domain (the set of admissible situations) contains situations, i.e. the constructed WA lies on the Hamming bound for and in this sense is perfect.
To date it is not known whether there are other perfect WA that identify the situations in for some values of . Moreover, it is not known whether for some there exist solutions for the equation
(corresponding to the Hamming bound for ternary codes) which is, obviously, necessary for the existence of a perfect WA. It is only known that for there are no perfect WA, and for this equation has the unique nontrivial solution which determines the parameters of the constructed perfect WA.
^Khovanova, Tanya (2013). "Solution to the Counterfeit Coin Problem and its Generalization". arXiv:1310.7268 [math.HO].
^ abcChudnov, Alexander M. (2015). "Weighing algorithms of classification and identification of situations". Discrete Mathematics and Applications. 25 (2): 69–81. doi:10.1515/dma-2015-0007. S2CID124796871.
Benazio KriboLahirBenazio Rizki Putra3 Februari 1990 (umur 34)Jakarta, IndonesiaNama lainBenakriboPekerjaanNarablog penulis videografer komedian personalia YouTube AktorTahun aktif2008 - sekarangSuami/istriVendryana (m. 2016)Anak2Situs webwww.benablog.com Bena Kribo (lahir 3 Februari 1990) adalah seorang komedian dan personalia internet berkebangsaan Indonesia. Keluarga dan pendidikan Ia memulai pendidikannya di Taman Kanak-kanak Al-Hidayah, lalu melanjutkan Sekolah Dasar di S...
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: 2016 Kirklees Metropolitan Borough Council election – news · newspapers · books · scholar · JSTOR (April 2016) (Learn how and when to remove this template message) 2016 local election results in Kirklees The 2016 Kirklees Metropolitan Borough Council election t...
العلاقات الإندونيسية القبرصية إندونيسيا قبرص إندونيسيا قبرص تعديل مصدري - تعديل العلاقات الإندونيسية القبرصية هي العلاقات الثنائية التي تجمع بين إندونيسيا وقبرص.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه الم...
Koordinat: 56°23′49″N 3°26′13″W / 56.397°N 3.437°W / 56.397; -3.437 Perth bahasa Gaelik Skotlandia: Peairt bahasa Scots: Perth[1] St John's Toun (nama lama)The Fair City (julukan)[2] Pemandangan Jalan Tay di Perth Perth Letak Perth di Britania Raya Population 50.000 (2011) Ref. grid OS NO115235 Wilayah dewan Perth dan Kinross Wilayah keletnanan Perth dan Kinross Negara konstituen Scotland Negara ber...
Gruppa A 1936 (autunno) Competizione Vysšaja Liga Sport Calcio Edizione 2ª Organizzatore FFSSSR Date dal 5 settembre 1936al 30 ottobre 1936 Luogo Unione Sovietica Partecipanti 8 Formula Girone all'italiana Risultati Vincitore Spartak Mosca(1º titolo) Retrocessioni CDKA Mosca Statistiche Miglior marcatore Glazkov (7) Incontri disputati 28 Gol segnati 117 (4,18 per incontro) Cronologia della competizione primavera 1936 1937 Manuale L'edizione 1936 - d'aut...
English footballer Joseph Gettins Gettins while with Millwall Athletic in 1898Personal informationFull name Joseph Holmes Gettins[1]Date of birth 19 November 1873Place of birth Middlesbrough, EnglandDate of death 6 June 1954(1954-06-06) (aged 80)[1]Place of death East Molesey, England[2]Position(s) Centre forwardSenior career*Years Team Apps (Gls)1894–1895 Brentford 0 (0) Millwall Athletic Middlesbrough Millwall Athletic Corinthian Millwall Athletic 1899 Middles...
Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Februari 2023. BlackmoresJenisPublikKode emitenASX: BKLIndustriSuplemen kesehatanDidirikan1930anPendiriMaurice BlackmoreKantorpusatSydney, AustraliaSitus webwww.blackmores.com.au Blackmores Limited adalah sebuah perusahaan suplemen kesehatan Australia yang didi...
烏克蘭總理Прем'єр-міністр України烏克蘭國徽現任杰尼斯·什米加尔自2020年3月4日任命者烏克蘭總統任期總統任命首任維托爾德·福金设立1991年11月后继职位無网站www.kmu.gov.ua/control/en/(英文) 乌克兰 乌克兰政府与政治系列条目 宪法 政府 总统 弗拉基米尔·泽连斯基 總統辦公室 国家安全与国防事务委员会 总统代表(英语:Representatives of the President of Ukraine) 总...
بطولة العالم لسباق الدراجات على الطريق 2015 معلومات عامة الرياضة سباق الدراجات على الطريق الاتحاد المشرف الاتحاد الدولي للدراجات (UCI) الدورة 88 المستضيف الولايات المتحدة ريتشموند (فيرجينيا) التاريخ 2015 حفل الاختتام 27 سبتمبر 2015 البلد الولايات المتحدة مكان التنظيم ري...
العلاقات السورية المدغشقرية سوريا مدغشقر سوريا مدغشقر تعديل مصدري - تعديل العلاقات السورية المدغشقرية هي العلاقات الثنائية التي تجمع بين سوريا ومدغشقر.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه المقارنة سوري�...
Sebuah contoh poligon cembung: segilima cembung. Poligon cembung (bahasa Inggris: convex polygon) adalah poligon yang mempunyai batas berupa himpunan cembung. Hal ini berarti bahwa segmen garis di antara dua titik poligon terkandung dalam gabungan dari interior dan batas poligon. Secara khusus, poligon cembung adalah poligon sederhana (yang tidak berpotongan diri). Dengan kata lain, poligon disebut cembung jika setiap garis yang tidak mengandung semua rusuk yang memotong dua titik poligon...
Ángel Lafita Lafita berlatih bersama ZaragozaInformasi pribadiNama lengkap Ángel Lafita CastilloTanggal lahir 7 Agustus 1984 (umur 39)Tempat lahir Zaragoza, SpainTinggi 1,88 m (6 ft 2 in)Posisi bermain SayapInformasi klubKlub saat ini GetafeNomor 18Karier junior ZaragozaKarier senior*Tahun Tim Tampil (Gol)2003–2005 Zaragoza B 63 (6)2005–2008 Zaragoza 41 (1)2007–2008 → Deportivo La Coruña (pinjam) 24 (3)2008–2009 Deportivo La Coruña 33 (8)2009–2012 Zaragoza...
Voce principale: XVII Giochi del Mediterraneo. Le gare di canoa/kayak ai XVII Giochi del Mediterraneo si sono svolte il 27 e il 29 giugno 2013 alla boathouse nella Çukurova Üniversitesi. Si è gareggiato in sei categorie diverse, di cui quattro maschili e due femminili, tutte kayak. Indice 1 Calendario 2 Risultati 2.1 Uomini 2.2 Donne 3 Medagliere 4 Collegamenti esterni Calendario Le gare hanno seguito il seguente calendario: ● Competizioni ● Finali Giugno 18 19...
A 1733 map of Charleston published by Herman Moll Part of a series on the History of South Carolina Timeline Colonial period 1562–1774 American Revolution 1775–1788 Antebellum period 1812–1860 Civil War era 1861–1865 Reconstruction era 1865–1877 Civil Rights Movement 1954–1968 Economy of South Carolina 1651–2021 State of South Carolina United States portalvte The history of Charleston, South Carolina, is one of the longest and most diverse of any community in the United Sta...
French speed skater Thibaut FauconnetFauconnet trailing Apolo Ohno in a World Cup race, 2004.Personal informationBorn (1985-04-23) 23 April 1985 (age 39)Dijon, FranceHeight5 ft 7+1⁄2 in (171 cm)Weight154 lb (70 kg)SportCountry FranceSportShort track speed skating Medal record Men's short track speed skating Representing France European Championships 2010 Dresden Overall 2018 Dresden 3000 m SF Disqualified 2011 Heerenveen Overall Disqualified 2012...
Kinetoscopio Vista interna di un kinetoscopio Il kinetoscopio è un apparecchio prodotto da Thomas Edison nel 1888, precursore di un proiettore cinematografico. Fu sviluppato tra il 1889 e il 1892 dall'operatore di Edison William Dickson.[1] Indice 1 Descrizione 2 Note 3 Altri progetti 4 Collegamenti esterni Descrizione Si trattava di una sorta di grande cassa sulla cui sommità si trovava un oculare; lo spettatore poggiava l'occhio su di esso, inseriva una moneta, girava la manovella...
European state, existing from 1525 to 1947 For other uses, see Prussia (disambiguation). Not to be confused with Russia or Persia. PrussiaPreußen (German)Prūsa (Prussian)1525–1947[a] State flag(1803–1892) Coat of arms(1701–1871) Motto: Gott mit unsNobiscum deus(God with us)Anthem: (1820–1830)BorussiaPrussia(1830–1840)PreußenliedSong of PrussiaRoyal anthem: (1795–1918)Heil dir im Siegerkranz(Hail to thee in the Victor's Crown)[1] Within t...
Part of the War of the Second Coalition For the 1759 battle in Germany, see Battle of Bergen (1759). The neutrality of this article is disputed. Relevant discussion may be found on the talk page. Please do not remove this message until conditions to do so are met. (August 2022) (Learn how and when to remove this message) Battle of BergenPart of the Anglo-Russian invasion of Holland (War of the Second Coalition)Capture of the Russian General Hermann by the French, Helder Expedition, 1799.by Di...
Students raise the flag of Argentina at the University of Córdoba. The Argentine university reform of 1918 was a general modernization of the universities, especially tending towards democratization, brought about by student activism during the presidency of Hipolito Yrigoyen, the first democratic government. The events started in Córdoba and spread to the rest of Argentina, and then through much of Latin America. The reform set up the freedom for universities to define their own curriculum...