https://github.com/cr2007/f29fb-assignment
Turing Machine Code for Foundations 2 Course (F29FB)
https://github.com/cr2007/f29fb-assignment
foundations-2 turing-machine unary-multiplication
Last synced: 9 months ago
JSON representation
Turing Machine Code for Foundations 2 Course (F29FB)
- Host: GitHub
- URL: https://github.com/cr2007/f29fb-assignment
- Owner: cr2007
- Created: 2023-03-08T14:36:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-17T09:51:20.000Z (12 months ago)
- Last Synced: 2025-02-09T09:41:15.355Z (11 months ago)
- Topics: foundations-2, turing-machine, unary-multiplication
- Language: Typst
- Homepage: https://f29fb-assignment.streamlit.app/
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# F29FB Assignment
## Course: [Foundations 2](https://curriculum.hw.ac.uk/coursedetails/F29FB?termcode=202223) (F29FB)
Unary Multiplication Turing Machine Code
## Index
- [Steps:](#steps)
- [Accepted inputs (Example):](#accepted-inputs-example)
- [Unaccepted inputs (Example):](#unaccepted-inputs-example)
## Steps:
(Make sure you have [Python](https://www.python.org/downloads/) installed on your machine before running the code)
1. Go to the [Python file](F29FB.py)
2. Open your terminal
3. Type `python3 F29FB.py`
4. Enter your input value and see the result in a TM tape
Make sure that your input in a **unary value**.
## Accepted inputs (Example):
- `1*1` ($1 \times 1$)
- `1111*11` ($4 \times 2$)
- `b*11` ($0 \times 2$)
- `0*111` ($0 \times 3$)
- `11*0` ($2 \times 0$)
- `11*111` ($2 \times 3$)
- `111*B` ($3 \times 0$)
## Unaccepted inputs (Example):
- `1*2` (not unary)
- `3*2` (not unary)
- `1*0` (not unary)