Question: This question is about algorithmic problems, wHILE, and other notions of effective computability. ( a ) For EACH of the following problems, say whether it
This question is about algorithmic problems, wHILE, and other notions of effective
computability.
a For EACH of the following problems, say whether it is a problem in our sense,
ie an algorithmic problem. If it is not, explain briefly why not.
i Given an undirected graph where edges are annotated with distances as
integer numbers is there a path that visits all nodes of the graph that is no
longer than
ii Given the list of all integer numbers between and does it
contain more than prime numbers?
b Which of the following notions of computation can decide the same problems
as Turing Machines? No explanations required.
i Java Programs
ii Regular Expressions
iii. Cellular Automata
iv Untyped Lambda Expressions
c Give an example of a WHILEstatement list written in core WHILE without
extensions such that:
:ulcornernurcorner,:ulcornermurcorner:ulcornernmurcorner,:ulcornerurcorner
for all natural numbers and
d For which can you make the following statement hold?
: cons nil nil; while : nil
Explain your answer.
e Write a legal WHILEprogram that translates into the following programsasdata
notation:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
