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.
Questions
Which of the following is a model of computation that is used to define computability?
- Turing Machine
- Finite State Machine
- Pushdown Automaton
- Cellular Automaton
What is the Halting Problem?
- Determining whether a given Turing Machine will halt on a given input
- Determining the maximum number of steps a Turing Machine will take on a given input
- Determining the minimum number of steps a Turing Machine will take on a given input
- Determining the output of a Turing Machine on a given input
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?
- P
- NP
- NP-Complete
- NP-Hard
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?
- P
- NP
- NP-Complete
- NP-Hard
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?
- P
- NP
- NP-Complete
- NP-Hard
Which of the following is a complexity class that contains all decision problems that are both NP-Complete and NP-Hard?
- P
- NP
- NP-Complete
- NP-Hard
Which of the following problems is NP-Complete?
- Traveling Salesman Problem
- Knapsack Problem
- Sorting
- Primality Testing
Which of the following problems is NP-Hard?
- Subgraph Isomorphism
- Hamiltonian Cycle
- Longest Common Subsequence
- Matrix Multiplication
Which of the following problems is in P?
- Sorting
- Primality Testing
- Integer Factorization
- Graph Coloring
Which of the following problems is not known to be in P or NP?
- Integer Factorization
- Graph Isomorphism
- Traveling Salesman Problem
- Primality Testing
What is the relationship between P and NP?
- P = NP
- P ⊆ NP
- NP ⊆ P
- P and NP are disjoint
Which of the following is a famous open problem in computer science?
- P = NP?
- Goldbach Conjecture
- Riemann Hypothesis
- Fermat's Last Theorem
What is the time complexity of the best known algorithm for Integer Factorization?
- O(n log n)
- O(n^2)
- O(2^n)
- O(n!)
What is the time complexity of the best known algorithm for the Traveling Salesman Problem?
- O(n log n)
- O(n^2)
- O(2^n)
- O(n!)
Which of the following is a famous result in complexity theory?
- Cook-Levin Theorem
- PCP Theorem
- NP-Completeness of the Traveling Salesman Problem
- All of the above