Skip to content

YamaSD/turing-bubble-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Turing Machine Bubble Sort Simulator

A simple full-stack web app that simulates a Turing Machine-style Bubble Sort on a binary tape.
Built using Python (Flask) for the backend and React.js for the frontend.


🚀 Demo

Enter a binary tape (like 1110001) and watch it get sorted step-by-step like a Turing Machine!
Frontend: React + Live Visualization
Backend: Python + Flask API


🛠️ Features

  • ✅ Bubble Sort simulation over a binary "tape"
  • ✅ Turing machine-like head movement and logic
  • ✅ REST API built with Flask
  • ✅ React frontend to run and visualize steps
  • ✅ Smooth step-by-step animation
  • ✅ Clean and modular code structure

📦 Technologies Used

Layer Tech
Backend Python, Flask
Frontend React.js
UI HTML, CSS (inline styles)
Dev Tools Git, GitHub, Node.js

🔧 How to Run the Project

1. Clone the Repository

git clone https://github.com/YOUR_USERNAME/turing-bubble-sort.git
cd turing-bubble-sort

2. Start the Backend (Flask)

cd backend
pip install -r requirements.txt
python app.py

3. Start the Frontend (React)

-Open a second terminal:

Copy
Edit
cd frontend
npm install
npm start

-🌐 Visit http://localhost:3000 to open the app in your browser

image

About

Turing Machine Simulation of Bubble Sort in Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors