non uniform computation
play

Non-Uniform Computation Lecture 10 Non-Uniform Computational - PowerPoint PPT Presentation

Non-Uniform Computation Lecture 10 Non-Uniform Computational Models: Circuits 1 Non-Uniform Computation 2 Non-Uniform Computation Uniform: Same program for all (the infinitely many) inputs 2 Non-Uniform Computation Uniform: Same program


  1. Boolean Circuits 0 1 Directed acyclic graph Nodes: AND, OR, NOT, CONST gates, inputs, output(s) Edges: Boolean valued wires AND/OR fan-ins can be bounded (say two) or unbounded Acyclic: output well-defined Note: no memory gates Size of circuit: number of wires 10

  2. Boolean Circuits q 0 x x 11

  3. Boolean Circuits q 0 x x Recall: a TM’ s execution on inputs of fixed length can be captured by a Boolean circuit 11

  4. Boolean Circuits q 0 x x Recall: a TM’ s execution on inputs of fixed length can be captured by a Boolean circuit From proof of Cook’ s theorem 11

  5. Boolean Circuits q 0 x x Recall: a TM’ s execution on inputs of fixed length can be captured by a Boolean circuit From proof of Cook’ s theorem Size of circuit polynomially related to running time of TM 11

  6. Boolean Circuits q 0 x x Recall: a TM’ s execution on inputs of fixed length can be captured by a Boolean circuit From proof of Cook’ s theorem Size of circuit polynomially related to running time of TM If poly time TM, then poly sized circuit 11

  7. Boolean Circuits A n ,q 0 x (x,A n ) 12

  8. Boolean Circuits A n ,q 0 Non-uniformity: circuit family {C n } x (x,A n ) 12

  9. Boolean Circuits A n ,q 0 Non-uniformity: circuit family {C n } x (x,A n ) Given non-uniform computation (M,{A n }) can define equivalent {C n } 12

  10. Boolean Circuits A n ,q 0 Non-uniformity: circuit family {C n } x (x,A n ) Given non-uniform computation (M,{A n }) can define equivalent {C n } Advice A n is hard-wired into circuit C n 12

  11. Boolean Circuits A n ,q 0 Non-uniformity: circuit family {C n } x (x,A n ) Given non-uniform computation (M,{A n }) can define equivalent {C n } Advice A n is hard-wired into circuit C n Doesn’t affect circuit size 12

  12. Boolean Circuits A n ,q 0 Non-uniformity: circuit family {C n } x (x,A n ) Given non-uniform computation (M,{A n }) can define equivalent {C n } Advice A n is hard-wired into circuit C n Doesn’t affect circuit size Conversely, given {C n }, can use description of C n as advice A n for a “universal” TM 12

  13. Boolean Circuits A n ,q 0 Non-uniformity: circuit family {C n } x (x,A n ) Given non-uniform computation (M,{A n }) can define equivalent {C n } Advice A n is hard-wired into circuit C n Doesn’t affect circuit size Conversely, given {C n }, can use description of C n as advice A n for a “universal” TM |A n | comparable to size of circuit C n 12

  14. SIZE(T) 13

  15. SIZE(T) SIZE(T): languages solved by circuit families of size T(n) 13

  16. SIZE(T) SIZE(T): languages solved by circuit families of size T(n) P/poly = SIZE(poly) 13

  17. SIZE(T) SIZE(T): languages solved by circuit families of size T(n) P/poly = SIZE(poly) SIZE(poly) ⊆ P/poly: Size T circuit can be described in O(T log T) bits (advice). Universal TM can evaluate this circuit in poly time 13

  18. SIZE(T) SIZE(T): languages solved by circuit families of size T(n) P/poly = SIZE(poly) SIZE(poly) ⊆ P/poly: Size T circuit can be described in O(T log T) bits (advice). Universal TM can evaluate this circuit in poly time P/poly ⊆ SIZE(poly): Transformation from Cook’ s theorem, with advice string hardwired into circuit 13

  19. SIZE bounds 14

  20. SIZE bounds All languages (decidable or not) are in SIZE(T) for T=O(n2 n ) 14

  21. SIZE bounds All languages (decidable or not) are in SIZE(T) for T=O(n2 n ) Circuit encodes truth-table 14

  22. SIZE bounds All languages (decidable or not) are in SIZE(T) for T=O(n2 n ) Circuit encodes truth-table Most languages need circuits of size Ω (2 n /n) 14

  23. SIZE bounds All languages (decidable or not) are in SIZE(T) for T=O(n2 n ) Circuit encodes truth-table Most languages need circuits of size Ω (2 n /n) Number of circuits of size T is at most T 2T 14

  24. SIZE bounds All languages (decidable or not) are in SIZE(T) for T=O(n2 n ) Circuit encodes truth-table Most languages need circuits of size Ω (2 n /n) Number of circuits of size T is at most T 2T If T = 2 n /4n, say, T 2T < 2 (2^n)/2 14

  25. SIZE bounds All languages (decidable or not) are in SIZE(T) for T=O(n2 n ) Circuit encodes truth-table Most languages need circuits of size Ω (2 n /n) Number of circuits of size T is at most T 2T If T = 2 n /4n, say, T 2T < 2 (2^n)/2 Number of languages = 2 2^n 14

  26. SIZE hierarchy 15

  27. SIZE hierarchy SIZE(T’) ⊊ SIZE(T) if T= Ω (t2 t ) and T’=O(2 t /t) 15

  28. SIZE hierarchy SIZE(T’) ⊊ SIZE(T) if T= Ω (t2 t ) and T’=O(2 t /t) Consider functions on t bits (ignoring n-t bits) 15

  29. SIZE hierarchy SIZE(T’) ⊊ SIZE(T) if T= Ω (t2 t ) and T’=O(2 t /t) Consider functions on t bits (ignoring n-t bits) All of them in SIZE(T), most not in SIZE(T’) 15

  30. Uniform Circuits 16

  31. Uniform Circuits Circuits are interesting for their structure too (not just size)! 16

  32. Uniform Circuits Circuits are interesting for their structure too (not just size)! Uniform circuit family: constructed by a TM 16

  33. Uniform Circuits Circuits are interesting for their structure too (not just size)! Uniform circuit family: constructed by a TM Undecidable languages are undecidable for these circuits families 16

  34. Uniform Circuits Circuits are interesting for their structure too (not just size)! Uniform circuit family: constructed by a TM Undecidable languages are undecidable for these circuits families Can relate their complexity classes to classes defined using TMs 16

  35. Uniform Circuits Circuits are interesting for their structure too (not just size)! Uniform circuit family: constructed by a TM Undecidable languages are undecidable for these circuits families Can relate their complexity classes to classes defined using TMs Logspace-uniform: 16

  36. Uniform Circuits Circuits are interesting for their structure too (not just size)! Uniform circuit family: constructed by a TM Undecidable languages are undecidable for these circuits families Can relate their complexity classes to classes defined using TMs Logspace-uniform: An O(log n) space TM can compute the circuit 16

  37. NC and AC 17

  38. NC and AC NC and AC: languages decided by poly size and poly-log depth logspace-uniform circuits 17

  39. NC and AC NC and AC: languages decided by poly size and poly-log depth logspace-uniform circuits NC with bounded fan-in and AC with unbounded fan-in 17

  40. NC and AC NC and AC: languages decided by poly size and poly-log depth logspace-uniform circuits NC with bounded fan-in and AC with unbounded fan-in NC i : decided by bounded fan-in logspace-uniform circuits of poly size and depth O(log i n) 17

  41. NC and AC NC and AC: languages decided by poly size and poly-log depth logspace-uniform circuits NC with bounded fan-in and AC with unbounded fan-in NC i : decided by bounded fan-in logspace-uniform circuits of poly size and depth O(log i n) NC = ∪ i>0 NC i 17

  42. NC and AC NC and AC: languages decided by poly size and poly-log depth logspace-uniform circuits NC with bounded fan-in and AC with unbounded fan-in NC i : decided by bounded fan-in logspace-uniform circuits of poly size and depth O(log i n) NC = ∪ i>0 NC i Similarly AC i and AC = ∪ i>0 AC i 17

  43. NC i and AC i 18

  44. NC i and AC i NC i ⊆ AC i ⊆ NC i+1 18

  45. NC i and AC i NC i ⊆ AC i ⊆ NC i+1 Clearly NC i ⊆ AC i 18

  46. NC i and AC i NC i ⊆ AC i ⊆ NC i+1 Clearly NC i ⊆ AC i AC i ⊆ NC i+1 because polynomial fan-in can be reduced to constant fan-in by using a log depth tree 18

  47. NC i and AC i NC i ⊆ AC i ⊆ NC i+1 Clearly NC i ⊆ AC i AC i ⊆ NC i+1 because polynomial fan-in can be reduced to constant fan-in by using a log depth tree So NC = AC 18

  48. NC and P 19

  49. NC and P NC ⊆ P 19

Recommend


More recommend