Complexity
Theory Spring 2015
|
email:
charles.e.hughes@knights.ucf.edu
Structure: TR 1330-1445
(1:30PM-2:45PM); ENGR1-286;
28 class periods, each 75 minutes long.
Go To Week 1, 2, 3, 4,
5, 6, 7,
8, 9, 10,
11, 12, 13,
14, 15, 16
Instructor: Charles Hughes; Harris Engineering Center 247C;
823-2762
Office Hours: TR 3:15PM-4:30PM
Office Hours: Tentatively MW 3:15PM-4:30PM
Required Reading: Notes (PowerPoint Version)
Recommended Reading:
- Cooper, Computability Theory 2nd Ed., Chapman-Hall/CRC Mathematics Series, 2003.
- Garey&Johnson, Computers
and Intractability: A Guide to the Theory of NP-Completeness, W.
H. Freeman & Co., 1979.
- Davis, Sigal&Weyuker, Computability,
Complexity and Languages 2nd Ed., Acad. Press (Morgan Kaufmann),
1994.
- Papadimitriou & Lewis, Elements
of the Theory of Computation, Prentice-Hall, 1997.
- Hopcroft, Motwani&Ullman, Intro to Automata Theory, Languages and Computation 3rd Ed.,
Prentice-Hall, 2006.
- Oded Goldreich, Computational
Complexity: A Conceptual Approach, Cambridge University Press,
2008.
Draft available at
http://www.wisdom.weizmann.ac.il/~odedg/cc-drafts.html
- Arora&Barak, Computational
Complexity: A Modern Approach, Cambridge University Press, 2009.
Draft available at http://www.cs.princeton.edu/theory/complexity/
- Oded Goldreich, P, NP, and
NP-Completeness: The Basics of Complexity Theory, Cambridge
University Press, 2010.
Draft available at
http://www.wisdom.weizmann.ac.il/~odedg/bc-drafts.html
- Sipser, Introduction to the
Theory of Computation 3rd Ed., Cengage Learning, 2013.
Web Pages:
Base URL: http://www.cs.ucf.edu/courses/cot6410/Spring2015
Notes
URL: http://www.cs.ucf.edu/courses/cot6410/Spring2015/Notes/COT6410NotesSpring2015.pdf
http://www.cs.ucf.edu/courses/cot6410/Spring2015/Notes/COT6410NotesSpring2015.pptx
Assignments: Around 6 to 10; Paper + Presentation
Exams: midterm and a final.
Exam Dates (Tentative): Exam#1 – Tuesday, March 3; Spring Break – March 9-14; Withdraw Deadline – Tuesday,
March 24;
Final – Tues., May 5, 1:00PM–3:50PM
Evaluation (Tentative):
- Mid Term – 125 points; Final Exam – 175 points (balance between
weights will be adjusted in your favor)
- Assignments – 100 points; Paper and Presentation – 75 points
- Extra -- 25 points used to increase weight of exams or
assignments, always to your benefit
- Total Available: 500
- Grading will be A >= 90%, B+ >= 85%, B >= 80%, C+
>= 75%, C >= 70%, D >= 50%, F < 50%; minus grades might be
used
.
Weeks#1: (1/13, 1/15) -- Notes pp. 2-65; Syllabus;
- Ground rules
- Decision problems
- Solving vs checking
- Procedures vs algorithms
- Introduction to theory of computation
- Terminology, goals and some historical perspective
- Basic notions of computability and complexity
- Existence of unsolvable problems (counting and
diagonalization)
- Solved, solvable (decidable, recursive), unsolved, unsolvable, re, non-re
- Hilbert's Tenth
- Undecidable problems made a bit
more concrete
- Lots about problems and their complexity
- Halting Problem (HALT) is re, not
decidable
- Set of algorithms (TOT) is non-re
- Halting Problem seen as fun
Assignment #1
Review of some
closure properties of formal languages
Word Version
Due: 2/5 (Key)
Week#2: (1/20,
1/22) -- Notes
pp. 66-107
- Some consequences of non-re nature of algorithms
- Models of computation
- Turing machines
- Register machines
- Factor replacement systems (FRS)
- Systems related to FRS (Petri Nets, Vector Addition,
Abelian Semi-Groups)
- RM simulated by
Ordered FRS
- Primitive Recursive Functions (prf)
- Initial functions
- Closure under composition and recursion
Assignment #2
Closure
properties of recursive, re and non-re sets
Word Version
Due: 2/3 (Key)
Week#3: (1/27, 1/29) -- Notes pp. 105-169
- Primitive Recursive Function in detail
- Addition and multiplication examples
- Sample functions and predicates
- Closure under cases
- Bounded minimization
- Arithmetic fuctions that use bounded search
- Pairing functions
- Limitations of primitive
recursive
- mu-recursion and the partial recursive functions
- Notions of instantaneous descriptions
- Encodings
- Equivalence of models
- TMs to Register Machines
- RM to Factor Replacement Systems
- Factor Replacement to Recursive Functions
- Gory details on FRS to REC
- Universal machines
- Recursive Functions to TMs
- Consequences of equivalence
Week#4: (2/3, 2/5) -- Notes pp.
170-217
- Primitive recursive functions SNAP, TERM, STP and VALUE
- Review Undecidability (Halting Problem, shown by
diagonalization)
- RE sets and semidecidability
- The set of all re sets W0, W1, W2, ...
- Enumeration Theorem
- The set K = { n | n is in the
n-th re set } = { n | n is in Wn } is re, non-recursive
- The set K0 = HALT = { <n,x> | x is in the n-th re set }
- Alternative
characterizations of re sets
- Parameter Theorem (aka Sm,n Thearem)
- Quantification and re sets
- Quantification and non-re sets
- Diagonalization revisited (set of algorithms is non-re and K0 (Lu) = HALT is non-rec)
Assignment #3 (not graded)
Closure
of primitive recursive functions under halfway and halfway mutual induction
Word Version
Week#5: (2/10, 2/12) -- Notes pp. 218-232
- Reduction
- Classic sets Ko (Lu), NON-EMPTY (Lne), EMPTY
(Le)
- Reduction from Ko that shows undecidability of K, HasZero, IsNonEmpty, HasIndentity, TOTAL, IsZero, IsEmpty, IsIdentity
- Equivalence of certain re sets (K, HasZero, IsNonEmpty, HasIndentity) to Ko
- Equivalence of centain non-re sets (IsZero, IsEmpty, IsIdentity) to TOTAL
- Reducibility and degrees (many-one, one-one, Turing)
- Complete re set (K and K0 as examples)
- Note: To be re-complete a set must be re
- Hierarchy or RE equivalence class (m-1 and 1-1 degrees)
- Rice's Theorem
- "Picture" proofs for Rice's Theorem
- Constant Time and Mortal Machines
- END OF MATERIAL FOR Midterm
Assignment #4
Quantification
approximations of Complexity
Word Version
Due: 2/24 (Key)
Week#6: (2/17, 2/19) -- Notes pp. 233-255
- Introduction to rewriting systems (Thue, Post)
- Semi-Thue systems
- Word problems
- Simulating Turing Machine by Semi-Thue System
- Simulating by Thue Systems
- Post Canonical Forms
- Post Correspondence Problem
- Grammars and re sets
- Unsolvable problems related to context-free
grammars/languages
- Ambiguity of
CFGs
- Non-Emptiness of CFL
Intersections
Assignment #5
Quantification, Reduction and Rice's Theorem
Word Version
Due: 2/26 (Key)
Week#7: (2/24, 2/26) -- Notes pp.
256-282
- Sample Midterm (Word Version)
- Review and go over sample questions
- Sample Midterm Key (Word Version)
- Key for Samples from Notes (PowerPoint Version)
- Context-Sensitive Grammars and
Unsolvability Results
- Valid (CSL) and Invalid Traces
(CFL)
- Intersection and
Quotients of CFLs
- Details on Valid (CSL) and
Invalid Traces (CFL)
- Intersection of CFLs revisited
- Quotients of CFLs revisited
- Type 0 grammars and Traces
- L = S* for L a Regular or CFL
- L=L^2 for L a CFL
Week#8: (3/2, 3/3, 3/5) -- Notes pp.
283-320; 321-327 (Review of Order Analysis); 590-607 (optional)
- HELP SESSION on Monday, March 2, from 10:00 to 11:20 in ENGR1-383
- More practice problems (Spring 2014 midterm and key)
- Midterm (Tuesday)
- Summary of Grammar Results
- Finite Convergence
- Revisit Set Real-Time (Constant-Time)
- Real-Time and Mortal Machines
- Finite Power Problem for CFLs
- L = S* for L a Regular or CFL
- Propositional Calculus
- Axiomatizable Fragments
- Unsolvability for Membership in Fragments of Diadic Partial Implicational Calculus
- Fast Review of Order Analysis (not in class but on your own)
Week#9: SPRING BREAK
Week#10: (3/17, 3/19) -- Notes pp. 304-320 (Briefly Again); 328-438
- Review of Undecidability of Derivability Problem for Finitely Axiomatizable Fragments of Proposition Calculus
- Basics of Complexity Theory
- Decision vs Optimization
Problems (achieving a goal vs achieving min cost)
- Polynomial == Easy; Exponential
== Hard
- Polynomial reducibility
- Verifiers versus solvers
- P as solvable in deterministic
polynomial time
- NP as solvable in
non-deterministic polynomial time
- NP as verifiable in
deterministic polynomial time
- Concepts of NP-Complete and
NP-Hard
- Canonical NP-Complete problem:
SAT (Satisfiability)
- Some NP problems that do not
appear to be in P: SubsetSum, Hamiltonian Path, k-Clique
- Million dollar question: P = NP ?
- Construction that maps
every problem solvable in non-deterministic polynomial time on TM to SAT
- SAT is polynomial reducible to (<=P)
3SAT
- 3SAT as a second NP-Complete problem
- 3SAT <=P SubsetSum
- SubsetSum <=P Partition
- Partition
equivalence to SubsetSum
- Key to Midterm
Presentation Stage #1
Turn in a list of team members (2 preferred but 3 okay)
Turn in a citation to paper(s)
being proposed as basis for paper and Presentation
Paper being read
should have length equivalent to 8 or more single-spaced, two-column
journal pages
Must
be at least 12 pages if three members in group (two 6- to 8-page papers works as
well)
Your paper that
summarizes and highlights must be at least 6 pages, double-spaced,
single column
Must be at least 8 pages if three
members in group
Sample Topics
Due: 3/26
Assignment #6
Reductions from SAT
Week#11: (3/24 (Withdrawal
Deadline), 3/26) -- Notes pp. 439-501
- Note: 3/24 is the
Withdraw
Deadline
- Knapsack (relation to SubsetSum), Dynamic Programming Approach
- Bin packing (fixed capacity,
minimize number of bins)
- Pseudo polynomial-time solution for
Knapsack using dynamic programming with changed parameters, n*W versus
2^n
- Reduction techniques
- Reduction
of 3SAT to k-Vertex Cover
- 3-SAT to 3-Coloring
- Isomophism of
k-Coloring with k-Register Aloocation of live variables
- Scheduling problems introduced
- Scheduling on multiprocessor systems
- Scheduling problems (fixed number of
processors, minimize final finishing time)
- N processors, M tasks, no constraints
- Partition and scheduling problems
- Greedy heuristics
- 2 processor scheduling -- greedy first
fit, greedy best fit, sorted, optimalGreedy versus optimal
(N/(N+1))
- Scheduling anomalies, level
strategy for UET trees, level strategy for UET dags
- Precedences (lists, delays, preemption)
- Anomalies (reducing precedence,
increasing processors, reducing times)
- Unit Execution Time: Trees,
forest, anti forests
- UET: DAGs and m=2
Assignment #7
Scheduling Problems
Due: 4/7 (Key)
Week#12: (3/31, 4/2) -- Notes pp. 502-556
- Hamiltonian Path
- Travelling Salesman
- Integer Linear Programming
- Tiling the plane and Bounded Tiling
- Bounded PCP
- co-NP
- P = co-P ; P contained in intersection
of NP and co-NP
- NP-Hard
- QSAT as an example of NP-Hard,
possibly not NP
- NP-Hard problems are in general functional not necessarily decision problems
- NP-Complete are decision problems as they are in NP
Week#13: (4/7, 4/9) --
Notes pp. 557-589
- You must send me preferred day of presentation by 4/7 at 6:00PM.
- The days to choose from are 4/14, 4/16, 4/21, 4/23.
- You must send me an abstract of your presentation by 6:00 PM, two days prior to your scheduled day (one to two paragraphs)
- The abstract must include title and team member names
- It is designed so everyone is mentally prepared for your presentation
- All papers and final versions of presentation slides are due as pdf files by 11:59 on 5/1
- Your papers must include one or two questions you would ask of
your audience
- I would also like the files (word, power point, tex, etc.) used to create these in a zip or rar
- Clean-up (PSPACE, FP, FNP, TFNP, NP-Easy, NP-Equivalent)
- NP contained in PSPACE
- FP is functional equivalent to P; R(x,y) in FP if can provide value y for input x via deterministic polynomial time algorithm
- FNP is functional equivalent to NP; R(x,y) in FNP if can verify any pair (x,y) via deterministic polynomial time algorithm
- TFNP is the subset of FNP where a solution always exists, i.e., there is a y for each x such that R(x,y).
- Task of a TFNP algorithm is to find a y, given x, such that R(x,y)
- Unlike FNP, the search for a y is always successful
- FNP properly contains TFNP contains FP (we don't know if proper)
- Factoring is in TFNP, but is it in FP?
- If TFNP in FP then TFNP = FP
- P = (NP intersect Co-NP) is interesting analogue to intersection of RE and co-RE but may not hold here
- It appears that TFNP does not have any complete problems!!!
- The deal is that there is no known recursive enumeration of TFNP but there is of FNP
- This is similar to total versus partially recursive functions (analogies are everywhere)
- NP-Easy -- these are problems that are polynomial when using an NP oracle
- NP-Equivalent is the class of NP-Easy and NP-Hard problems
- In essence this is functional equivalent of NP-Complete but also of co-NP Complete
- NP-Equivalent uses a Turing machine polynomial time reduction so just uses rather than accepts answers from oracle
- More
NP-Complete poroblems (fun ones)
- Review based on Midterm Exam (Key to Midterm)
Week#14: (4/14,
4/16)
- Presentation Day 1 (2 presentations)
- 1:30-1:55
Sarfaraz Hussain, Salman Khokhar, Khurram Soomro
Ladicky, L'ubor; et al. (2014). Associative hierarchical random fields. IEEE Transactions on Pattern Analysis and Machine Intelligence 36(6): 1056-1077.
- 1:55-2:15
Navid Kardan, Ardalan Naseri
Cabessa, Jérémie; Siegelmann, Hava T. (2012). The computational power of interactive recurrent neural networks. Neural Comput. 24(4), 996-1019.
- 2:15-2:45
Final Exam Topics
Start Review of Complexity Material
- Presentation Day 2 (4 presentations)
- 1:30-1:50
Charly Collins, Rachel Phillips
Traversa, Fabio L.; Ramella, Chiara; Bonani, Fabrizio; Di
Ventra, Massimiliano (2014). Memcomputing NP-complete problems in polynomial time
using polynomial resources and collective states, Cornell University Library arXiv:1411.4798v2 [cs.ET]
- 1:50-2:10
Ramin Izadpanah, Rahmatizadeh Rouhollah
Doty, D., Kari, L., & Masson, B. (2013). Negative
interactions in irreversible self-assembly. Algorithmica 66(1), 153-172
- 2:10-2:30
Guillermo Gomez, Lisa Soros
Collins, P. and van Schuppen, J. H. (2004). Observability of
Hybrid Systems and Turing Machines. In Proc. of the 43rd IEEE
Conference on Decision and Control, 7-12.
- 2:30-2:50
Shahidul Islam, Min Wang
Leyton-Brown, Kevin; Hoos, Holger H.; Hutter, Frank; Xu, Lin (2014). Understanding the Empirical Hardness of NP-Complete Problems, Commun. ACM 57(5), 98-107.
- NP Completeness of Independent Set Problem
- Sample Final Exam (Key)
Week#15: (4/21, 4/23)
- Presentation Day 3 (3 presentations)
- 1:30-1:50
Sergiu 'Michael' Veazanchin
Jones, N. D., & Skyum, S. (1977). Complexity of some problems
concerning L systems. In Automata, Languages and Programming (pp.
301-308). Springer Berlin Heidelber
- 1:50-2:10
John Singleton, Toby Tobkin
Doty, D. (2012). Theory of algorithmic self-assembly. Communications of the ACM 55(12), 78-88.
- 2:10-2:35
Joshua Burbridge, Wentao Ding, Samer Iskander
Gonthier, G. (2008). Formal proof–the four-color theorem. Notices of the AMS 55(11), 1382-1393
- 2:35-2:45
Continue Complexity Review
- Presentation Day 4 (2 presentations)
- 1:30-1:50
Yevgeniy 'Gene' Sher
Nordin, Peter, and Wolfgang Banzhaf. Genetic reasoning evolving proofs
with genetic search. Univ., Systems Analysis Research Group, 1996.
- 1:50-2:10
Amir Emad Marvasti, Ehsan Emad Marvasti
Assari, S., Zamir, A., & Shah, M (2014). Video Classification using Semantic Concept Co-occurrences. Proceedings of CVPR
- More Review for Final Exam
Week#16: (4/27 -- Review Day in ENG1-383 from 10:00 to 11:50)
- Complete Review (Monday, 4/27, ENGR1-383, 10:00-11:50)
- Midterm Helper (Tuesday, 4/28, HEC-101B, 10:30-12:00)
- Due on Friday, 5/1, by midnight
- Paper associated with presentation
- Presentation (pptx, pdf, or whatever)
- Note: pdf files should be accompanied by zip of source
Final Exam is Tuesday May 5; 1:00PM to 3:50PM in ENGR1-286
© UCF (Charles E. Hughes)
-- Last Modified April 27, 2015