Logic and Computation: Computability and Complexity

This quiz covers the fundamental concepts of computability and complexity theory, exploring the limits of what can be computed and the efficiency of algorithms.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is a model of computation that is used to define computability?

  1. Turing Machine
  2. Finite State Machine
  3. Pushdown Automaton
  4. Cellular Automaton
Question 2 Multiple Choice (Single Answer)

What is the Halting Problem?

  1. Determining whether a given Turing Machine will halt on a given input
  2. Determining the maximum number of steps a Turing Machine will take on a given input
  3. Determining the minimum number of steps a Turing Machine will take on a given input
  4. Determining the output of a Turing Machine on a given input
Question 3 Multiple Choice (Single Answer)

Which of the following is a complexity class that contains all decision problems that can be solved by a deterministic Turing Machine in polynomial time?

  1. P
  2. NP
  3. NP-Complete
  4. NP-Hard
Question 4 Multiple Choice (Single Answer)

Which of the following is a complexity class that contains all decision problems that can be solved by a non-deterministic Turing Machine in polynomial time?

  1. P
  2. NP
  3. NP-Complete
  4. NP-Hard
Question 5 Multiple Choice (Single Answer)

Which of the following is a complexity class that contains all decision problems that are at least as hard as the hardest problem in NP?

  1. P
  2. NP
  3. NP-Complete
  4. NP-Hard
Question 6 Multiple Choice (Single Answer)

Which of the following is a complexity class that contains all decision problems that are both NP-Complete and NP-Hard?

  1. P
  2. NP
  3. NP-Complete
  4. NP-Hard
Question 7 Multiple Choice (Single Answer)

Which of the following problems is NP-Complete?

  1. Traveling Salesman Problem
  2. Knapsack Problem
  3. Sorting
  4. Primality Testing
Question 8 Multiple Choice (Single Answer)

Which of the following problems is NP-Hard?

  1. Subgraph Isomorphism
  2. Hamiltonian Cycle
  3. Longest Common Subsequence
  4. Matrix Multiplication
Question 9 Multiple Choice (Single Answer)

Which of the following problems is in P?

  1. Sorting
  2. Primality Testing
  3. Integer Factorization
  4. Graph Coloring
Question 10 Multiple Choice (Single Answer)

Which of the following problems is not known to be in P or NP?

  1. Integer Factorization
  2. Graph Isomorphism
  3. Traveling Salesman Problem
  4. Primality Testing
Question 11 Multiple Choice (Single Answer)

What is the relationship between P and NP?

  1. P = NP
  2. P ⊆ NP
  3. NP ⊆ P
  4. P and NP are disjoint
Question 12 Multiple Choice (Single Answer)

Which of the following is a famous open problem in computer science?

  1. P = NP?
  2. Goldbach Conjecture
  3. Riemann Hypothesis
  4. Fermat's Last Theorem
Question 13 Multiple Choice (Single Answer)

What is the time complexity of the best known algorithm for Integer Factorization?

  1. O(n log n)
  2. O(n^2)
  3. O(2^n)
  4. O(n!)
Question 14 Multiple Choice (Single Answer)

What is the time complexity of the best known algorithm for the Traveling Salesman Problem?

  1. O(n log n)
  2. O(n^2)
  3. O(2^n)
  4. O(n!)
Question 15 Multiple Choice (Single Answer)

Which of the following is a famous result in complexity theory?

  1. Cook-Levin Theorem
  2. PCP Theorem
  3. NP-Completeness of the Traveling Salesman Problem
  4. All of the above