Technical framework of Operating System using Turing Machines

Similar documents
of the hypothesis, but it would not lead to a proof. P 1

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

Automata and Formal Languages - CM0081 Turing Machines

Computability. What can be computed?

Implementation of Recursively Enumerable Languages in Universal Turing Machine

Sequential program, state machine, Concurrent process models

CITS2211 Discrete Structures Turing Machines

THE ENUMERATION OF PERMUTATIONS SORTABLE BY POP STACKS IN PARALLEL

Tiling Problems. This document supersedes the earlier notes posted about the tiling problem. 1 An Undecidable Problem about Tilings of the Plane

CDT314 FABER Formal Languages, Automata and Models of Computation MARK BURGIN INDUCTIVE TURING MACHINES

Turing Machines (TM)

Introduction To Automata Theory Languages And Computation Addison Wesley Series In Computer Science

CSE 355: Human-aware Robo.cs Introduction to Theoretical Computer Science

Reflector A Dynamic Manifestation of Turing Machines with Time and Space Complexity Analysis

Membrane Computing as Multi Turing Machines

Basic Science for Software Developers

DVA325 Formal Languages, Automata and Models of Computation (FABER)

Oracle Turing Machine. Kaixiang Wang

One-Dimensional Peg Solitaire, and Duotaire

Modeling Supervisory Control of Autonomous Mobile Robots using Graph Theory, Automata and Z Notation

CSCI3390-Lecture 8: Undecidability of a special case of the tiling problem

Pattern Avoidance in Unimodal and V-unimodal Permutations

Advanced Automata Theory 4 Games

arxiv:math/ v1 [math.co] 22 Aug 2000

Light Up is NP-complete

A Covering System with Minimum Modulus 42

Automaten und Formale Sprachen alias Theoretische Informatik. Sommersemester 2014

Introduction to Computer Engineering. CS/ECE 252, Spring 2013 Prof. Mark D. Hill Computer Sciences Department University of Wisconsin Madison

COSE312: Compilers. Lecture 5 Lexical Analysis (4)

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY

Convolutional Coding Using Booth Algorithm For Application in Wireless Communication

Multiplayer Pushdown Games. Anil Seth IIT Kanpur

Problem 2A Consider 101 natural numbers not exceeding 200. Prove that at least one of them is divisible by another one.

Halting Problem. Implement HALT? Today. Halt does not exist. Halt and Turing. Another view of proof: diagonalization. P - program I - input.

18.204: CHIP FIRING GAMES

Conversion Masters in IT (MIT) AI as Representation and Search. (Representation and Search Strategies) Lecture 002. Sandro Spina

Fig 1 describes the proposed system. Keywords IIR, FIR, inverse Chebyshev, Elliptic, LMS, RLS.

Formalising Event Reconstruction in Digital Investigations

Computation. Philosophical Issues. Instructor: Viola Schiaffonati. March, 26 th 2018

RE-DESIGNING THE PACMAN GAME USING PUSH DOWN AUTOMATA

Lecture 2. 1 Nondeterministic Communication Complexity

Sokoban: Reversed Solving

Square Pixels to Hexagonal Pixel Structure Representation Technique. Mullana, Ambala, Haryana, India. Mullana, Ambala, Haryana, India

Search then involves moving from state-to-state in the problem space to find a goal (or to terminate without finding a goal).

FORMAL DEFINITION OF ARTIFICIAL INTELLIGENCE 1

Notes for Recitation 3

arxiv: v1 [cs.cc] 2 Dec 2014

Game Theory and Randomized Algorithms

Combinatorics on Soliton Cellular A Analysis and Differential Equations. Citation 数理解析研究所講究録 (1994), 856:

Computing Permutations with Stacks and Deques

Title? Alan Turing and the Theoretical Foundation of the Information Age

Final Exam, Math 6105

Formal Description of the Chord Protocol using ASM

Counting. Chapter 6. With Question/Answer Animations

SYNTHESIS OF CYCLIC ENCODER AND DECODER FOR HIGH SPEED NETWORKS

Permutation Tableaux and the Dashed Permutation Pattern 32 1

18 Completeness and Compactness of First-Order Tableaux

Enhanced Turing Machines

29. Army Housing (a) (b) (c) (d) (e) (f ) Totals Totals (a) (b) (c) (d) (e) (f) Basketball Positions 32. Guard Forward Center

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

MAT 115: Finite Math for Computer Science Problem Set 5

COUNTING AND PROBABILITY

A Learning System for a Computational Science Related Topic

Mathematical Investigation of Games of "Take-Away"

THE RISE AND FALL OF THE CHURCH-TURING THESIS Mark Burgin

Lecture 20 November 13, 2014

arxiv:math/ v2 [math.co] 25 Apr 2006

Towards Verification of a Service Orchestration Language. Tan Tian Huat

Problem Set pour from the receptacle to a bucket until the bucket is full or the receptacle is empty, whichever happens first,

Computational Completeness of Interaction Machines and Turing Machines

One computer theorist s view of cognitive systems

CSCI 1590 Intro to Computational Complexity

2359 (i.e. 11:59:00 pm) on 4/16/18 via Blackboard

An Approximation Algorithm for Computing the Mean Square Error Between Two High Range Resolution RADAR Profiles

NUMBER THEORY AMIN WITNO

Extending the Sierpinski Property to all Cases in the Cups and Stones Counting Problem by Numbering the Stones

Latin Squares for Elementary and Middle Grades

CS2205 Theory of Computation

Automated FSM Error Correction for Single Event Upsets

Tablatures for Stringed Instruments and Generating Functions

CS 202, section 2 Final Exam 13 December Pledge: Signature:

Foundations of Artificial Intelligence

Simple permutations: decidability and unavoidable substructures

CSCI 2570 Introduction to Nanocomputing

S Coding Methods (5 cr) P. Prerequisites. Literature (1) Contents

7/22/14. Lecture Notes. Chapter 1 Welcome Aboard. Introduction to Computing Systems: From Bits and Gates to C and Beyond 2 nd Edition

Forward and backward DAWG matching. Slobodan Petrović

It is important that you show your work. The total value of this test is 220 points.

TOPOLOGY, LIMITS OF COMPLEX NUMBERS. Contents 1. Topology and limits of complex numbers 1

From a Ball Game to Incompleteness

Section 8.1. Sequences and Series

On Comparing the Power of Robots

The Irrelevance of Turing machines to AI (and maybe to computers as we know them)

UNIVERSALITY IN SUBSTITUTION-CLOSED PERMUTATION CLASSES. with Frédérique Bassino, Mathilde Bouvel, Valentin Féray, Lucas Gerin and Mickaël Maazoun

COMM901 Source Coding and Compression Winter Semester 2013/2014. Midterm Exam

ECS 20 (Spring 2013) Phillip Rogaway Lecture 1

On uniquely k-determined permutations

MATH 2420 Discrete Mathematics Lecture notes

arxiv: v1 [math.co] 30 Nov 2017

Spring 06 Assignment 2: Constraint Satisfaction Problems

Transcription:

Reviewed Paper Technical framework of Operating System using Turing Machines Paper ID IJIFR/ V2/ E2/ 028 Page No 465-470 Subject Area Computer Science Key Words Turing, Undesirability, Complexity, Snapshot Dr. Ruchi Gupta Assistant Professor Department Of Computer Science Government P.G. College, Ambala Cantt, Haryana Abstract Turing thesis states that any algorithm procedure that can be carried by human beings/computer can be carried out by a Turing Machine. Turing Machines are also used for determining the undesirability of certain languages and measuring the space and time complexity of problems. Snapshots of a Turing machine in action can be used to describe a Turing machine. The machine must remember the past symbol scanned. The Turing machine can remember this by going to the next unique state. In a multiple track TM, a single tape is assumed to be divided into several tracks. We know subroutines are used in computer languages, when some task has to be done repeatedly. This facility can implement for Turing Machines. Turing machines are useful in several ways. As an automaton, the Turing machine is the most general model. The Turing machine can be thought of as finite control connected to a R/W (read/write) head. A Turing machine computes a function f : * * if, for any input word w, it always stops in configuration where f(w) is on the tape. The functions that are computable by an effective procedure are those that are computable by a Turing Machine. 1. Introduction Kleene in 1935, Schonfinkel in 1965 gave various models using the concept of Turing machines, λ- calculus, combinatory logic, post-system and μ-recursive functions. It is interesting to note that these were formulated much before the electro-mechanical/electronic computer were devised. Although these formalisms, describing effective computation, are dissimilar, they turn to be equivalent. Among these formalisms, the Turing s formulation is accepted as a model of algorithm or computation. It has been accepted by computer scientists that the Turing machine provides an ideal theoretical model of a computer. A Turing machine can both write in the tape and read from it, the read-write head can move both to left and right. The tape is infinite. Once accept/reject states ate reached, the computation terminates at once. www.ijifr.com Copyright IJIFR 2014 465

One scans the cells one at a time and usually performs one of the three simple operations, namely (i) writing a new symbol in the cell being currently scanned, (ii) moving to the cell left of the present cell and, (iii) moving to the cell right of the present cell. With these observations in mind, Turing machine proposed his Computing Machine. A Turing machine M is a 7-tuple, namely (Q,, Ѓ, δ, q0, b, F) where 1. Q is a finite nonempty set of states, 2. Ѓ is finite nonempty set of tape symbols, 3. b Ѓ is the blank, 4. is a nonempty set of input symbols and is a subset of Ѓ and b, 5. δ is the transition function mapping (q, x) onto (q`, y, D) where D denotes the direction of movement of R/W head: D = L or R according as the movement is to the left or right. 6. q0 Q is the initial state, and 7. F Q is the set of final states. 2. Model of Turing Machine The Turing machine can be thought of as finite control connected to a R/W (read/write head. It has one tape which is divided into a number of cells. The block diagram of the basic model for the Turing machine is given in Fig. 1. Figure 1:Turing machine Model Each cell can store only one symbol. The input to and the output from the finite state automaton are effected by the R/W head which can examine one cell at a time. In one move, the machine examines the present symbol under the R/W head on the tape the present state of an automaton to determine. 3. Representation of Turing Machine By Instantaneous Description Snapshot of a Turing machine in action can be used to describe a Turing machine. These give Instantaneous Descriptions of Turing Machine. We have define instantaneous description of a PDA (Push-Down automaton) in terms of the current state, the input string to be processed, and the topmost symbol of the pushdown store. But the input string to be processed is not sufficient to be defined as the ID of a Turing machine, for the R/W head can move to the left as well. So an ID of a Turing Machine is defined in terms of the entire string and the current state. Example: A snapshot of Turing machine is shown in Fig-2. Obtain the instantaneous description. 466

Solution: The present symbol under the R/W head is a 1. The present state is q 3. So a 1 is written to the right of q 3. The nonblank symbols to the left of q 1 form the string a 4 a 1 a 2 a 1 a 2 a 2, which is written to the left of q 3. The sequence of nonblank symbols to the right of a 1 is a 4 a 2. Thus the ID is as given in Fig-3. Figure 2: A snapshot of Turing Machine For constructing the ID, we simply insert the current state in the input string to the left of the symbol under the R/W head. We observe that the blank symbol may occur as part of the left or right substring. Figure 3: Representation of ID 4. Variants of Turing Machines The Turing machine we have introduced has a single tape. δ(q, a) is either a single triple (p, y, D), where D = R or L, or is not defined. We introduce two new models of TM : (i) A TM with more than one tape (ii) A TM where δ(q, a) = { (p 1, y 1, D 1 ), (p 2, y 2, D 2 ),.., (p r, y r, D r ) }. The first model is called a multitape TM and the second a nondeterministic TM. 4.1 Multitape Turing Machines A multitape TM has a finite set Q of states, an initial state q 0, a subset F of Q called the set of final states, a set P of tape symbols, a new symbol b, not in P called the blank symbol. There are k tapes, each divided into cells. The first tape holds the input string w. Initially, all the other tapes, hold the blank symbol. Initially the head of the first tape is at the left end of the input w. All the other heads can be placed at any cell initially. δ is a partial function from Q X Ѓ k into Q X Ѓ k X {L, R, S} k. we use implementation description to define δ. Figure-4 represent a multitape TM. A move depends on the current state and k tape symbol under k tape heads. 467

Figure 4: Multitape Turing machine In a typical move: (i) M enters a new state. (ii) On each tape, a new symbol is written in the cell under the head. (iii) Each tape head moves to the left or right or remains stationary. The heads move independently: some move to the left, some to the right and the remaining heads do not move. The initial ID has the initial state q 0, the input string w in the first tape, empty strings of b s in the remaining k-1 tapes. An accepting ID has a final state, some strings in each of the k tapes. Figure-5 can be used to visualize the simulation. The symbols A 2 and B 5 are the currents symbols to be scanned and so the head marker X is above the two symbols. Figure 5: Simulation of Multitape Turing machine Initially the contents of tapes 1 and 2 of m are stored in the second and fourth tracks of M 1. The head markers of the first and third tracks are at the cells containing the first symbol. To simulate a move of M, the 2k-track TM M 1 has to visit the two head markers and store the scanned symbols in its control. Keeping track of the head markers visited and those to be visited is achieved by keeping a count and storing it in the finite control of M 1. Note that the finite control of M 1 has also the information about the states of M and its moves. After visiting both head markers, M 1 knows the tape symbols being scanned by the two heads of M. Now M 1 revisit each of the head markers: (i) It changes the tape symbol in the corresponding track of M 1 based on the information regarding the move of M corresponding to the state (of M) and the tape symbol in the corresponding tape M. (ii) It moves the head markers to the left or right. (iii) M 1 changes the state of M in its control. 468

This is the simulation of a single move of M. At the end of this, M 1 is ready to implement its next move based on the revised positions of its head markers and the changed state available in its control. M 1 accepts a string w if the new state of M, as recorded in its control at the end of the processing of w, is a final state of M. 4.2 Nondeterministic Turing Machines In the case of standard Turing machines (hereafter we refer to this machine as deterministic TM), δ(q 1, a) was defined (for some elements of Q X Ѓ) as an element of Q X Ѓ X {L, R}. Now we extend the definition of δ. In a nondeterministic TM, δ(q 1, a) is defined as a subset of Q X Ѓ X {L, R}. 5 Objectives of the study A Turing Machine can both write on the tape and read from it and read-write head can move both to the left and to the right. Turing machine have an unlimited amount of storage space for their computations. Turing machine are not intended to model computers, but rather they are intended to model computation itself. The difference lies only with the ability of a Turing machine to manipulate an unbounded amount of date. However, given a finite amount of time, a Turing machine (like a real machine) can only manipulate a finite amount of data. Like a Turing machine, a real machine can have its storage space enlarged as needed, by acquiring more disks or other storage media. If the supply of these runs short, the Turing machine may become less useful as model. But the fact is that neither Turing machines nor real machines need astronomical amounts of storage space in order to perform useful computation. The processing time required is usually much more of a problem. 6 Conclusions Turing machines describe algorithms independent of how much memory they use. There is limit to the memory possessed by any current machine, but this limit can rise arbitrarily in time. Turing machines allow us to make statements about algorithms which will hold forever, regardless of advances in conventional computing machine architecture. Turing machines are that they do not model concurrency well. For example, there is a bound on the size of integer that can be computed by an always-halting nondeterministic Turing machine starting on blank tape. The Turing machine arose as an ideal theoretical model for an algorithm. The Turing Machine provides machinery to mathematicians for attacking the Hilberts tenth problem. The problem can be restated as follows: does there exist a TM that can accept a polynomial over n variables if it has an integral root and reject the polynomial if it does not have one. Using Gödel numbering which converts operations of Turing machines into numeric quantities, it can be proved that Turing-computable functions are partial recursive. References [1] Kohavi, ZVI, Switching and Finite Automata Theory, Tata McGraw-Hill, New Delhi, 1986. [2] Sahni, D.F. and D.F. McAllister, Discrete Mathematics in Computer Science, Prentice-Hall, Enhlewood Cliffs, New Jersy, 1977. [3] Ullman, J.D., Fundamental Concepts of Programming Systems, Addison-Wesley, Reading (Mass.), 1976. [4] Nelson, R.J., Introduction to Automata, Wiley, New York, 1968. [5] Manna, Z., Mathematical Theory of Computation, McGraw-Hill, Kogakusha, Tokyo, 1974. 469

[6] Levy, L.S., Discrete Structures of Computer Science, Wiley Eastern, New Delhi, 1988. [7] Gries, D., The Science of Programming, Narosa Publishing House, New Delhi, 1981. [8] Hopcroft, J.E., J. Motwani, and J.D. Ullman, Introduction to Automata Theory, Languages and Computation, Pearson Education, Asia, 2002 470