Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright 2002 守屋悦朗 オートマトンって? (Turing machine) (アニメーションで実行のこと)

Similar presentations


Presentation on theme: "Copyright 2002 守屋悦朗 オートマトンって? (Turing machine) (アニメーションで実行のこと)"— Presentation transcript:

1 Copyright 2002 守屋悦朗 オートマトンって? (Turing machine) (アニメーションで実行のこと)

2 a2 an a1 q0 読み書きヘッド 空白記号♭は、 普通は書かない 入力文字列

3 a4 a a3 a2 a1 q 動作前 δ(q, a) = (p, b, L) a4 b a3 a2 a1  … p 動作後

4 つまり、 次のように動く

5 a1 a2 a a3 a4  … q

6 a1 a2 b a3 a4  … p

7 掛け算をやってみよう

8   2   3 1 1 1 1 1 q0

9   2   3 1 1 1 1 q♭

10   2   3 1 1 1 1 q♭

11   2   3 1 1 1 1 q1

12   2   3 1 # 1 1 q右

13   2   3 1 # 1 1 q右

14   2   3 1 # 1 1 q右

15   2   3 1 # 1 1 @ q左

16   2   3 1 # 1 1 @ q左

17   2   3 1 # 1 1 @ q左

18   2   3 1 # 1 1 @ q左

19   2   3 1 # 1 1 @ q1

20   2   3 1 # # 1 @ q右

21   2   3 1 # # 1 @ q右

22   2   3 1 # # 1 @ q右

23   2   3 1 # # 1 @ @ q左

24   2   3 1 # # 1 @ @ q左

25   2   3 1 # # 1 @ @ q左

26   2   3 1 # # 1 @ @ q1

27   2   3 1 # # # @ @ q右

28   2   3 1 # # # @ @ q右

29   2   3 1 # # # @ @ q右

30   2   3 1 # # # @ @ @ q左

31   2   3 1 # # # @ @ @ q左

32   2   3 1 # # # @ @ @ q左

33   2   3 1 # # # @ @ @ q左

34   2   3 1 # # # @ @ @ q1

35   2   3 1 # # # @ @ @ q終

36   2   3 1 # # 1 @ @ @ q終

37   2   3 1 # 1 1 @ @ @ q終

38   2   3 1 1 1 1 @ @ @ q終

39   2   3 1 1 1 1 @ @ @ q終

40   2   3 1 1 1 1 @ @ @ q終

41   2   3 1 1 1 1 @ @ @ q0

42   2   3 1 1 1 @ @ @ q♭

43   2   3 1 1 1 @ @ @ q1

44   2   3 # 1 1 @ @ @ q右

45   2   3 # 1 1 @ @ @ q右

46   2   3 # 1 1 @ @ @ q右

47   2   3 # 1 1 @ @ @ q右

48   2   3 # 1 1 @ @ @ q右

49   2   3 # 1 1 @ @ @ q右

50   2   3 # 1 1 @ @ @ @ q左

51   2   3 # 1 1 @ @ @ @ q左

52   2   3 # 1 1 @ @ @ @ q左

53   2   3 # 1 1 @ @ @ @ q左

54   2   3 # 1 1 @ @ @ @ q左

55   2   3 # 1 1 @ @ @ @ q1

56   2   3 # # 1 @ @ @ @ q右

57   2   3 # # 1 @ @ @ @ q右

58   2   3 # # 1 @ @ @ @ q右

59 途中省略

60   2   3 @が6個 # # # @ @ @ q左

61   2   3 @が6個 # # # @ @ @ q左

62   2   3 @が6個 # # # @ @ @ q左

63   2   3 @が6個 # # # @ @ @ q1

64   2   3 @が6個 # # # @ @ @ q終

65   2   3 @が6個 # # # @ @ @ q終

66   2   3 @が6個 # # # @ @ @ q終

67   2   3 @が6個 # # # @ @ @ q終

68   2   3 @が6個 # # # @ @ @ q終

69   2   3  6 # # # @ @ @ q2

70   2   3 @が6個 # # # @ @ @ q0

71   2   3 @が6個 # # # @ @ @ q1

72   2   3 @が6個 # # # @ @ @ q1

73   2   3 @が6個 # # # @ @ @ q1

74   2   3 @が6個 # # # @ @ @ q2

75   2   3 @が6個 # # # @ @ @ q2

76   2   3 @が6個 # # # @ @ @ q2

77   2   3 @が6個 # # @ @ @ q3

78   2   3 @が6個 # @ @ @ q3

79   2   3 @が6個 @ @ @ q3

80   2   3 @が5個 1 @ @

81   2   3 @が4個 1 1 @

82   2   3 @が3個 1 1 1

83 途中省略

84 1が6個   2   3 1 1 1 1 1 @

85 1が6個   2   3 1 1 1 1 1 1

86   2   3 2×3 1 1 1 1 1 1 受理

87 終わり                                    戻る   


Download ppt "Copyright 2002 守屋悦朗 オートマトンって? (Turing machine) (アニメーションで実行のこと)"

Similar presentations


Ads by Google