Computational Complexity Theory: Intro to P and NP

computational complexity theory n.w
1 / 105
Embed
Share

Dive into computational complexity theory exploring topics like Turing machines, Class P and NP, decision problems, search problems, counting problems, and optimization problems, all aimed at classifying computational problems based on required resources. Discover the essence of algorithms and their relationship with formal computation models.

  • Complexity Theory
  • Algorithms
  • P vs NP
  • Turing Machines
  • Computational Problems

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Computational Complexity Theory Lecture 1: Intro; Turing machines; Class P and NP Indian Institute of Science

  2. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them.

  3. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Computational problems come in various flavors:

  4. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Computational problems come in various flavors: a. Decision problem Example: Is vertex t reachable from vertex s in graph G? ( output is YES/NO)

  5. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Computational problems come in various flavors: a. Decision problem b. Search problem Example: Find a satisfying assignment of a boolean formula, if it exists.

  6. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Computational problems come in various flavors: a. Decision problem b. Search problem c. Counting problem Example: Find the number of cycles in a graph

  7. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Computational problems come in various flavors: a. Decision problem b. Search problem c. Counting problem d. Optimization problem Example: Find a minimum size vertex cover in a graph

  8. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Algorithms are methods of solving problems; they are studied using formal models of computation, like Turing machines.

  9. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Algorithms are methods of solving problems; they are studied using formal models of computation, like Turing machines. a memory with head (like a RAM)

  10. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Algorithms are methods of solving problems; they are studied using formal models of computation, like Turing machines. a memory with head (like a RAM) a finite control (like a processor)

  11. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Algorithms are methods of solving problems; they are studied using formal models of computation, like Turing machines. ( more later)

  12. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Computational resources (required by models of computation) can be: Time (bit operations) Space (memory cells)

  13. About the course Computational complexity attempts to classify computational problems based on the amount of resources required by algorithms to solve them. Computational resources (required by models of computation) can be: Time (bit operations) Space (memory cells) Random bits Communication (bit exchanges)

  14. Some topics in complexity theory Average-case complexity Approximation algorithms Complexity theory Secrecy & security Role of Randomness Structural complexity (P, NP, etc.)

  15. Some topics in complexity theory Average-case complexity Approximation algorithms Complexity theory Secrecy & security Role of Randomness Structural complexity (P, NP, etc.)

  16. Structural Complexity Classes P, NP, NP-completeness.

  17. Structural Complexity Classes P, NP, NP-completeness. How hard is it to check satisfiability of a boolean formula that has exactly one or no satisfying assignment?

  18. Structural Complexity Classes P, NP, NP-completeness. Space bounded computation.

  19. Structural Complexity Classes P, NP, NP-completeness. Space bounded computation. How much space is required to check s-t connectivity?

  20. Structural Complexity Classes P, NP, NP-completeness. Space bounded computation. Counting complexity.

  21. Structural Complexity Classes P, NP, NP-completeness. Space bounded computation. Counting complexity. How hard is it to count the number of perfect matchings in a graph?

  22. Structural Complexity Classes P, NP, NP-completeness. Space bounded computation. Counting complexity. Polynomial Hierarchy. . . . How easy is it to check that largest independent set in G has size exactly k ? NP co-NP P

  23. Structural Complexity Classes P, NP, NP-completeness. Space bounded computation. Counting complexity. Polynomial Hierarchy. How hard is it to find a minimum size circuit computing the same boolean function as a given boolean circuit?

  24. Structural Complexity Classes P, NP, NP-completeness. Space bounded computation. Counting complexity. Polynomial Hierarchy. Boolean circuits and circuit lower bounds.

  25. Structural Complexity Classes P, NP, NP-completeness. Space bounded computation. Counting complexity. Polynomial Hierarchy. Boolean circuits and circuit lower bounds. A central topic in classical complecity theory; Proving P NP boils down to showing circuit lower bounds.

  26. Role of Randomness in Computation Probabilistic complexity classes.

  27. Role of Randomness in Computation Probabilistic complexity classes. Does randomization help in improving efficiency? Quicksort has O(n log n) expected time but O(n^2) worst case time. Can SAT be solved in polynomial time using randomness?

  28. Role of Randomness in Computation Probabilistic complexity classes. Probabilistically Checkable Proofs (PCPs).

  29. Role of Randomness in Computation Probabilistic complexity classes. Probabilistically Checkable Proofs (PCPs). Unconditional hardness of approximation results

  30. Role of Randomness in Computation Probabilistic complexity classes. Probabilistically Checkable Proofs (PCPs). A glimpse of randomness extractors and pseudorandom generators (if time permits).

  31. Role of Randomness in Computation Probabilistic complexity classes. Probabilistically Checkable Proofs (PCPs). A glimpse of randomness extractors and pseudorandom generators (if time permits). Can every polynomial-time randomized algorithm be derandomized to a deterministic polynomial-time algorithm?

  32. Average-case Complexity Distributional problems.

  33. Average-case Complexity Distributional problems. How hard is it to solve the clique problem on inputs chosen from a real-life distribution?

  34. Average-case Complexity Distributional problems. Hardness amplification: From weak to strong hardness.

  35. Average-case Complexity Distributional problems. Hardness amplification: From weak to strong hardness. In cryptographic applications, we need hard functions for secure encryptions.

  36. Basic Course Info Course title: Computational Complexity Theory Credits: 3:1 Instructor: Chandan Saha TA: Abhishek Shetty and Sanal Prasad Class timings : Tuesday, Thursday: 11-12:30. Venue: CSA lecture hall 117. Primary reference: Computational Complexity A Modern Approach by Sanjeev Arora and Boaz Barak.

  37. Basic Course Info Prerequisites : Basic familiarity with algorithms; Some mathematical maturity will be helpful. Grading policy : Assignments - 40% Mid-term - 30% End-term - 30% Course homepage: drona.csa.iisc.ernet.in/~chandan/courses/complexity16/home.html

  38. Lets begin

  39. Turing Machines An algorithm is a set of instructions or rules. To understand the performance of an algorithm we need a model of computation. Turing machine is one such natural model.

  40. Turing Machines An algorithm is a set of instructions or rules. To understand the performance of an algorithm we need a model of computation. Turing machine is one such natural model. A TM consists of: Memory tape(s) A finite set of rules

  41. Turing Machines An algorithm is a set of instructions or rules. To understand the performance of an algorithm we need a model of computation. Turing machine is one such natural model. A TM consists of: Memory tape(s) A finite set of rules Turing machines A mathematical way to describe algorithms.

  42. Turing Machines An algorithm is a set of instructions or rules. To understand the performance of an algorithm we need a model of computation. Turing machine is one such natural model. A TM consists of: Memory tape(s) A finite set of rules (e.g. of a physical realization a TM is a simple adder)

  43. Turing Machines Definition. A k-tape Turing Machine M is described by a tuple ( , Q, ) such that

  44. Turing Machines Definition. A k-tape Turing Machine M is described by a tuple ( , Q, ) such that M has k memory tapes (input/work/output tapes) with heads; is a finite set of alphabets. (Every memory cell contains an element of )

  45. Turing Machines Definition. A k-tape Turing Machine M is described by a tuple ( , Q, ) such that M has k memory tapes (input/work/output tapes) with heads; is a finite set of alphabets. (Every memory cell contains an element of ) has a blank symbol

  46. Turing Machines Definition. A k-tape Turing Machine M is described by a tuple ( , Q, ) such that M has k memory tapes (input/work/output tapes) with heads; is a finite set of alphabets. (Every memory cell contains an element of ) Q is a finite set of states. (special states: qstart , qhalt) is a function from Q x to Q x x {L,S,R} k k k

  47. Turing Machines Definition. A k-tape Turing Machine M is described by a tuple ( , Q, ) such that M has k memory tapes (input/work/output tapes) with heads; is a finite set of alphabets. (Every memory cell contains an element of ) Q is a finite set of states. (special states: qstart , qhalt) is a function from Q x to Q x x {L,S,R} k k k known as transition function; it captures the dynamics of M

  48. Turing Machines: Computation Start configuration. All tapes other than the input tape contain blank symbols. The input tape contains the input string. All the head positions are at the start of the tapes. The machine is in the start state qstart .

  49. Turing Machines: Computation Start configuration. All tapes other than the input tape contain blank symbols. The input tape contains the input string. All the head positions are at the start of the tapes. The machine is in the start state qstart . Computation. A step of computation is performed by applying . Halting. Once the machine enters qhalt it stops computation.

  50. Turing Machines: Running time Let f: {0,1}* {0,1}* and T: N Turing machine. N and M be a Definition. We say M computes f if on every x in {0,1}*, M halts with f(x) on its output tape beginning from the start configuration with x on its input tape.

Related


More Related Content