gpw96.dvi

Size: px
Start display at page:

Download "gpw96.dvi"

Transcription

1 MOO An optimal MOO strategy Tetsuro Tanaka, Faculty of Engineering, University of Tokyo MOO ( ) (exhaustive search). [1], MOO. MOO,.,, 0.5., MOO. 1 MOO MOO, Hit & Blow, Cow & Bull, ( MOO ), , MOO. MOO bull ( ) cow( ). 2 MOO bull, cow MOO. MOO 4 bull. 4 bull.. 1 MUD(Multi User Dungeon). 1

2 , C C B B B2C B 1: MOO. ( ) 6 MOO, MOO, BSD Unix MOO. 2 MOO, bull, cow MOO. [2] 1971.,,,,. MOO,, [3], [4] shell., MOO [2]. MOO 5040 ( 10 P 4 ). MOO,, 5040 MOO MOO. MOO π, MOO T, 4B, 3B, 2B2C, 2B1C, 2B, 1B3C, 1B2C, 1B1C, 1B, 4C, 3C, 2C, 1C, 0C 14, π t 1,..., t 14. f(t ), T. 2

3 J. Larmouth, n log(n), f(t )= t i log( t i )( 2log2 if T π) i [1,14],t i 0, 5.24., B. Landy f(t )=max( t i ) 14 f(t )= t i log(1 + t i ) i=1 14 f(t )= T i F ( t i ) where F (n) is the solution of x x = n i= bit [5]. f(t ),., B.Landy, 5.22( 26347). 3 f(t ), t 1,..., t ,,., 2., 5040 MOO, 1,.,,. [2],, This is far too expensive on computation.. [1]., 6 4 = 1296, MOO 10 P 4 = 5040, 3

4 4,,,., ,., (Sparc Station 20), 60, 30 ( 26274) MOO, , packed decimal. 10, 0-9 MOO 1. MOO a, b bull, a ^ b (^ ) , 64K. cow a & b 10 1, bull., 1K. MOO. typedef int Question2; int moo(question2 q1,question2 q2) { int bull,cow; } bull=bulltable[(q1^q2)&0xffff]; cow=cowtable[(q1&q2)>>16]; return(moo_product[bull][cow]); SS20, x5040, 1, 1 25M ( M ). 4

5 ([1234,3456,1256] [0,7,8,9] ). ( [5,6,7,8,9] ),,,.,.. 1. {a 1,a 2,..., a n }(a 1 <a 2 <... < a n ), a 1,a 2,... 2.,, ( 4! = 24),., , 0456, 4056, 0145, 0415, 4501, 1045, 1405, 0124, 0142, 0214, 0241, 1204, 1240, 1023, 1032, 0231, 1230) 19 3, 4, 1900, ,2,3 1,2,3,

6

7 4.4, 5040 heap sort. heap sort., n n 14, 1 1, 2 n 1,, 1+2(n 1) = 2n 1.,., (4-10)., n(4 n 10) MOO, m 1. 10,, 3 80, 9 3, , ,. C , 14, (0-13),., 14,. 7

8 1: n : 10 (n) 1 n 14 2n 1 15 n 127 3n n 864 4n n 5n 1006 C gcc, SS20., ( 5.213). 3.,, 4, 5040 MOO. 6 MOO,?. MOO,,, 3, 1 2.,. ( 0.5 ) γ n, Γ n = γ n

9 3: 1 2 ( ) 4B B2C B3C C B B1C B :08.3 1B2C :48.3 3C :00.5 0C B :52.5 1B1C :28.6 2C :12:29.7 1C :24:47.2 4:

10 . 5. 5: (Γ n ) , (, ). 58.,,. 6. 6: 1 2 ( ) 4B B2C B3C C B B1C B :01.8 1B2C :48.9 3C :29.5 0C B :18.1 1B1C :46:15.2 2C :23:42.8 1C :56:42.9, ( 26312),,, %., 50 % 10

11 , 50%. A, B, C, A>B,B>C,C>A,.,. 52,, 0.5., : C, 850, 650.,., WWW ( Knuth TeX,.,, Lisp,.,,. 8 MOO.,, 11

12 ,., 1.,,, MOO,,. 2.,,.., n, n,.,.,. [1] Kenji Koyama, Tony W.Lay: An optimal Mastermind Strategy, J. Recreational Mathematics, Vol. 25, No. 4, pp (1994). [2] ℵ 0 : Computer Recreations. SOFTWARE, Vol. 1, No. 2, pp (1971). [3] MOO,, pp (1979). [4] srekcah@sra.junet: Shell (2),, Vol.1, No.2, pp (1986). [5] :, bit, Vol.19, No.7 (1987). [6] Donald E.Knuth: The Computer as Master Mind, J. Recreational Mathematics Vol. 9, No. 1, pp. 1-6 ( ). 12

Q A Q Q Q Q 50

Q A Q Q Q Q 50 Faculty of Engineering 1. 2. 3. 4. keyword 49 Q A Q Q Q Q 50 Faculty of Engineering 51 Q A Q A Q Q Q Q 52 Faculty of Engineering 53 Q A Q A Q Q Q Q 54 Faculty of Engineering 55 Q A Q A Q Q Q Q 56 Faculty

More information

概況

概況 2 4 6 2 2 2 3 2 4 22 5 23 27 34 37 44 45 46 2 78.67 85.77 2.6. 7. 2 2, 65 85,464 93,8 65 85.5 93.2 8 56.2 77.9 2 8.87 88.8 3 () 65 3 6 2 2 2 2 2 22 3 2 2 2 2 2 2 2 2 28.58 28.74 29.9 8.8 8.84 2.63 65 28.3

More information

H27 28 4 1 11,353 45 14 10 120 27 90 26 78 323 401 27 11,120 D A BC 11,120 H27 33 H26 38 H27 35 40 126,154 129,125 130,000 150,000 5,961 11,996 6,000 15,000 688,684 708,924 700,000 750,000 1300 H28

More information

Donald Ervin Knuth 1974 ACM [2] 1996 12 / TeX TEX E e TeX Gibb s Lecture [1] [ 1900 Metafont ] CTS 1981 1 bit bit bit bit 10 1981 4 bit 78 Gibb s Lect

Donald Ervin Knuth 1974 ACM [2] 1996 12 / TeX TEX E e TeX Gibb s Lecture [1] [ 1900 Metafont ] CTS 1981 1 bit bit bit bit 10 1981 4 bit 78 Gibb s Lect TeX TeX 20 6 IIJ TEX 1983 3 bit 1969 3 1 1983 6 [1] Donald E. Knuth TEX Art of Computer Programming TEX E technology TEX Knuth 1978 1 4 Gibb s Lecture Mathematical Typography Donald Ervin Knuth 1974 ACM

More information

1 Question 1

1 Question 1 1 Question 1 2 2 Question 3 3 Question 4 4 Question 5 5 Question 6 6 Question 7 Question 8 8 Question 9 9 Question 10 10 Question 11 11 Question 12 12 Question 13 13 Question 14 14 Question 15 15 Question

More information

橡100ninnokoe

橡100ninnokoe Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Question 8 Question 1 Question 2 Question 3 Question 2 Question 1 Question 3 Question 5 Question 4 Question 6 Question 7

More information

() L () 20 1

() L () 20 1 () 25 1 10 1 0 0 0 1 2 3 4 5 6 2 3 4 9308510 4432193 L () 20 1 PP 200,000 P13P14 3 0123456 12345 1234561 2 4 5 6 25 1 10 7 1 8 10 / L 10 9 10 11 () ( ) TEL 23 12 7 38 13 14 15 16 17 18 L 19 20 1000123456

More information

戦後の補欠選挙

戦後の補欠選挙 1 2 11 3 4, 1968, p.429., pp.140-141. 76 2005.12 20 14 5 2110 25 6 22 7 25 8 4919 9 22 10 11 12 13 58154 14 15 1447 79 2042 21 79 2243 25100 113 2211 71 113 113 29 p.85 2005.12 77 16 29 12 10 10 17 18

More information

日経テレコン料金表(2016年4月)

日経テレコン料金表(2016年4月) 1 2 3 4 8,000 15,000 22,000 29,000 5 6 7 8 36,000 42,000 48,000 54,000 9 10 20 30 60,000 66,000 126,000 166,000 50 100 246,000 396,000 1 25 8,000 7,000 620 2150 6,000 4,000 51100 101200 3,000 1,000 201

More information

73 p.1 22 16 2004p.152

73 p.1 22 16 2004p.152 1987 p.80 72 73 p.1 22 16 2004p.152 281895 1930 1931 12 28 1930 10 27 12 134 74 75 10 27 47.6 1910 1925 10 10 76 10 11 12 139 p.287 p.10 11 pp.3-4 1917 p.284 77 78 10 13 10 p.6 1936 79 15 15 30 80 pp.499-501

More information

122011pp.139174 18501933

122011pp.139174 18501933 122011pp.139174 18501933 122011 1850 3 187912 3 1850 8 1933 84 4 1871 12 1879 5 2 1 9 15 1 1 5 3 3 3 6 19 9 9 6 28 7 7 4 1140 9 4 3 5750 58 4 3 1 57 2 122011 3 4 134,500,000 4,020,000 11,600,000 5 2 678.00m

More information

2 2 3 4 5 5 2 7 3 4 6 1 3 4 7 4 2 2 2 4 2 3 3 4 5 1932 A p. 40. 1893 A p. 224, p. 226. 1893 B pp. 1 2. p. 3.

2 2 3 4 5 5 2 7 3 4 6 1 3 4 7 4 2 2 2 4 2 3 3 4 5 1932 A p. 40. 1893 A p. 224, p. 226. 1893 B pp. 1 2. p. 3. 1 73 72 1 1844 11 9 1844 12 18 5 1916 1 11 72 1 73 2 1862 3 1870 2 1862 6 1873 1 3 4 3 4 7 2 3 4 5 3 5 4 2007 p. 117. 2 2 3 4 5 5 2 7 3 4 6 1 3 4 7 4 2 2 2 4 2 3 3 4 5 1932 A p. 40. 1893 A p. 224, p. 226.

More information

29 2011 3 4 1 19 5 2 21 6 21 2 21 7 2 23 21 8 21 1 20 21 1 22 20 p.61 21 1 21 21 1 23

29 2011 3 4 1 19 5 2 21 6 21 2 21 7 2 23 21 8 21 1 20 21 1 22 20 p.61 21 1 21 21 1 23 29 2011 3 pp.55 86 19 1886 2 13 1 1 21 1888 1 13 2 3,500 3 5 5 50 4 1959 6 p.241 21 1 13 2 p.14 1988 p.2 21 1 15 29 2011 3 4 1 19 5 2 21 6 21 2 21 7 2 23 21 8 21 1 20 21 1 22 20 p.61 21 1 21 21 1 23 1

More information

Microsoft Word - 映画『東京裁判』を観て.doc

Microsoft Word - 映画『東京裁判』を観て.doc 1 2 3 4 5 6 7 1 2008. 2 2010, 3 2010. p.1 4 2008 p.202 5 2008. p.228 6 2011. 7 / 2008. pp.3-4 1 8 1 9 10 11 8 2008, p.7 9 2011. p.41 10.51 11 2009. p. 2 12 13 14 12 2008. p.4 13 2008, p.7-8 14 2008. p.126

More information

308 ( ) p.121

308 ( ) p.121 307 1944 1 1920 1995 2 3 4 5 308 ( ) p.121 309 10 12 310 6 7 ( ) ( ) ( ) 50 311 p.120 p.142 ( ) ( ) p.117 p.124 p.118 312 8 p.125 313 p.121 p.122 p.126 p.128 p.156 p.119 p.122 314 p.153 9 315 p.142 p.153

More information

みさき_1

みさき_1 2 3 4 5 6 7 1F 2F 8 9 10 11 17 18 19 20 21 22 23 24 31 25 26 27 28 29 30 8 1 2 3 4 5 6 7 6 8 7 16 7 8 9 10 11 12 14 15 13 17 23 Vol.41 8 6 20 11 7 15 7 23 7 7 7 16 23 23 8 13 18:00 22:00 722

More information

H21_report

H21_report vol.4 1 2 6 10 14 18 20 22 24 25 1 2 2172 73 3 21925 926 21125 126 4 5 6 21629 630 7 21107 108 21127 128 8 9 10 21616 617 11 211026 1027 211213 1214 12 13 14 21713 714 15 2194 95 211031 111 16 17 18 19

More information

2009-9-2.indd

2009-9-2.indd Q No.1441 Q No.1442 Vol.33 NO.9 (2009) 30 (614) Q No.1443 Vol.33 NO.9 (2009) 31 (615) Q No.1444 Vol.33 NO.9 (2009) 32 (616) Vol.33 NO.9 (2009) 33 (617) Vol.33 NO.9 (2009) 34 (618) Q No.1445 Vol.33 NO.9

More information

Vol.14 98 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 62 63 64 65 66 67 68

More information

untitled

untitled Vol.27 1 Vol.27 2 Vol.27 3 Vol.27 4 Vol.27 5 Vol.27 6 Vol.27 7 Vol.27 8 Vol.27 9 Vol.27 10 11 Vol.27 Vol.27 12 Vol.27 13 Vol.27 14 Vol.27 15 Vol.27 16 Vol.27 17 Vol.27 2007 10 29 18 http://www.nira.or.jp/index.html

More information

09030549_001.図書館31-1

09030549_001.図書館31-1 vol.31 NO.1 2 3 5 6 10 12 8 1947-1954- 1950-1838-1904 1952-1996 1 913-1954 1981-1958- 1 902-1992 1972-1946- 1 940- 1 2 3 3 5 6 6 8 8 12 8 8 1 2 2 http://library.hokkai-s-u.ac.jp/cgi-bin/tosyokan/index.cgi

More information