Giter Site home page Giter Site logo

itwoi / turing-machine-simulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kun-wang/turing-machine-simulator

0.0 2.0 0.0 3.67 MB

A Turing machine simulator based on the syntax from "Introduction to Models of Computation"

Home Page: http://kun-wang.github.io/blog/turing-machine-simulator.html

Batchfile 0.03% Java 99.97%

turing-machine-simulator's Introduction

Readme of Turing machine simulator

Copyright 2014, Kun Wang ([email protected]).

Department of Computer Science & Technology, Nanjing University, China.

Introduction

This is a Turing machine simulator based on a nice Java Turing machine simulator from http://introcs.cs.princeton.edu/java/74turing/.

The syntax of Turing machine is totally from the book of "Introduction to Models of Computation" by professor Fangmin Song, which you can buy from Introduction to Models of Computation.

Description

bin
Contains the compiled .class files. The "images" sub-directory is very important as it stores the required images for the simulator. In the next update, I will try to move it out of the "bin" directory.

files
Contains the program description for specific operations. Examples include:

  • Adder.tur: a program for adding two non-negative integers.
  • copyString.tur: a program for copy a string of 11...11s.

In these two files, I gave a detail description of the requirements for writing a program that can be accepted by the simulator.

src
Source files of the simulator.

All of the above three directories are required for running the simulator.

introduction.pptx
Actually, the Turing machine simuator is a project for the third assignment of the course Software Architecture. introduction.pptx is my presentation on the course, which introduces basic ideas of the project, and the design patterns that have been applied.

TMSimulator.7z
The packed runnable jar, with necessary config files.

How to Use

There are two different ways to setup the simulator.

Method 1: Running the jar file

Step1. Download the repository.
Step2. Unpack TMSimulator.7z.
Step3. Click the run.bat batch file.
Warnning! The files and TMSimulator.jar must be in the same directory with run.bat.

Method 2: Importing the project into eclipse

Step1. Download the repository.
Step2. Import into eclipse.
Step3. Run it!

turing-machine-simulator's People

Contributors

kun-wang avatar itwoi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.