Ghost leg

Covering the middle of the lines, a player chooses a start point (A). The lines are then revealed and the chosen start point traced to its terminus (3).

Ghost leg is a method of lottery designed to create random pairings between two sets of any number of things, as long as the number of elements in each set is the same. This is often used to distribute things among people, where the number of things distributed is the same as the number of people. For instance, chores or prizes could be assigned fairly and randomly this way.

It is known in Japanese as Amidakuji (阿弥陀籤, "Amida lottery"),[nb 1] in Korean as Sadaritagi (사다리타기, literally "ladder climbing") and in Chinese as Guijiaotu (Chinese: 鬼腳圖, literally "ghost leg diagram").

The diagram consists of vertical lines with horizontal lines connecting two adjacent vertical lines scattered randomly along their length; the horizontal lines are called "legs". The number of vertical lines equals the number of people playing, and at the bottom of each line there is an item - a thing that will be paired with a player. The general rule for playing this game is: choose a line on the top, and follow this line downwards. When a horizontal line is encountered, follow it to get to another vertical line and continue downwards. Repeat this procedure until reaching the end of the vertical line. Then the player is given the thing written at the bottom of the line.

If the elements written above the ghost leg are treated as a sequence, and after the ghost leg is used, the same elements are written at the bottom, then the starting sequence has been transformed to another permutation. Hence, ghost leg can be regarded as a kind of permuting operator.

Process

As an example, consider assigning roles in a play to actors.

  1. To start with, the two sets are enumerated horizontally across a board. The actors' names would go on top, and the roles on the bottom. Then, vertical lines are drawn connecting each actor with the role directly below it.
  2. The names of the actors or roles are then concealed so that people do not know which actor is on which line, or which role is on which line.
  3. Next, each actor adds a leg to the board. Each leg must connect two adjacent vertical lines, and must not touch any other horizontal line.
  4. Once this is done, a path is traced from the top of each vertical line to the bottom. As the line is followed down, if a leg to the left or right is met, the leg must be followed to the adjacent vertical line that it connects to, then tracing down is resumed, continuing until the bottom of a vertical line is reached. The top item that the path started from is now paired with the bottom item that it ended on.

Another process involves creating the ladder beforehand, then concealing it. Then people take turns choosing a path to start from at the top. If no part of the amidakuji is concealed, then it is possible to fix the system so that a certain pairing is guaranteed, thus defeating the idea of random chance.

Mathematics

Part of the appeal for this game is that, unlike random chance games like rock, paper, scissors, amidakuji will always create a 1:1 correspondence, and can handle arbitrary numbers of pairings. It is guaranteed that two items at the top will never have the same corresponding item at the bottom, nor will any item on the bottom ever lack a corresponding item at the top.

It also works regardless of how many horizontal lines are added. Each person could add one, two, three, or any number of lines, and the 1:1 correspondence would remain.

One way of realizing how this works is to consider the analogy of coins in cups. There are n coins in n cups, representing the items at the bottom of the amidakuji. Then, each leg that is added represents swapping the position of two adjacent cups. Thus, in the end there will still be n cups, and each cup will have one coin, regardless of how many swaps are performed.

Properties

Permutation

A ghost leg transforms an input sequence into an output sequence with the same number of elements with (possibly) different order. Thus, it can be regarded a permutation of n symbols, where n is the number of vertical lines in the ghost leg.,[2] hence it can be represented by the corresponding permutation matrix.

Periodicity

Applying a ghost leg a finite number of times to an input sequence eventually generates an output sequence identical to the original input sequence.

I.e., if M is a matrix representing a particular ghost leg, then Mn = I for some finite n.

Reversibility

For any ghost leg with matrix representation M, there exists a ghost leg with representation M−1, such that M M−1 = I

Odd-even property of permutation

As each leg exchanges the two neighboring elements at its ends, the number of legs indicates the odd/even permutation property of the ghost leg. An odd number of legs represents an odd permutation, and an even number of legs gives an even permutation.

Infinite ghost legs with same permutation

It is possible to express every permutation as a ghost leg, but the expression is not one-to-one, i.e. a particular permutation does not correspond to a unique ghost leg. An infinite number of ghost legs represents the same permutation.

Prime

As there are an infinite number of ghost legs representing a particular permutation, those ghost legs have a kind of equivalence. Among those equivalent ghost legs, the ones which have smallest number of legs are called "prime".

Bubble sort and highest simplicity

A ghost leg can be constructed arbitrarily, but such a ghost leg is not necessarily prime. It can be proven that only those ghost legs constructed by bubble sort contains the fewest legs, and hence is prime. This is equivalent to saying that bubble sort performs the minimum number of adjacent exchanges to sort a sequence.

Maximum number of legs of prime

For a permutation with n elements, the maximum number of neighbor exchanging =

In the same way, the maximum number of legs in a prime with n tracks =

Bubblization

For an arbitrary ghost leg, it is possible to transform it into prime by a procedure called "bubblization". When bubblization operates, the following two identities are repeatedly applied in order to move and eliminate "useless" legs.

When the two identities cannot be applied any more, the ghost leg is proven to be exactly the same as the ghost leg constructed by bubble sort, thus bubblization can reduce ghost legs to primes.

Randomness

Since, as mentioned above, an odd number of legs produces an odd permutation and an even number of legs produces an even permutation, a given number of legs can produce a maximum of half the total possible permutations (less than half if the number of legs is small relative to the number of tracks, reaching half as the number of legs increases beyond a certain critical number).

If the legs are drawn randomly (for reasonable definitions of "drawn randomly"), the evenness of the distribution of permutations increases with the number of legs. If the number of legs is small relative to number of tracks, the probabilities of different attainable permutations may vary greatly; for large numbers of legs the probabilities of different attainable permutations approach equality.

A ghost leg track on a floor in Morikoro Park in Aichi, Japan

The 1981 arcade game Amidar, programmed by Konami and published by Stern, uses the same lattice as a maze. The game took its name from amidakuji. and most of the enemy movement conformed to the game's rules.

An early Master System game called Psycho Fox uses the mechanics of an amidakuji board as a means to bet a bag of coins on a chance at a prize at the top of the screen. Later Sega Genesis games based on the same game concept DecapAttack and its Japanese predecessor Magical Hat no Buttobi Tabo! Daibōken follow the same game mechanics, including the amidakuji bonus levels.

The 1990 Famicom release Akumajo Special: Boku Dracula-Kun (localized in 2019 as Kid Dracula as part of Castlevania Anniversary Collection) uses this ghost leg lottery after every stage as a means to choose one of four possible bonus games. A man with microphone yells “Amidakuji! Amidakuji!” before you pick your path A, B, C, or D.

Super Mario Land 2: 6 Golden Coins features an amidakuji-style bonus game that rewards the player with a power-up. New Super Mario Bros., Super Mario 64 DS and Wario: Master of Disguise feature an amidakuji-style minigame in which the player uses the stylus to add new lines that must lead the player character down the winning path as he slides down the board.

In Mega Man X Bospider climbs down a web shaped rail similar to amidakuji to attack in the first Sigma's fortress stage.

Azalea Gym in Pokémon HeartGold and SoulSilver was redesigned with an amidakuji-based system of carts to cross. The correct choices lead to the gym leader; the wrong ones lead to other trainers to fight.

Phantasy Star Online 2 uses the principle of amidakuji for a randomly appearing bomb-defusing minigame. One must trace an amidakuji path around each bomb to determine which button defuses it; incorrect selections knock players away for a few seconds, wasting time.

In the Japanese drama Don Quixote (episode 10), the character Shirota (Shota Matsuda) uses amidakuji to help decide between candidate families for an adoption.

In Raging Loop, a "ghost leg lottery" is described as an analogy for the selection of roles across a village for a ceremony that is central to the game's plot.

Notes

  1. ^ So named because in the Muromachi period, print representations of the system were drawn radially (with starting points on the outside and endpoints on the inside), so resembling the "circle emitting rays" design popularly used to depict Amida's halo[1]

References

  1. ^ Frédéric, Louis (2002). Japan Encyclopedia. ISBN 9780674017535.
  2. ^ Ho 2012, p.31

Read other articles:

The KolorsThe Kolors al Festival di Sanremo 2024 Paese d'origine Italia GenerePop rock[1][2] Periodo di attività musicale2009 – in attività EtichettaMr. Boost (2013-2015)Baraonda Edizioni Musicali (2015-2018)Island (2018-2023)Warner Music Italy (2023-presente) Album pubblicati4 Studio3 Raccolte1 Modifica dati su Wikidata · Manuale The Kolors sono un gruppo musicale italiano formatosi a Napoli nel 2009.[3][4] Composto dai cugini...

 

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Bendung Tegal – berita · surat kabar · buku · cendekiawan · JSTOR Bendung Tegal Bendung Tegal adalah nama bendungan di Desa Kebonagung, Imogiri, Bantul, DIY. Bendung ini melintang di sungai Opak di pingg...

 

Dutch cyclist (born 1985) Wim StroetingaStroetinga at the 2009 Tour Down UnderPersonal informationFull nameWillem StroetingaNicknameWimBorn (1985-05-23) 23 May 1985 (age 38)Drachten, NetherlandsHeight5 ft 9 in (1.75 m)Weight152 lb (69 kg; 10.9 st)Team informationCurrent teamRetiredDisciplinesTrackRoadRoleRiderAmateur teams2004Netherlands Track2008Ubbink–Syntec Cycling Team2011Ubbink–Koga2017Vlasman Cycling Team Professional teams2005Team Löwik...

Overview of music traditions in Poland Part of a series on theCulture of Poland History Middle Ages Renaissance Baroque Enlightenment Romanticism Positivism Young Poland Interbellum World War II Polish People's Republic Modern-day People Poles Ethnic minorities Refugees Crime Education Health care Languages Languages Polish Yiddish German Lithuanian Ruthenian Romani (Baltic Romani North Central Romani Sinte Romani Vlax Romani) Silesian Kashubian Vilamovian Traditions Mythology Cuisine Festiva...

 

State legislative election 2022 Massachusetts Senate election ← 2020 November 8, 2022 2024 → All 40 seats in the Massachusetts Senate21 seats needed for a majorityRegistered4,884,076 [1] ( 1.48 pp)Turnout51.42% ( 24.58 pp)   Majority party Minority party   Leader Karen Spilka Bruce Tarr Party Democratic Republican Leader since February 28, 2018 January 3, 2011 Leader's seat 2nd Middlesex and Norfolk 1st Essex and Middlesex Last election 3...

 

List of motorcycles by type of engine is a list of motorcycles by the type of motorcycle engine used by the vehicle, such as by the number of cylinders or configuration. A transverse engine is an engine mounted in a vehicle so that the engine's crankshaft axis is perpendicular to the direction of travel. In a longitudinal engine configuration, the engine's crankshaft axis is parallel with the direction of travel. However, the description of the orientation of V and flat motorcycle engines di...

German charter airline Sundair IATA ICAO Callsign SR SDR[1] SUNDAIR Founded2016; 8 years ago (2016)Commenced operations1 July 2017; 6 years ago (2017-07-01)Operating bases Berlin Brandenburg Airport Bremen Airport Dresden Airport Kassel Airport Fleet size7Destinations23Key peopleMarcos Rossello (CEO)Websitesundair.com Sundair is a German charter airline[1] which is headquartered in Stralsund and maintains bases at Berlin Brandenburg Airport,...

 

2016年美國總統選舉 ← 2012 2016年11月8日 2020 → 538個選舉人團席位獲勝需270票民意調查投票率55.7%[1][2] ▲ 0.8 %   获提名人 唐納·川普 希拉莉·克林頓 政党 共和黨 民主党 家鄉州 紐約州 紐約州 竞选搭档 迈克·彭斯 蒂姆·凱恩 选举人票 304[3][4][註 1] 227[5] 胜出州/省 30 + 緬-2 20 + DC 民選得票 62,984,828[6] 65,853,514[6]...

 

Pour les articles homonymes, voir Redgrave. Stephen Geoffrey Redgrave Sir Steven Redgrave en mai 2011 Contexte général Sport Aviron Période active Retraite sportive Site officiel www.steveredgrave.com Biographie Nationalité sportive Royaume-Uni Nationalité Royaume-Uni Naissance 23 mars 1962 (62 ans) Lieu de naissance Marlow, Buckinghamshire Taille 1,93 m (6′ 4″) Poids de forme 100 kg Palmarès Médailles obtenues Compétition Or Arg. Bro. Jeux olympiques 5 0 1 Champio...

 本表是動態列表,或許永遠不會完結。歡迎您參考可靠來源來查漏補缺。 潛伏於中華民國國軍中的中共間諜列表收錄根據公開資料來源,曾潛伏於中華民國國軍、被中國共產黨聲稱或承認,或者遭中華民國政府調查審判,為中華人民共和國和中國人民解放軍進行間諜行為的人物。以下列表以現今可查知時間為準,正確的間諜活動或洩漏機密時間可能早於或晚於以下所歸�...

 

3-я кавалерийская дивизия Годы существования 1875 - 1918 Страна Россия Входит в 3-й армейский корпус Тип Кавалерия Дислокация Ковно 3-я кавалерийская дивизия — кавалерийское соединение в составе Российской императорской армии. Штаб дивизии: Ковно. Входила в 3-й армейский ко...

 

Wrestling competition 2024 EuropeanWrestling ChampionshipsFreestyleGreco-RomanWomen57 kg55 kg50 kg61 kg60 kg53 kg65 kg63 kg55 kg70 kg67 kg57 kg74 kg72 kg59 kg79 kg77 kg62 kg86 kg82 kg65 kg92 kg87 kg68 kg97 kg97 kg72 kg125 kg130 kg76 kgvte Main article: 2024 European Wrestling Championships The women's freestyle 72 kg is a competition featured at the 2024 European Wrestling Championships, and held in Bucharest, Romania on February 15 and 16.[1] Medalists Gold  Nesrin Baş...

Historical event involving the destruction of the Berlin Wall Fall of the Berlin WallPart of the Revolutions of 1989Germans stand on top of the Wall in front of the Brandenburg Gate, before this section was torn down on December 9 1989 in the hours before the West German leader walked through the Gate to greet his East German counterpartDate9 November 1989; 34 years ago (1989-11-09)Time18:53–19:01 (CET; UTC+1, press conference)[1]LocationEast Berlin, East GermanyWe...

 

Daily newspaper in Chicago, Illinois The Sun Times redirects here. For the Canadian newspaper, see The Sun Times (Owen Sound). Chicago Sun-TimesFront page on November 19, 2008TypeDaily newspaperFormatTabloidOwner(s)Chicago Public MediaEditorJennifer Kho[1]Staff writers40Founded1948; 76 years ago (1948)Headquarters848 E Grand AveChicago, IL 60611United StatesCountryUnited StatesCirculation57,222 average print circulation[2]ISSN1553-8478Websitechicago.suntimes...

 

Alexis Rolín Informasi pribadiNama lengkap Germán Alexis Rolín FernándezTanggal lahir 7 Februari 1989 (umur 35)Tempat lahir Montevideo, UruguayTinggi 183 m (600 ft 5 in)Posisi bermain BekInformasi klubKlub saat ini Boca JuniorsNomor 13Karier senior*Tahun Tim Tampil (Gol)2011–2012 Nacional 32 (3)2012–2015 Catania 36 (0)2015– Boca Juniors 0 (0)Tim nasional2012– Uruguay U-23 3 (0) * Penampilan dan gol di klub senior hanya dihitung dari liga domestik Germán Alexi...

NGC 15NGC 15 pada Sloan Digital Sky Survey Kredit: 2MASSData pengamatan (J 2000.0 epos)Rasi bintangPegasusAsensio rekta 00j 09m 02.5d[1]Deklinasi +21° 37′ 28″[1]Pergeseran merah0,021121[1]Kecepatan radial helio6332 ± 10 km/s[1]Magnitudo semu (V)14,67[1]Magnitudo mutlak (V)-20,43 [2]Ciri-ciriJenisSa[1]Ukuran semu (V)1,072′ × 0,575′[3]Penamaan lainUGC 00082,[1] CGCG 45...

 

NGC 6008   الكوكبة الحية[1]  رمز الفهرس NGC 6008 (الفهرس العام الجديد)2MASX J15525603+2106017 (Two Micron All-Sky Survey, Extended source catalogue)UGC 10076 (فهرس أوبسالا العام)IRAS 15507+2114 (IRAS)MCG+04-37-052 (فهرس المجرات الموروفولوجي)PGC 56289 (فهرس المجرات الرئيسية)[2]UZC J155256.0+210602 (فهرس زفيكي المحدّث)Z 136-110 (فهرس المجرات وع�...

 

List of events ← 1621 1620 1619 1618 1617 1622 in Ireland → 1623 1624 1625 1626 1627 Centuries: 15th 16th 17th 18th 19th Decades: 1600s 1610s 1620s 1630s 1640s See also:Other events of 1622 List of years in Ireland Map of Derry, 1622. Events from the year 1622 in Ireland. Incumbent Monarch: James I Events A royal commission of inquiry into the Dublin Castle administration is sent from England, headed by Dudley Digges and including James Perrot.[1] 18 April – Oliver St Jo...

This article is about the city in India. For the former princely state, see Palitana State. For the hill near town, see Shatrunjaya. For the Swetambar Jain temples on hill, see Palitana temples. Town in Gujarat, IndiaPalitanaTownView of PalitanaPalitanaLocation in Gujarat, IndiaCoordinates: 21°31′N 71°50′E / 21.52°N 71.83°E / 21.52; 71.83Country IndiaStateGujaratDistrictBhavnagarNamed forPadliptpuramGovernment • TypeMunicipal • Body...

 

Pour les articles homonymes, voir Dimanche (homonymie) et Jour du Seigneur. Un dimanche, par Paul Signac, 1890. Le dimanche est le jour de la semaine privilégié pour le repos hebdomadaire dans plusieurs pays du monde, dont la France. La norme internationale ISO 8601 considère que le dimanche clôt la semaine[1], et le code avec le chiffre 7. Pour les religions bibliques, le dimanche est le premier jour de la semaine juive et chrétienne. Pour les chrétiens, le dimanche est le jour de la ...