Coder Social home page Coder Social logo

prasannanatarajan / csd303_toc Goto Github PK

View Code? Open in Web Editor NEW
2.0 5.0 0.0 13.04 MB

Assignments for the course CSD303 Theory Of Computation

C 0.01% C++ 0.01% Java 99.99%
java theory-of-computation toc mealy-machine moore-to-mealy string-matching nfa thomson-nfa lab-assignment

csd303_toc's Introduction

CSD303_TOC

Assignments for the course CSD303 : Theory Of Computation

Group Name: SPD

Gist:

Question1:

To compile the code:

javac StringMaching.java

To run the code:

java StringMaching -T <full text> -P <pattern>

Modules Completed:

  1. matcher : Checks whether the given string matches the Transition table
  2. computeTransitionFunction: Creates Transition table for a given pattern

Modules Incomplete:

  1. None

Question2:

To compile the code:

javac Fragment.java NFA.java State.java mainClass.java

To run the code:

java mainClass -r <regex> -s <inputString>

Modules Completed:

  1. State: Class that defines a state
  2. Fragment: Class that defines fragments of transition.
  3. NFA​: Class that creates NFA out of user input (regex)
  4. mainClass: Simulates the NFA created by the class above

Modules Incomplete:

  1. Have to used multithreading to simulate the NFA

Question3:

Embedded System Simulated: Vending Machine

To compile the code:

javac MealyMachine.java
javac MooreMachine.java

To run the code:

java MealyMachine
java MooreMachine

Modules Completed:

  1. MooreMachine: Creates and simulates a moore machine for the above embedded system.
  2. MealyMachine: Creates and simulates a mealy machine for the above embedded system.

Modules Incomplete:

  1. None

Group Members

  1. Bhishmaraj -bhi5hmaraj

  2. Prasanna Natarajan - PrasannaNatarajan

  3. Vedant Chakravarthy - vedantcj

csd303_toc's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  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.