Implement the nondeterministic Turing machine in task 14 as a computer program! Use the similar approach as in implementing finite automata (a while loop with switch). In addition, you'll need an array for simulating the working tape. You can implement the nondeterminism by selecting randomly the following configuration.
Toteuta tehtävän 14 epädeterministinen Turingin kone tietokoneohjelmana! Käytä samanlaista lähestymistapaa kuin äärellisten automaattien toteutuksessa (yksi while-silmukka, jossa switch). Lisäksi tarvitset taulukon työnauhan simulointiin. Epädeterminismin voit toteuttaa valitsemalla satunnaisesti seuraajatilanteen.