{"id":3020,"date":"2021-08-08T16:03:57","date_gmt":"2021-08-08T13:03:57","guid":{"rendered":"https:\/\/demensdeum.com\/blog\/?p=3020"},"modified":"2024-12-16T22:32:21","modified_gmt":"2024-12-16T19:32:21","slug":"turing-bombe","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/ja\/2021\/08\/08\/turing-bombe\/","title":{"rendered":"\u30c1\u30e5\u30fc\u30ea\u30f3\u30b0\u7206\u5f3e"},"content":{"rendered":"<p>1936 \u5e74\u3001\u79d1\u5b66\u8005\u306e\u30a2\u30e9\u30f3 \u30c1\u30e5\u30fc\u30ea\u30f3\u30b0\u306f\u3001\u8457\u66f8\u300e\u8a08\u7b97\u53ef\u80fd\u306a\u6570\u306b\u3064\u3044\u3066\u3001\u73fe\u5b9f\u306e\u554f\u984c\u3078\u306e\u5fdc\u7528\u300f\u306e\u4e2d\u3067\u3001\u6570\u5b66\u306b\u304a\u3051\u308b\u53ef\u89e3\u6027\u306e\u554f\u984c\u306b\u7d42\u6b62\u7b26\u3092\u6253\u3064\u53ef\u80fd\u6027\u306e\u3042\u308b\u4e07\u80fd\u8a08\u7b97\u6a5f\u306e\u4f7f\u7528\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u7d50\u679c\u3001\u5f7c\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u30de\u30b7\u30f3\u306e\u4f5c\u696d\u7d50\u679c\u304c\u53cd\u8ee2\u3055\u308c\u3001\u305d\u308c\u81ea\u4f53\u3067\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u3055\u308c\u308b\u5834\u5408\u3001\u305d\u306e\u3088\u3046\u306a\u30de\u30b7\u30f3\u306f\u4f55\u3082\u6b63\u3057\u304f\u89e3\u6c7a\u3067\u304d\u306a\u3044\u3060\u308d\u3046\u3068\u3044\u3046\u7d50\u8ad6\u306b\u9054\u3057\u307e\u3057\u305f\u3002 *\u7406\u60f3\u7684\u306a* \u30a2\u30f3\u30c1\u30a6\u30a4\u30eb\u30b9\u3001*\u7406\u60f3\u7684\u306a* \u30bf\u30a4\u30eb \u30bb\u30c3\u30bf\u30fc\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u306b\u5bfe\u3057\u3066\u7406\u60f3\u7684\u306a\u30d5\u30ec\u30fc\u30ba\u3092\u63d0\u6848\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3069\u3092\u4f5c\u6210\u3059\u308b\u306e\u306f\u4e0d\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u304c\u5224\u660e\u3057\u307e\u3057\u305f\u3002\u30d1\u30e9\u30c9\u30c3\u30af\u30b9\uff01<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u6c4e\u7528\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0 \u30de\u30b7\u30f3\u306f\u3042\u3089\u3086\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u5b9f\u88c5\u306b\u4f7f\u7528\u3067\u304d\u3001\u82f1\u56fd\u8adc\u5831\u6a5f\u95a2\u306f\u305d\u308c\u3092\u5229\u7528\u3057\u3066\u30c1\u30e5\u30fc\u30ea\u30f3\u30b0\u3092\u96c7\u3044\u3001\u7b2c\u4e8c\u6b21\u4e16\u754c\u5927\u6226\u4e2d\u306b\u30c9\u30a4\u30c4\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u89e3\u8aad\u3059\u308b\u305f\u3081\u306e\u300c\u30dc\u30f3\u30d9\u300d\u30de\u30b7\u30f3\u306e\u4f5c\u6210\u3092\u8a31\u53ef\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u5143\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u57fa\u3065\u3044\u305f\u3001Dart \u8a00\u8a9e\u306b\u3088\u308b\u5358\u4e00\u30c6\u30fc\u30d7 \u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e OOP \u30e2\u30c7\u30ea\u30f3\u30b0\u3067\u3059\u3002<\/p>\n<p>\u30c1\u30e5\u30fc\u30ea\u30f3\u30b0 \u30de\u30b7\u30f3\u306f\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u5206\u5272\u3055\u308c\u305f\u30d5\u30a3\u30eb\u30e0\u3067\u69cb\u6210\u3055\u308c\u3066\u304a\u308a\u3001\u5404\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u306f\u30b7\u30f3\u30dc\u30eb\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u30b7\u30f3\u30dc\u30eb\u306f\u8aad\u307f\u66f8\u304d\u3067\u304d\u307e\u3059\u3002\u6620\u753b\u30af\u30e9\u30b9\u306e\u4f8b:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-unknown\" data-lang=\"unknown\"><code>final _map = Map&lt;int, String&gt;(); \n\n  String read({required int at}) { \n    return _map[at] ?? \"\"; \n  } \n\n  void write({required String symbol, required int at}) { \n    _map[at] = symbol; \n  } \n}\n<\/code><\/pre>\n<\/div>\n<p>\u300c\u30b9\u30ad\u30e3\u30f3 \u30b9\u30af\u30a8\u30a2\u300d\u3082\u3042\u308a\u3001\u30d5\u30a3\u30eb\u30e0\u4e0a\u3092\u79fb\u52d5\u3057\u3066\u60c5\u5831\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 (\u73fe\u4ee3\u8a9e\u3067\u8a00\u3048\u3070 &#8211;)\u3002\u78c1\u6c17\u30d8\u30c3\u30c9\u3002\u78c1\u6c17\u30d8\u30c3\u30c9 \u30af\u30e9\u30b9\u306e\u4f8b:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-unknown\" data-lang=\"unknown\"><code>  int _index = 0; \n  InfiniteTape _infiniteTape; \n  TapeHead(this._infiniteTape) {} \n\n  String next() { \n    _index += 1; \n    move(to: _index); \n    final output = read(); \n    return output; \n  } \n\n  String previous() { \n    _index -= 1; \n    move(to: _index); \n    final output = read(); \n    return output; \n  } \n\n  void move({required int to}) { \n    this._index = to; \n  } \n\n  String read() { \n    return _infiniteTape.read(at: this._index); \n  } \n\n  void write(String symbol) { \n    _infiniteTape.write(symbol: symbol, at: this._index); \n  } \n\n  int index() { \n    return _index; \n  } \n} \n<\/code><\/pre>\n<\/div>\n<p>\u30de\u30b7\u30f3\u306b\u306f\u3001\u6b21\u306b\u4f55\u3092\u884c\u3046\u304b\u3092\u6c7a\u5b9a\u3067\u304d\u308b\u300cm \u69cb\u6210\u300d\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u73fe\u4ee3\u8a9e\u3067&#8211;\u72b6\u614b\u3068\u72b6\u614b\u30cf\u30f3\u30c9\u30e9\u30fc\u3002\u72b6\u614b\u30cf\u30f3\u30c9\u30e9\u30fc\u306e\u4f8b:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-unknown\" data-lang=\"unknown\"><code>  FiniteStateControlDelegate? delegate = null; \n\n  void handle({required String symbol}) { \n    if (symbol == OPCODE_PRINT) { \n      final argument = delegate?.nextSymbol(); \n      print(argument);\n    } \n    else if (symbol == OPCODE_GENERATE_RANDOM_NUMBER_FROM_ZERO_TO_AND_WRITE_AFTER) { \n      final to = int.tryParse(delegate!.nextSymbol())!; \n      final value = new Random().nextInt(to); \n      delegate!.nextSymbol(); \n      delegate!.write(value.toString()); \n    } \n    else if (symbol == OPCODE_INPUT_TO_NEXT) { \n      final input = stdin.readLineSync()!; \n      delegate?.nextSymbol(); \n      delegate?.write(input); \n    } \n    else if (symbol == OPCODE_COPY_FROM_TO) { \n      final currentIndex = delegate!.index(); \n\n\u0438 \u0442.\u0434. \n<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u5f8c\u3001\u300c\u69cb\u6210\u300d\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u73fe\u4ee3\u306e\u8a00\u8449\u3067\u8a00\u3046\u3068\u3001\u3053\u308c\u3089\u306f\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3 \u30b3\u30fc\u30c9 (\u30aa\u30da\u30b3\u30fc\u30c9) \u3068\u305d\u306e\u30cf\u30f3\u30c9\u30e9\u30fc\u3067\u3059\u3002\u30aa\u30da\u30b3\u30fc\u30c9\u306e\u4f8b:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-unknown\" data-lang=\"unknown\"><code>const OPCODE_PRINT = \"print\"; \nconst OPCODE_INCREMENT_NEXT = \"increment next\"; \nconst OPCODE_DECREMENT_NEXT = \"decrement next\"; \nconst OPCODE_IF_PREVIOUS_NOT_EQUAL = \"if previous not equal\"; \nconst OPCODE_MOVE_TO_INDEX = \"move to index\"; \nconst OPCODE_COPY_FROM_TO = \"copy from index to index\"; \nconst OPCODE_INPUT_TO_NEXT = \"input to next\"; \nconst OPCODE_GENERATE_RANDOM_NUMBER_FROM_ZERO_TO_AND_WRITE_AFTER = \"generate random number from zero to next and write after\"; \n<\/code><\/pre>\n<\/div>\n<p><strong>\u30aa\u30da\u30b3\u30fc\u30c9\u3068\u505c\u6b62\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3057\u306a\u3044\u3068\u3001\u89e3\u6c7a\u306e\u554f\u984c\u3092\u8a3c\u660e\u3067\u304d\u306a\u3044\u304b\u3001\u8a3c\u660e\u3067\u304d\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/p>\n<p>\u6b21\u306b\u3001\u300c\u30e1\u30c7\u30a3\u30a8\u30fc\u30bf\u30fc\u300d\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c1\u30e5\u30fc\u30ea\u30f3\u30b0 \u30de\u30b7\u30f3 \u30af\u30e9\u30b9\u5185\u306e\u3059\u3079\u3066\u306e\u30af\u30e9\u30b9\u3092\u63a5\u7d9a\u3057\u3001\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001\u30c6\u30fc\u30d7 \u30ec\u30b3\u30fc\u30c0\u30fc\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u9332\u97f3\u3057\u3001\u30c6\u30fc\u30d7\u3092\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3001\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p >\n<p><em>\u79c1\u500b\u4eba\u306b\u3068\u3063\u3066\u3001\u4f55\u304c\u4e3b\u8981\u3067\u3042\u308b\u304b\u3068\u3044\u3046\u554f\u984c\u306f\u4f9d\u7136\u3068\u3057\u3066\u8208\u5473\u6df1\u3044\u3082\u306e\u3067\u3057\u305f &#8211;\u4e07\u80fd\u8a08\u7b97\u6a5f\u306e\u4f5c\u6210\u3001\u307e\u305f\u306f\u300cEntscheidungsproblem\u300d\u306e\u8a3c\u660e\u3001\u305d\u306e\u7d50\u679c\u526f\u7523\u7269\u3068\u3057\u3066\u8a08\u7b97\u6a5f\u304c\u767b\u5834\u3057\u307e\u3057\u305f\u3002<\/em><\/p>\n<h3>\u30ab\u30bb\u30c3\u30c8<\/h3>\n<p>\u697d\u3057\u307f\u306e\u305f\u3081\u306b\u3001\u81ea\u5206\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30de\u30b7\u30f3\u7528\u306b\u3044\u304f\u3064\u304b\u306e\u30ab\u30bb\u30c3\u30c8 \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u9332\u97f3\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u30cf\u30ed\u30fc\u30ef\u30fc\u30eb\u30c9<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-unknown\" data-lang=\"unknown\"><code>hello world \nstop<\/code><\/pre>\n<p><strong>\u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0434\u043e 16-\u0442\u0438<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-unknown\" data-lang=\"unknown\"><code>0\nif previous not equal\n16\ncopy from index to index\n1\n8\nprint\n?\nmove to index\n0\nelse\ncopy from index to index\n1\n16\nprint\n?\nprint\nFinished!\nstop<\/code><\/pre>\n<p>\u0421\u0430\u043c\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 Quine \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043b\u0435\u043d\u0442\u043e\u0447\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b. \u041f\u0435\u0440\u0432\u044b\u0435 8 \u0447\u0430\u0441\u043e\u0432 \u043c\u043d\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u044d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043d\u0435 \u0440\u0435\u0448\u0430\u0435\u043c\u0430 \u0441 \u0442\u0430\u043a\u0438\u043c \u043c\u0430\u043b\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043e\u043f\u043a\u043e\u0434\u043e\u0432, \u043e\u0434\u043d\u0430\u043a\u043e \u0432\u0441\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 16 \u0447\u0430\u0441\u043e\u0432 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u044f \u0431\u044b\u043b \u043d\u0435 \u043f\u0440\u0430\u0432.<\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u0430\u0441\u0441\u0435\u0442, \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u043d\u0438\u0436\u0435.<\/p>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438<\/h3>\n<p><a href=\"https:\/\/gitlab.com\/demensdeum\/turing-machine\" target=\"_blank\" rel=\"noopener\">https:\/\/gitlab.com\/demensdeum\/turing-machine<\/a><\/p>\n<h3>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438<\/h3>\n<p><a href=\"https:\/\/www.astro.puc.cl\/~rparra\/tools\/PAPERS\/turing_1936.pdf\" target=\"_blank\" rel=\"noopener\">https:\/\/www.astro.puc.cl\/~rparra\/tools\/PAPERS\/turing_1936.pdf<\/a><br \/>\n<a href=\"https:\/\/kpolyakov.spb.ru\/prog\/turing.htm\" target=\"_blank\" rel=\"noopener\">https:\/\/kpolyakov.spb.ru\/prog\/turing.htm<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=dNRDvLACg5Q\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=dNRDvLACg5Q<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=jP3ceURvIYc\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=jP3ceURvIYc<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=9QCJj5QzETI\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=9QCJj5QzETI<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=HeQX2HjkcNo&amp;t=0s\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/watch?v=HeQX2HjkcNo&amp;t=0s<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1936 \u5e74\u3001\u79d1\u5b66\u8005\u306e\u30a2\u30e9\u30f3 \u30c1\u30e5\u30fc\u30ea\u30f3\u30b0\u306f\u3001\u8457\u66f8\u300e\u8a08\u7b97\u53ef\u80fd\u306a\u6570\u306b\u3064\u3044\u3066\u3001\u73fe\u5b9f\u306e\u554f\u984c\u3078\u306e\u5fdc\u7528\u300f\u306e\u4e2d\u3067\u3001\u6570\u5b66\u306b\u304a\u3051\u308b\u53ef\u89e3\u6027\u306e\u554f\u984c\u306b\u7d42\u6b62\u7b26\u3092\u6253\u3064\u53ef\u80fd\u6027\u306e\u3042\u308b\u4e07\u80fd\u8a08\u7b97\u6a5f\u306e\u4f7f\u7528\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u7d50\u679c\u3001\u5f7c\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u30de\u30b7\u30f3\u306e\u4f5c\u696d\u7d50\u679c\u304c\u53cd\u8ee2\u3055\u308c\u3001\u305d\u308c\u81ea\u4f53\u3067\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u3055\u308c\u308b\u5834\u5408\u3001\u305d\u306e\u3088\u3046\u306a\u30de\u30b7\u30f3\u306f\u4f55\u3082\u6b63\u3057\u304f\u89e3\u6c7a\u3067\u304d\u306a\u3044\u3060\u308d\u3046\u3068\u3044\u3046\u7d50\u8ad6\u306b\u9054\u3057\u307e\u3057\u305f\u3002 *\u7406\u60f3\u7684\u306a* \u30a2\u30f3\u30c1\u30a6\u30a4\u30eb\u30b9\u3001*\u7406\u60f3\u7684\u306a* \u30bf\u30a4\u30eb \u30bb\u30c3\u30bf\u30fc\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u306b\u5bfe\u3057\u3066\u7406\u60f3\u7684\u306a\u30d5\u30ec\u30fc\u30ba\u3092\u63d0\u6848\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3069\u3092\u4f5c\u6210\u3059\u308b\u306e\u306f\u4e0d\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u304c\u5224\u660e\u3057\u307e\u3057\u305f\u3002\u30d1\u30e9\u30c9\u30c3\u30af\u30b9\uff01 \u3057\u304b\u3057\u3001\u3053\u306e\u6c4e\u7528\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0 \u30de\u30b7\u30f3\u306f\u3042\u3089\u3086\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u5b9f\u88c5\u306b\u4f7f\u7528\u3067\u304d\u3001\u82f1\u56fd\u8adc\u5831\u6a5f\u95a2\u306f\u305d\u308c\u3092\u5229\u7528\u3057\u3066\u30c1\u30e5\u30fc\u30ea\u30f3\u30b0\u3092\u96c7\u3044\u3001\u7b2c\u4e8c\u6b21\u4e16\u754c\u5927\u6226\u4e2d\u306b\u30c9\u30a4\u30c4\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u89e3\u8aad\u3059\u308b\u305f\u3081\u306e\u300c\u30dc\u30f3\u30d9\u300d\u30de\u30b7\u30f3\u306e\u4f5c\u6210\u3092\u8a31\u53ef\u3057\u307e\u3057\u305f\u3002 \u4ee5\u4e0b\u306f\u3001\u5143\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u57fa\u3065\u3044\u305f\u3001Dart \u8a00\u8a9e\u306b\u3088\u308b\u5358\u4e00\u30c6\u30fc\u30d7 \u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e OOP \u30e2\u30c7\u30ea\u30f3\u30b0\u3067\u3059\u3002 \u30c1\u30e5\u30fc\u30ea\u30f3\u30b0 \u30de\u30b7\u30f3\u306f\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u5206\u5272\u3055\u308c\u305f\u30d5\u30a3\u30eb\u30e0\u3067\u69cb\u6210\u3055\u308c\u3066\u304a\u308a\u3001\u5404\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u306f\u30b7\u30f3\u30dc\u30eb\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u30b7\u30f3\u30dc\u30eb\u306f\u8aad\u307f\u66f8\u304d\u3067\u304d\u307e\u3059\u3002\u6620\u753b\u30af\u30e9\u30b9\u306e\u4f8b: final _map = Map&lt;int, String&gt;(); String read({required int at}) { return _map[at] ?? &#8220;&#8221;; } void write({required String symbol, required int at}) { _map[at] = symbol; } } \u300c\u30b9\u30ad\u30e3\u30f3 \u30b9\u30af\u30a8\u30a2\u300d\u3082\u3042\u308a\u3001\u30d5\u30a3\u30eb\u30e0\u4e0a\u3092\u79fb\u52d5\u3057\u3066\u60c5\u5831\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 (\u73fe\u4ee3\u8a9e\u3067\u8a00\u3048\u3070 &#8211;)\u3002\u78c1\u6c17\u30d8\u30c3\u30c9\u3002\u78c1\u6c17\u30d8\u30c3\u30c9 \u30af\u30e9\u30b9\u306e\u4f8b: int _index = 0; InfiniteTape _infiniteTape;<a class=\"more-link\" href=\"https:\/\/demensdeum.com\/blog\/ja\/2021\/08\/08\/turing-bombe\/\">Continue reading <span class=\"screen-reader-text\">&#8220;\u30c1\u30e5\u30fc\u30ea\u30f3\u30b0\u7206\u5f3e&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[61,52],"tags":[178,175,177,176],"class_list":["post-3020","post","type-post","status-publish","format-standard","hentry","category-techie","category-tutorials","tag-abstract","tag-computer-science","tag-machine","tag-turing","entry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"ja","enabled_languages":["en","ru","zh","de","fr","ja","pt","hi"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false},"de":{"title":true,"content":true,"excerpt":false},"fr":{"title":true,"content":true,"excerpt":false},"ja":{"title":true,"content":true,"excerpt":false},"pt":{"title":true,"content":true,"excerpt":false},"hi":{"title":false,"content":false,"excerpt":false}}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/3020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/comments?post=3020"}],"version-history":[{"count":17,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/3020\/revisions"}],"predecessor-version":[{"id":3893,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/3020\/revisions\/3893"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/media?parent=3020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/categories?post=3020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/tags?post=3020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}