Skip to content

A two-way, single-track Turing machine that simulates linear search on a given set of inputs and returns the corresponding index if an element exists.

Notifications You must be signed in to change notification settings

jeremytinkers/LinearSearchSimulation_usingTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LinearSearchSimulation_usingTM

A group project (as part of our academic coursework - CSPC41: Formal Languages and Automata Theory) where our team designed a two-way, single-track Turing machine that simulates linear search on a given set of inputs and returns the corresponding index if an element exists. The transition table and helper functions were implemented in C++.

Do note:-

  • The seminarIntro.pdf contains the basic input and output style for our TM.
  • The Automata Project.pdf contains the reasoning as well as the final transition table for our TM. In addition, it contains our choice of action in various edge-cases.
  • Compile and run LinearSearch_TM.cpp to view our simulation, step-by-step.

About

A two-way, single-track Turing machine that simulates linear search on a given set of inputs and returns the corresponding index if an element exists.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages