Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started