Exam 12: Theory of Computation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

What was Alan Turing's purpose when developing the concept of the Turing machine?

Free
(Essay)
4.8/5
(40)
Correct Answer:
Verified

The purpose was to design a system that could compute any computable function.

Place an X in the blank before each of the following statements that contradict the Church-Turing thesis.Leave the other blanks blank. _____ All functions are computable. _____ Some functions that are not computable by Turing machines are computable by other means. _____ All computable functions are Turing-computable. _____ Some problems cannot be solved by any Turing machine.

Free
(Short Answer)
4.7/5
(42)
Correct Answer:
Verified

First and second

If we were using RSA encryption with the private keys n = 133 and d = 5,what would be the decrypted version of the encrypted message whose bit pattern is 11? __________

Free
(Short Answer)
4.8/5
(33)
Correct Answer:
Verified

1101110 (which is binary for 110)

Place a T in the blank before each of the following statements that are true.Leave the other blanks blank. _____ All Bare Bones programs that do not contain a while statement are self-terminating. _____ All Bare Bones programs that contain a while statement are not self-terminating. _____ Some Bare Bones programs are both self-terminating and not self-terminating. _____ No Bare Bones program is both self-terminating and not self-terminating.

(Short Answer)
4.8/5
(34)

Suppose the variable X in the following Bare Bones program has the value 3 when execution begins. clear Y decr X while X not 0: decr X incr Y A.What will be the value of X when the program terminates? B.What will be the value of Y when the program terminates?

(Short Answer)
4.8/5
(35)

Write a sequence of statements in the Bare Bones language that is equivalent to the statement if not 0 : 1 else: 2 where S1 and S2 are sequences of Bare Bones statements.

(Essay)
4.8/5
(34)

Which of the following systems does not process the same computational capabilities as the others?

(Multiple Choice)
4.9/5
(35)

If a solution with time complexity Θ\Theta (n²)is known to exist,then the problem is known to be in which of the following?

(Multiple Choice)
4.7/5
(34)

Which of the following sets of values constitutes a valid RSA public key encryption system?

(Multiple Choice)
4.8/5
(25)

Identify a problem that does not have an algorithmic solution.

(Short Answer)
4.9/5
(33)

Give an example of a problem in NP that may not be in P.

(Short Answer)
4.7/5
(41)

Suppose the variables X and Y in the following Bare Bones program have the values 3 and 2,respectively,when execution begins.What will be the value of Z when the program terminates? _________ clear while X not 0: clear W while Y not 0: decr Y incr W while W not 0: incr incr Y decr W decr incr

(Short Answer)
4.7/5
(36)

The class of problems known as NP is so named because it is composed of which of the following?

(Multiple Choice)
4.8/5
(40)

Why is a public key encryption system based on the RSA algorithm secure?

(Essay)
4.9/5
(35)

What is the time complexity of the problem of searching for a particular entry in a list?

(Multiple Choice)
4.8/5
(28)

Place a T in the blank before each of the following statements that are true.Leave the other blanks blank. _____ P is contained in NP. _____ All solvable problems are in P. _____ The traveling salesman problem is in NP. _____ The traveling salesman problem is not solvable.

(Short Answer)
4.8/5
(37)

Suppose the variables X and Y in the following Bare Bones program have the values 3 and 2,respectively,when execution begins.What will be the value of Z when the program terminates? _________ clear while not 0 : decr incr while not 0: decr incr

(Short Answer)
4.8/5
(33)

Place an F in the blank before each of the following statements that are false.Leave the other blanks blank. _____ No one has discovered a problem that cannot be solved by a Turing machine. _____ The Bare Bones programming language would not be a universal language if the clear statement were removed. _____ The only problem that cannot be solved by a Turing machine is the halting problem. _____ Some problems cannot be solved by any Turing machine.

(Short Answer)
4.9/5
(29)

If we were using RSA encryption with the public keys n = 91 and e = 5,what would be the encrypted version of the message whose bit pattern is 11? __________

(Short Answer)
4.9/5
(38)

Write a program in Bare Bones that terminates with the variable Z equal to 1 if the variables X and Y start with non-zero values and with Z equal to 0 otherwise.

(Essay)
4.9/5
(27)
Showing 1 - 20 of 51
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)