ç¹°ãè¿ãã«ãªããŸããããããžã§ã¯ãã®æ¬æãã掻åå ±åã«ã€ããŠã®ææ³ããæèŠãã質åãããã²ã³ã¡ã³ãã§ãå¯ãããã ããã°ãšæããŸããçŸåšã¯æ¯æŽåéæéäžã§ãããæ¬äŒç»ã®å®æœæéã§ã¯ãªãããããå¯ãããã ããææ³ãªã©ã«ã€ããŠã¯ãªã¿ãŒã³ãšããŠã§ã¯ãªãããè¿äºãåçããããŠããã ããŸãã ãŸããç§å人ã«ã€ããŠã¯ãã¡ããã芧ãã ããã æ¬æ¥ãæžåº«ãããå¥åãµã€ãšã³ã¹ãã³ã³ãã¥ãŒã¿ãŒã¬ã¯ãªãšãŒã·ã§ã³IIIãéã³ã®çºèŠãããããã°ã©ãã³ã°ã»ã»ãããŒãããã¹ããªã€ã³ã®XXã®è«çããºã«ãããã®ä»ãçºæããŸããã ããœãããŠã§ã¢åå€äžå€ç©èªãããç¶ãœãããŠã§ã¢åå€äžå€ç©èªãã¯ãæªçºæã§ãã ãã®èšäºã¯ãmedium.comã®storyãå ã«ããŠããŸãã ã§ã¯æ¬é¡ã§ãã ã¢ã«ãŽãªãºã ãšããããšãããããã誰ãã®é ã«ãããšæãã®ã§ããã®æµãã§ã¯ããã®èšç®æ¹æ³ã¯èªç¶ãªãã®ã«æãããïŒããšãããããªããšããããã®ãããªã¿ã€ãã«ã«èŠãããããããªãã ã ããããã§ã¯ãªããããšãã°ãç©çã®æ³åã¯èªç¶ãã¢ãã«åããŠããããã®ã¿ã€ãã«ã®ãèªç¶ããšã¯ãããããæå³ã§ã®èªç¶ã ã ããªã«ã銬鹿ãªããšãããšæããããããããªããããã°ã©ã ã¯ãŸã 人éãæžããã®ã ããèšç®ã®æé ã決ããã®ã人éã ããªãã°ãæžãããã³ãŒãã¯ãèªç¶ãã®ãã®ãšããããšã¯ãªãã ãããããã§æžããŠã¿ããã®ã¯ãèšç®ãšããæŠå¿µã¯èªç¶ãªã®ããšããããšã ã å®éã®ã³ãŒãããé¢ããŠãã¢ã«ãŽãªãºã ã§èããŠã¿ãããããã¢ã«ãŽãªãºã ãååšãããšãããã§ã¯åé¡ã ã**ãã®ã¢ã«ãŽãªãºã ã¯ã誰ããæãã€ã以åããååšããŠããã®ã ãããïŒ** èšç®ã¯èªç¶ã ãšããç«å Žãªãã“yes” ãšçããã ãããããã®ã¢ã«ãŽãªãºã ã¯çºèŠããããšèšãã ãããèªç¶ã§ã¯ãªããšãããªãã“no”ãšçããçºæããããšèšãã ããã ããã¯ãå®ã¯åçŽãªè©±ã§ã¯ãªããã¢ã©ã³ã»ãã¥ãŒãªã³ã°ãããããã£ã±ã«èšããªãããèšç®ã§ãããã®ã¯èšç®ã§ããããšãæ°åŠçã«èšŒæããŠããŸã£ãŠããããã ãã€ãŸããèšç®ãšããæŠå¿µã¯æ°åŠã®äžéšãªã®ã ã ããã§è©±ãããããããªããæ°åŠã¯èªç¶ãªã®ããšããçåãé¢ä¿ããŠããããã ã æ°åŠã¯ãç©çã®æ³åãèšè¿°ã§ããããããã«ã¯æªçºèŠã®äºæã®äºæ³ã®æ ¹æ ã«ããªãããªãæ°åŠã«ãããªããšãã§ããã®ãã¯ãããã£ãŠããªã倧ããªçåã ã ãã®æã®ããšã«ã€ããŠã¯ãæ°åŠãšã¯äººéããã®ããã«æ±ºãããã®ãšããèãããããããšãããããã¡ãããæ°åŠã®ãããããªåéã«ãããå ¬çã¯ã人éãå®ãããã®ã ãå ¬çãæå°åããããšããç 究ããããããã¯ã»ãšãã©ç解ãè¶ ãã話ã«ãªã£ãŠããŸããã ããåé¡ã¯ããªãå ¬çãèšå®ããããšãå¯èœã§ããããã©ãããå ¬çããã®æ°åŠã§ãã£ãŠãã察å¿ããèªç¶ãããã®ãã ã 話ã倧仰ãªãã®ã«ãªã£ããã ããã¢ã«ãŽãªãºã ããããŠå ·äœçãªã³ãŒãããå ç«¥ã»çåŸããããªãåãã®ïŒããšèãããããå çã¯ããããªãããã«æžããããããšããçãã§æžãŸããŠã¯æ¬²ãããªããçŸå®çã«ã¯ãããçããããããªãããšãæããããã®èåŸã«ã¯ãããç°¡åã§ã¯ãªãçåãååšããããšã¯æèããŠæ¬²ãããšæãã
ç¹°ãè¿ãã«ãªããŸããããããžã§ã¯ãã®æ¬æãã掻åå ±åã«ã€ããŠã®ææ³ããæèŠãã質åãããã²ã³ã¡ã³ãã§ãå¯ãããã ããã°ãšæããŸããçŸåšã¯æ¯æŽåéæéäžã§ãããæ¬äŒç»ã®å®æœæéã§ã¯ãªãããããå¯ãããã ããææ³ãªã©ã«ã€ããŠã¯ãªã¿ãŒã³ãšããŠã§ã¯ãªãããè¿äºãåçããããŠããã ããŸãã ãŸããç§å人ã«ã€ããŠã¯ãã¡ããã芧ãã ããã ãã®èšäºã¯ãmedium.comããã®è»¢èŒã§ãã å ã«ãããæžããŸãã:sedã§è¶³ãç®(è¶ ç°¡ç¥ç) ãã¡ããã§ããããã®èšäºããããºã«ã®ãããªãã®ã§ãã ã§ã¯ãæ¬é¡ã«å ¥ããŸãã 足ãç®ãã§ãããªããæãç®ããããªãæ軜ã«ã§ããã ãããšæããŸãã? ã¯ãã§ããŸãã å ãšåãã1ã9ã®1æ¡ã®ä»»æã®æ°ã®æãç®ã§ããå ã®èšäºã§ã¯ããã€ã®æ°ã®è¶³ãç®ã§ãããŸããŸããã§ããããä»åã¯2ã€ã®æ°ã®æãç®ã«éå®ããŸãã ã³ãŒãã¯ãã¡ããåå㯠“multi.sed” ãšããŸã:ps/1/I/gs/2/II/gs/3/III/gs/4/IIII/gs/5/IIIII/gs/6/IIIIII/gs/7/IIIIIII/gs/8/IIIIIIII/gs/9/IIIIIIIII/gs/ *\* */ /gs/ *$//p:loop1/I+ i*I+/ { s/(I+) (i*)I/\1 \2i/ # A bloop1}:loop2/I+ I*i+/ { s/(I+) (I*)i/\1 \2\1/ # B# p bloop2}s/^I+ +// ããŒã¿ã¯ãããšããŸããåå㯠“multi.dat” ãšããŸã:2 * 33 * 3 “multi.sed” ã« “multi.dat” ãé£ããããšããããªããŸã:$ sed -r -f multi.sed multi.dat2 * 3II IIIIIIIII # ãããçµæ3 * 3III IIIIIIIIIIII # ãããçµæ ããã§ãã# ãããçµæãã¯è¡šç€ºãããŸãããã§ãããèšç®ã¯ã§ããŠããŸãã ã³ãŒãã®èã¯loop1ã® “# A” ãš:s/(I+) (i*)I/\1 \2i/ # A loop2ã® “# B” ã§ã:s/(I+) (I*)i/\1 \2\1/ # B Aã®æ¹ã¯ã “I” ã ããã ãšãããããããªããªãã®ã§ã2ã€ãã®æ°ã “i” ã«çœ®ãæããŠããŸããèæ°ãæå³ããŠããšãã§ã¯ãããŸããã “I” ãšåºå¥ã§ããã°ããã ããªã®ã§ããªãã§ãããŸããŸããã Bã®æ¹ã¯ããã® “i” ãäžåãã€ã1ã€ãã®æ°ã® “I” ã®äžŠã³ã§çœ®ãæããŠããŸãããã®éçšã確èªãããå Žåã¯ã “multi.sed” ã®loop2ã®ãšãã®ãã:# p ãã® “#” ãæ¶ããŠã¿ãŠãã ããã
ãã®èšäºã¯ãmedium.com ããã®è»¢èŒã§ãã äœåããèšç®ãšããæŠå¿µã«ãããã話é¡ãæžããããšæããŸãã sedã§èšç®ãããšãããšãã©ãããããšããšãæããããããŸãããsedã®åŠçèªäœãèšç®ãªã®ã§ãããã ããã§ã足ãç®ãäŸã«æããŠèŠãŸãããã£ã¡ãèšç®ããããšãã§ããŸãããããã§ã¯ããããããã®ããã«è¶ ææãçãšããŠã1~9ã®ä»»æã®1æ¡ã®æ°åã®è¶³ãç®ãšããŸãã ã§ã¯ã1ã€ãã§ããã³ãŒãã®ãã¡ã€ã«å㯠“plus1.sed” ãšããŸã:s/1/I/gs/2/II/gs/3/III/gs/4/IIII/gs/5/IIIII/gs/6/IIIIII/gs/7/IIIIIII/gs/8/IIIIIIII/gs/9/IIIIIIIII/gs/ *\+ *//g ããã«ããã®ãããªããŒã¿ãäžããŸãããã¡ã€ã«å㯠“plus.dat” ãšããŸã:1 + 43 + 39 + 91 + 2 + 37 + 8 + 9 ã§ã¯ãå®è¡ããŠã¿ãŸããã:$ sed -r -f plus1.sed plus.datIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 1ã9ã察å¿ããæ°ã® “I” ã«çœ®ãæããŠã “+” ããããæ¶ããŠããã ãã§ããããã§ãã “1 + 4” ã®çµæã “5” ã«ã “3 + 3” ã®çµæã “6” ã«ã “9 + 9” ã®çµæã “18” ã«ã “1 + 2 + 3” ã®çµæã “6” ã«ã “7 + 8 + 9” ã®çµæã “24” ã«ãªã£ãŠããŸãã ããã§ã¯ãããã«ãã? ã§ã¯ “plus2.sed” ã®ã³ãŒãã䜿ã£ãŠã¿ãŸããã:s/1/I/gs/2/II/gs/3/III/gs/4/IIII/gs/5/IIIII/gs/6/IIIIII/gs/7/IIIIIII/gs/8/IIIIIIII/gs/9/IIIIIIIII/gs/ *\+ *//gs/IIIIIIIIII/X/gs/IIIII/V/g ãããå®è¡ãããšãããªããŸã:$ sed -r -f plus2.sed plus.datVVIXVIIIVIXXIIII ãŸããã«èšç®ããããã«ã¯ã “a + b” ãšãã£ãå Žåã “a + 1” ã®èšç®ãšã “bâ—â1” ã®èšç®ãããbã®æ¹ã0ã«ãªã£ããèšç®ãçµããããã«ããå¿ èŠããããŸããããã ãšãããšãã° “3 + 4” ã®å Žåã“3 + 1” ãè¡ãªãã “4–1” ã®èšç®ãããŠãããã«ãŒãããããšã§çµæãåŸãããŸãããŸãããã®æ¹æ³ãåã£ãå Žåã1~9ã®æ°åã®ãŸãŸã§åŠçããããã2æ¡ä»¥äžã®æ°å士ã®è¶³ãç®ããã®ãŸãŸã§ãããªã©ã®å©ç¹ããããŸãã ã§ããããã®ãŸãŸã³ãŒããé¢åã«ãªããŸããã§ãã®ã§ãããã§ã¯ãã®äŸã«çããŸãã ãã£ã¡ã®æ¹ãç°¡åã§ãããšããããšãšãšãã«ããã®äŸã®å Žåã§éœåãããã®ããããããªãã®ãèšç®ãšåŒã¹ãã®ãããšããçåãåèµ·ãããããããªããšããç¹ã§ããã§ããã “plus1.sed” ã®å Žåã§ãããã¡ããšçµæã¯åºãŠããŸããããã§ããããã声ãèãããŠãããã§ã:ãçµæã人éãæ°ããªãããªããªããããªããã ããããæå¥ã¯ã¢ã©ã³ã»ãã¥ãŒãªã³ã°ã«èšã£ãŠãã ããããã¥ãŒãªã³ã°ã»ãã·ã³ã®çµæãšããã®ãããããªæãã ã£ããããŸãã ã§ãããããããçåãæã£ãŠãããã®ã¯ããããšããªãšæããŸããå°äžé«ã§ããã°ã©ãã³ã°æè²ã«é¢ãã£ãŠããæ¹ã«ãšã£ãŠã¯ç¹ã«ããããããããããèšç®ãšèªããã®ã«ã¯æµæããããããããŸãããã§ããããã¡ããšèšç®ãããŠããŸããèšç®ãšããã®ã¯ãããããæ®éã«æãããŠããã ãããã®ããããç¯å²ãåºããã®ã§ãã ãªããsedã§ã®é«æ©èœãªã¹ã¯ãªããã¯ãã¡ãã¡ã§å ¬éãããŠããŸãã®ã§ãèå³ãããã°æ€çŽ¢ããŠã確èªããŠã¿ãŠãã ããã ãŸããäžã®äŸã§ã¯ãããŸãã ãšããããšã§ããã°ãããããã®ã¯ã©ãã§ããããã 1æ¡ã®æ°ã®è¶³ãç®ã«éå®ãããšããæ¡ä»¶ã¯å€ãããŸãããã “a + b” ã«å¯Ÿã㊠“a + 1” ãš “b - 1” ããããšããæ¹åãèŠãŠã¿ãŸãããããã®å€åãèŠããããã«ããŠããã³ãŒãã®äŸã “plus3.sed” ãšããŸããããããã¡ã:ps/1/I/gs/2/II/gs/3/III/gs/4/IIII/gs/5/IIIII/gs/6/IIIIII/gs/7/IIIIIII/gs/8/IIIIIIII/gs/9/IIIIIIIII/gs/\+/ /gp:loop/^I+ +I+/ { s/I +I/II / p bloop}s/^(.)/=\1/ ããã “plus.dat” ã«ããŠããšããããªããŸã:$ sed -r -f plus3.sed plus.dat1 + 4I IIIIII IIIIII IIIIII IIIIII =IIIII 3 + 3III IIIIIII IIIIIII IIIIIII =IIIIII 9 + 9IIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII =IIIIIIIIIIIIIIIIII 1 + 2 + 3I II IIIII I IIIIII IIIIIII IIIIIII IIIIIII =IIIIII 7 + 8 + 9IIIIIII IIIIIIII IIIIIIIIIIIIIIIII IIIIIII IIIIIIIIIIIIIIIIII IIIIII IIIIIIIIIIIIIIIIIII IIIII IIIIIIIIIIIIIIIIIIII IIII IIIIIIIIIIIIIIIIIIIII III IIIIIIIIIIIIIIIIIIIIII II IIIIIIIIIIIIIIIIIIIIIII I IIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII =IIIIIIIIIIIIIIIIIIIIIIII “plus.dat” ã®åè¡ã衚瀺ãããŸãçµæã«ã¯ “=” ãã€ããŠè¡šç€ºããŠããŸãã “1 + 4” ãäŸã«èŠãŠã¿ãŸããããæåã¯:I IIII ãããªã£ãŠããŸãããããåºåã®æ¬¡ã®è¡ã§ã¯ãããªã£ãŠããŸã:II III “I” ã “II” ã«ãªãã “IIII” ã “III” ã«ãªã£ãŠããŸãã以äžãããã®ã«ãŒãã§ã “a + b” ã® “b” ã®äœçœ®ã« “I” ãäžã€ããªããªããš:/^I+ +I+/ ãã®ãã¹ããŒã¹ã®å·ŠåŽã« “I” ã1å以äžãªããã§ããããã€ã¹ããŒã¹ã®å³ã«ã “I” ã1å以äžäžŠãã§ãããšããæ¡ä»¶ãæç«ããªããªããäžè¡ã®åŠçãçµãããŸããèãšèšããã®ã¯ããã®éšåã§ã:s/I +I/II / ã¹ããŒã¹ã®å·ŠåŽã® “I” ã “II” ã«æžãæãããŸãã¹ããŒã¹ã®å³åŽã® “I” ãäžåæ¶ããŠããŸããããã§æ³šç®ããŠããã®ã¯ã¹ããŒã¹ã®ããå·ŠåŽã® “I” 1åã ãã§ããããŸãã¹ããŒã¹ã®ããå³åŽã® “I” 1åã ãã§ããã§ããäž¡æ¹ãšã1å以äžäžŠãã§ããæ¡ä»¶ã§ãããããã®æ¡ä»¶ã®ããšãã¹ããŒã¹ã®å³åŽã® “I” 1åããã¹ããŒã¹ã®å·ŠåŽã® “I” ã®äžŠã³ã«ç§»åãããšèªããŸãããããã¯èªã¿ãŸãã èªã¿ãããã®ããã«ã “plus4.sed” ãæããŠãããŸããã:ps/1/I/gs/2/II/gs/3/III/gs/4/IIII/gs/5/IIIII/gs/6/IIIIII/gs/7/IIIIIII/gs/8/IIIIIIII/gs/9/IIIIIIIII/gs/\+/ /gp:loop/^I+ +I+/ { s/I +I/II / p bloop}s/IIIIIIIIII/X/gs/IIIII/V/gs/^(.)/=\1/ ããã “plus.dat” ã«ããŠããšããããªããŸã:$ sed -r -f plus4.sed plus.dat1 + 4I IIIIII IIIIII IIIIII IIIIII =V 3 + 3III IIIIIII IIIIIII IIIIIII =VI 9 + 9IIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIII =XVIII 1 + 2 + 3I II IIIII I IIIIII IIIIIII IIIIIII IIIIIII =VI 7 + 8 + 9IIIIIII IIIIIIII IIIIIIIIIIIIIIIII IIIIIII IIIIIIIIIIIIIIIIII IIIIII IIIIIIIIIIIIIIIIIII IIIII IIIIIIIIIIIIIIIIIIII IIII IIIIIIIIIIIIIIIIIIIII III IIIIIIIIIIIIIIIIIIIIII II IIIIIIIIIIIIIIIIIIIIIII I IIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII =XXIIII çµæã¯åãã§ãããåŠçã®åæ°ã¯ç¡é§ãšèšãã°ç¡é§ã«å¢ããŠããŸããããã£ã¡ã®æ¹ãèšç®ã£ãœããšæãããããããŸããã ãªããæ°åŠçã«ã¯ããããã¯æ°åŠçãªæ¹æ³ã®äžã€ãšããŠã¯ã “a + b” ãšããã®ã¯ããã®ããã«æžããŸã:while (b > 0) { a = succ(a) b = b - 1} ããã® “succ” ãšããã®ã¯ããã®åŒæ°ã§ãã “a” ã®ãæŽæ°ã«ããã次ã®å€ãè¿ãé¢æ°ã§ããã§ãã®ã§ã “succ(a)” ãšããã®ã¯ “a + 1” ãšããæå³ã§ããå®éã«ã¯æ°åŠã ãšååž°ã®æžãããã®ã»ãã奜ãŸããŸãããã®å Žåã “a” ã “b” ã§ãããŸããªãã®ã§ããããšãã« “b” ã«ã€ããŠã¯å ·äœçãªæ°åã®ã»ããåãããããã£ããããããšæãã®ã§ãããã§ã¯ “2 + 3” ãšããããšã§èããŠã¿ãŸã:succ(succ(succ(2))) ããã¯ã€ãŸããããããæå³ã§ã:2 + 1 + 1 + 1= 2 + 3 “succ” ã®åæ°åã “1” ã足ããŠããã®ã§ããããã圢ã«ãªããŸãã 2ã€ããšãããåŸåã§ç€ºããã¹ã¯ãªããã¯ããã®åœ¢åŒã«æ²¿ã£ãŠãããšãèšããããšããããããšæããŸãã ãªãã “succ()” ãšããé¢æ°ã¯éåžžã«éèŠã§ã “1 + 1 = 2” ã®èšŒæãããã®é¢æ°ããŸãå®çŸ©ããŠããŸãããšããããã次ã®å€ãšã¯ãªã«ãããå«ããŠã “succ()” ã®å®çŸ©ã蚌æã®ã»ãšãã©ãå ããŠããŸãã ãã® “succ()” ãšããé¢æ°ã¯ãlispãªã©ã®å ã«ããèšç®ã¢ãã«ã§ããλèšç®ã«ãããŠãéèŠãªé¢æ°ã§ããλèšç®ãæã«æ§ç¯ãããŠãããã “1 + 1 = 2” ã®èšŒæã楜åã ã£ãã®ã«ãšèšããããããŸãã
ç¹°ãè¿ãã«ãªããŸããããããžã§ã¯ãã®æ¬æãã掻åå ±åã«ã€ããŠã®ææ³ããæèŠãã質åãããã²ã³ã¡ã³ãã§ãå¯ãããã ããã°ãšæããŸããçŸåšã¯æ¯æŽåéæéäžã§ãããæ¬äŒç»ã®å®æœæéã§ã¯ãªãããããå¯ãããã ããææ³ãªã©ã«ã€ããŠã¯ãªã¿ãŒã³ãšããŠã§ã¯ãªãããè¿äºãåçããããŠããã ããŸãã ãŸããç§å人ã«ã€ããŠã¯ãã¡ããã芧ãã ããã æ¬äŒç»ã«ãããŠããã¹ããããAIãIoTãããããã«é¢ä¿ããããã°ã©ãã³ã°ã¯ã©ããªããã ããšããçåããããããããŸãããã§ããããããã®è©±é¡ãæ¡çšããããšãªããšãããããããšãããšããã§ãã ãšããã®ããããšãã°ããããã䜿ããšãªãã°ãããããããåããããšããããããªããšããã®èª²é¡ã«ãããŠã¯ç®çã«ãªãã§ãããããã®éããããããããã¡ããšåããããšã¯ã©ããã£ãŠç¢ºèªããã°ããã®ã§ããããïŒ ã課é¡ã«ãããŠããŒã¿æ§é ãã¢ã«ãŽãªãºã ãæå®ããããã«æžããããã«:| ãåããããšã§ç¢ºèªãšããããšããã®ã¯ãå®ã¯æ¥µããŠçãåºæº ã§ãããããŸãæ¡çšãããåºæºã§ã¯ãããŸããããããã¯ãä»®ã«ãåããããšã§ç¢ºèªãšãããããšã§ãããšãããªããããã§ãããšã§ãããããªå¶çŽã®ãã€ãããããã¯çºå±æ§ã«ä¹ãããã€ã»ããã°ã©ã ã§ãªããã°ãªããªãã§ãããã æ¬äŒç»ã§ã¯ãåããã課é¡ã«ãããŠããŒã¿æ§é ãã¢ã«ãŽãªãºã ãæå®ããããã«æžããããã«:|ããªããã¡ããšåããšèšããã®ããã説æã§ããããšã| ãããã¯åŒ·ãèšããªã蚌æã§ããããš ãåºæ¬ã«æ®ããããšèããŠããŸããã§ãã®ã§ãäžèšã®ãããªãã®ã¯ããããªããšãç©æ¥µçã«æ¡çšããããšæããç¯çããã¯å€ããããšã«ãªããšèããŠããŸãã ãã£ãšããæ¬äŒç»ãã€ãŸã第äžçã§ã¯ãã¹ãããšããåªäœã䜿çšããããšã¯ãããããçã«äŒç»ã®ç¯çå€ã§ããã§ãããAIãIoTãããããã¯ãã§ããªãããšããããŸãããçµ±èšã«åºã¥ãAIã¯ãçµ±èšããã¡ããšå匷ããŠãããšããããšã«ãªãã§ãããããããã§ãªãAIããIoTãããããã¯ãããšãã°ãæ¢çŽ¢ã(ããŒã¿æ§é ãšããŠã¯ãããããæšæ§é ãã°ã©ã) ããã®çºå±ã®è©±é¡ãšããŠæ±ããªãããšããªãã§ãããããšããã®ãããæ¢çŽ¢ãã¯AIã§ãã䜿ãããæè¡ã®äžã€ã§ããããããšãã°ãLOGOãšããèšèªã«ãããã¿ãŒãã«ãã¿ãŒãã«ã»ã°ã©ãã£ãã¯ã®ãããªãã®ãå«ããŠããŸããªããã°ããããŠãããããã«è¿·è·¯ãæãããããããšããæãã§ãããã°ãããããã¯ããã€ãããããšæããŸãã ãããçµ±èšçãªAIã«è§Šãããšããããã°ã©ããããªãŒãããã³ã«çºå±ããããããå°èŠæš¡ãªç¢ºçä»ããªãŒãããã³ããã«ã³ãã»ã¢ãã« (ãã«ã³ãéçš)ãé ããã«ã³ãã»ã¢ãã«ãããã«ã¯n-gramããã¡ãã§çšæããŠãããã䜿ã£ãŠäœéšããŠã¿ããšããããšãã§ãããããããŸããã ã§ãããæ¬äŒç»ã§ã¯ãç©æ¥µçã«è¡šã«ãã¹ããããAIãIoTãããããããšããæèšãåºãããšã¯ãªããšæããŸããããããè¡šã«åºããšãããããã§äœããããã®ãããšããããããåããããšããšããç®çãšæ段ãæ··ä¹±ããããã«æãããã§ãããã ããããã¯ãããŸã§æ¬äŒç»ã®äž»æšããèããŠãšããããšã§ããããšã«ã¯æ³šæããŠãã ããããããããã®ãããªæ 床ãšããŠã®äŒç»ã§ããããšãããããããäž»çŒãšãããããžã§ã¯ããšã®äœã¿åããã§ããã§ãããããå Žåã«ãã£ãŠã¯ãæäŒãããããã¯çžäºã«ååã§ãããããããŸããã
ãŸãããããšãç§ã«ã€ããŠã§ããããã¡ããã芧ãã ããã æ¬é¡ã«å ¥ããŸãããã 1次å é åã§ãæšæ§é ãè¡šããæ¹æ³ãèããŠèŠãŸãããã ãã®åã«ãæšæ§é ãšã¯ã©ããããã®ã ã£ããã確èªããŸããã: ãã®æšæ§é ã§ã¯ã1ã€ã®èŠçŽ ãã1ã€ã®èŠçŽ ã ããšããŠæããŠããŸãããé åã§æšæ§é ãè¡šããããšããå Žåãããã¯ãããŸããããšããã®ãããã®èŠçŽ ãæã€å€ãä¿æããéšåãå¿ èŠã§ããããã®èŠçŽ ã®åãšãªãèŠçŽ ã瀺ãããã®éšåãå¿ èŠã§ãã å ã®ãé åããªã¹ããæšæ§é ãã§ã¯ãäžçªäžã®èŠçŽ ããããã®ããäžã®èŠçŽ ãžã¯ããã€ãã®èŠªåé¢ä¿ããããŸãããã§ãããããã§ã¯ã1ã€ã®èŠªã¯ã2ã€ä»¥äžã®åããæãŠãªããšããŸãããããšã1ã€ã®èŠçŽ ãšããŠæãããŠãããã®ãå®éã«ã¯ã©ããããã®ã§ããå¿ èŠãããããããããããã¯æ¬¡ã®ããã«ãªããŸã: ãã£ãšããããã§ã¯1次å ã®é åãèããŠããŸããããå®éã«ã¯1次å ã®é åã®äžã«ã次ã®ããã«3ã€çµã§äžŠãã§ãããšããŸããã: ããŠãããã§ã©ããã£ãŠæšæ§é ãè¡šããããšãããšã次ã®ããã«ãªããŸã (èªã¿æãããã«ãé©å®ã¹ããŒã¹ãéããããæ¹è¡ããŠããŸã): [ ROOT, 3,6,ãã"ã", 9, 12,ãã"ã", 15, 18,ãããã"ã", φ, φ,ãã"ã", φ, φ,ãããã"ã", φ, φ,ãã"ã", φ, φ] ããã§ã®“ROOT”ã¯æšã®èµ·ç¹ã§ããããšã瀺ãèšå·ã§ããã“φ”ã¯ããã«ã¯ã©ããªå€ãå ¥ã£ãŠããªãããšã瀺ãèšå·ãšããŸãã “ROOT” ã¯ãä»ã®ãªã«ãã§ãã£ãŠã−−ããšãã° “ã” ãšããããŒã¿ã§ã−−ããŸããŸããããŸããåºæ¬çã«é åã§ã¯ãäžã€ã®åã®èŠçŽ ããåããããã®äŸã®ããã« “ã” ãšãããããªæåããããã¯æååãšã9ãšãããããªæ°å€ãæ··åšããããšã¯ãããŸãããã§ãããããã§ã¯ãããç¡èŠããããšãšããŸãããã£ãšããã¬ã³ãŒããèŠçŽ ã«ããé åã(ã¬ã³ãŒãã®é å)ãšããæ¹æ³ããããŸãã ãã®ããã«1次å é åã®åœ¢ãšããŠæžããã ãã§ã¯ãããã«ãããããããªãã®ã§ããããå³ç€ºããŸããã: ãã®å³ã¯ãããšãã°ã0: ROOTããšãããããªæžãæ¹ããããŠããŸããããã®ã0:ãã«ãããéšåã¯ãäžã®é åã§ã®èŠçŽ ã®çªå·ã§ãã ãã®ããã«ãäžæ¬¡å é åã§ãæšæ§é ã¯æããããšãããããŸãã åãåŸãæšæ§é ã®åœ¢ã決ãŸã£ãŠãããªã−−ã€ãŸãåã¯åžžã«2å以äžãªã©−−ãããã§ãæ¡å€äžäŸ¿ã¯ãããŸãããæ £ãã¯å¿ èŠãããããŸãããã ãªãããã®æšæ§é ã®å Žåã芪ããåãžã¯èšé²ãããŠããå€ãã蟿ããŸãããåãã芪ãžã¯èŸ¿ããŸãããåãã芪ãžãçŽæ¥èŸ¿ããããã«ããã«ã¯ãçŸåš3ã€çµã§ãããšããã«ããäžã€èŠçŽ ãä»ãå ããããã«èŠªã®èŠçŽ ã®çªå·ãèšé²ããã°ããããå¯èœã«ãªããŸãããã®ãããã¯ååž°ãããã¯ãã©ãã¯ãªã©ã®æ¹æ³ã®æ¹ããããšããããšãããã®ã§ãå¿ ããã4ã€çµã«ããå¿ èŠã¯ãããŸããã ãã®ãããªæšæ§é ããæ¬äŒç»ã§è¡ãªãè¬ç¿ã«åå ããŠããã ãå ç«¥ã»çåŸã«èŠæ±ããããšãããšãå¥æ®µèŠæ±ã¯ããŸãããå ç«¥ã»çåŸããã®ãããªãã®ãçµã¿äžãããããªãããã§ããŸããŸããããå¥ã®æ¹æ³ããããªãããã§ãããŸããŸãããããšãã°ã1次å é åã3ã€äœ¿ããåæ§ã®æšæ§é ãè¡šããããšãã§ããã§ãããããããã¯ã課é¡ã解ãã®ã«çšããããŒã¿æ§é ããããããæšæ§é ã§ãªããŠãããŸããŸããã è¿œèš (Aug 07, 2017, 15:45JST):Gigazineã«ã§ãããã6æ³ã®åã©ãåããããã°ã©ãã³ã°æ宀ããå®éã«ãã£ãŠããã£ãæåãããæ¹æ³ããšããèšäºãã¢ãããããŠããŸãã 6æ³å ã§ããããæ¬äŒç»ã®å¯Ÿè±¡ãšããå ç«¥ãããäœåŠå¹Žã§ã¯ãããŸããã§ããããã®ç¥èŠãåèã«ããŠãããããšæããŸãã