Exam 12: Theory of Computation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Is the following Bare Bones program self-terminating? Explain your answer. copy to decr while not 0: decr decr while not 0:

(Essay)
4.8/5
(37)

If the prime numbers underlying an RSA encryption system are small,the system is not secure.For example,suppose you were told that the public keys of a system were n = 15 and e = 13. A.What are the two prime numbers on which the system is based? _______ ________ B.What is the value of the decryption key d?

(Short Answer)
4.8/5
(35)

Which of the following statements is true?

(Multiple Choice)
5.0/5
(37)

Place an X in the blank before each of the following statements that guarantees that a problem is in P. _____ The problem is in O(n²). _____ The problem is in O(2?). _____ The problem is in O(log? n). _____ The problem is in O(n³).

(Short Answer)
4.8/5
(32)

Which of the following Bare Bones programs is self-terminating?

(Multiple Choice)
4.9/5
(29)

What is the time complexity of the problem of sorting a list?

(Multiple Choice)
4.8/5
(37)

Which of the following is the most precise classification of a problem X?

(Multiple Choice)
4.9/5
(29)

State the Church-Turing thesis.

(Essay)
4.7/5
(36)

What is a universal programming language?

(Essay)
4.9/5
(38)

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

(Multiple Choice)
4.8/5
(30)

Which of the following best describes what the following Bare Bones program does? copy to clear incr while not 0 : clear decr

(Multiple Choice)
4.8/5
(34)

Suppose a problem in Θ\Theta (n³)has been solved in 1 second.How long should you expect the same machine to require to solve a new instance of the problem with input that is twice the size as before?

(Short Answer)
4.8/5
(27)

If an RSA public key encryption system were based on the primes p = 3 and q = 7,which of the following pairs of values would be suitable for the encryption and decryption keys e and d?

(Multiple Choice)
4.8/5
(35)

What action is performed by the Turing machine described below? Current Current Value Direction New START * * left X X 1 1 left X 0 * right

(Multiple Choice)
4.9/5
(29)

An unsolvable problem is a problem for which

(Multiple Choice)
4.7/5
(32)

Turing machines represent

(Multiple Choice)
4.9/5
(33)

Explain the distinction between time complexity and space complexity.

(Essay)
5.0/5
(29)

Give an example of a universal programming language.

(Short Answer)
4.8/5
(26)

Write a program in Bare Bones that will add one to the variable X if X is not 0 and leave X unchanged otherwise.

(Essay)
4.8/5
(36)

List the letters associated with the following problems in the order of increasing complexity of the problems. 15.List the letters associated with the following problems in the order of increasing complexity of the problems. A.Sorting a list B.The halting problem C.Searching through a list for a particular entry

(Short Answer)
4.9/5
(34)
Showing 21 - 40 of 51
close modal

Filters

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