This project is for Practical 1 of CS5012 Language and Computation.
author is 210016568.
here are 3 algorithms, you can cd to the folder first, then run it via python algo1.py
or python algo2.py
or python algo3.py
.
if you want to change the language the algorithm work on, just open the configurations.py
, change the value of variable lang
to langs[n]
.
For the algorithm 2, I didn't follow the lectures, I follow the algorithm in wikipedia.