Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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,
i.e. 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 234?
ii. Given the list of all integer numbers between 10 and 1,000,000, does it
contain more than 999 prime numbers?
(b) Which of the following notion(s) 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 WHILE-statement list S(written in core WHILE without
extensions) such that:
S|--{x:ulcornernurcorner,Y:ulcornermurcorner}{x:ulcornern+2murcorner,Y:ulcorner0urcorner}
for all natural numbers n and m.
(d) For which can you make the following statement hold?
x:= cons nil nil; while x{}|--{x: nil }
Explain your answer.
(e) Write a legal WHILE-program that translates into the following programs-as-data
notation:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is the use of bootstrap program?

Answered: 1 week ago

Question

What is a process and process table?

Answered: 1 week ago

Question

What is Industrial Economics and Theory of Firm?

Answered: 1 week ago