Algorithms in Exponential Time. Outline Backtracking Local Search Randomization: Reducing to a Polynomial-Time Case Randomization: Permuting the Evaluation.

Slides:



Advertisements
Similar presentations
Random non-local games Andris Ambainis, Artūrs Bačkurs, Kaspars Balodis, Dmitry Kravchenko, Juris Smotrovs, Madars Virza University of Latvia.
Advertisements

P-Optimal CSP Solvers Applied to Software Security P-Optimal CSP Solvers Applied to Software Security Ahmed Abdel Mohsen and Karl Lieberherr College of.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
CSCI 3160 Design and Analysis of Algorithms Tutorial 4
C4.5 algorithm Let the classes be denoted {C1, C2,…, Ck}. There are three possibilities for the content of the set of training samples T in the given node.
1 Discrete Structures & Algorithms Graphs and Trees: III EECE 320.
Recursively Defined Functions
Techniques for Dealing with Hard Problems Backtrack: –Systematically enumerates all potential solutions by continually trying to extend a partial solution.
The Theory of NP-Completeness
© The McGraw-Hill Companies, Inc., Chapter 8 The Theory of NP-Completeness.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Complexity 26-1 Complexity Andrei Bulatov Interactive Proofs.
Complexity 18-1 Complexity Andrei Bulatov Probabilistic Algorithms.
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 21 Instructor: Paul Beame.
Reduction Techniques Restriction Local Replacement Component Design Examples.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Complexity 19-1 Complexity Andrei Bulatov More Probabilistic Algorithms.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
CS151 Complexity Theory Lecture 13 May 11, CS151 Lecture 132 Outline Natural complete problems for PH and PSPACE proof systems interactive proofs.
Randomzied Unique k-SAT R. Paturi, P. Pudlak, M.E. Saks and F. Zane An Improved Exponential-time Algorithm for k-SAT Journal of the ACM, Vol 52, No. 3,
1 Chapter 8 NP and Computational Intractability Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
NP-Complete Problems CSC 331: Algorithm Analysis NP-Complete Problems.
Review Binary Tree Binary Tree Representation Array Representation Link List Representation Operations on Binary Trees Traversing Binary Trees Pre-Order.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
MBSat Satisfiability Program and Heuristics Brief Overview VLSI Testing B Marc Boulé April 2001 McGill University Electrical and Computer Engineering.
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 8: Complexity Theory.
1 1. Draw the machine schema for a TM which when started with input 001 halts with abbb on the tape in our standard input format. 2. Suppose you have an.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 3 Logic Representations (Part 2)
1 Agenda Modeling problems in Propositional Logic SAT basics Decision heuristics Non-chronological Backtracking Learning with Conflict Clauses SAT and.
1 3-COLOURING: Input: Graph G Question: Does there exist a way to 3-colour the vertices of G so that adjacent vertices are different colours? 1.What could.
CSCI 2670 Introduction to Theory of Computing December 1, 2004.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Algorithms for SAT Based on Search in Hamming Balls Author : Evgeny Dantsin, Edward A. Hirsch, and Alexander Wolpert Speaker : 羅正偉.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
1 Chapter 8 NP and Computational Intractability Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
The Class NP Lecture 39 Section 7.3 Mon, Nov 26, 2007.
CSE373: Data Structures & Algorithms Lecture 22: The P vs. NP question, NP-Completeness Lauren Milne Summer 2015.
On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda Rolf Drechsler Alex Orailoglu Computer Science & Engineering Dept. University.
First-Order Logic and Inductive Logic Programming.
1.1 Chapter 3: Proving NP-completeness Results Six Basic NP-Complete Problems Some Techniques for Proving NP-Completeness Some Suggested Exercises.
Clase 3: Basic Concepts of Search. Problems: SAT, TSP. Tarea 1 Computación Evolutiva Gabriela Ochoa
Tommy Messelis * Stefaan Haspeslagh Patrick De Causmaecker *
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 29.
Presented by Dajiang Zhu 11/1/2011.  Introduction of Markov chains Definition One example  Two problems as examples 2-SAT Algorithm (simply introduce.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
28.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
Solving the Logic Satisfiability problem Solving the Logic Satisfiability problem Jesus De Loera.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
NPC.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 32.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Non-LP-Based Approximation Algorithms Fabrizio Grandoni IDSIA
1 1. Which of these sequences correspond to Hamilton cycles in the graph? (a) (b) (c) (d) (e)
1 Intro to AI Local Search. 2 Intro to AI Local search and optimization Local search: –use single current state & move to neighboring states Idea: –start.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
PROBABILITY AND COMPUTING RANDOMIZED ALGORITHMS AND PROBABILISTIC ANALYSIS CHAPTER 1 IWAMA and ITO Lab. M1 Sakaidani Hikaru 1.
Theory of Computational Complexity Probability and Computing Chapter Hikaru Inada Iwama and Ito lab M1.
Richard Anderson Lecture 26 NP-Completeness
Polynomial-Time Reduction
First-Order Logic and Inductive Logic Programming
Local Search Strategies: From N-Queens to Walksat
Heuristics for Efficient SAT Solving
Richard Anderson Lecture 25 NP-Completeness
Presentation transcript:

Algorithms in Exponential Time

Outline Backtracking Local Search Randomization: Reducing to a Polynomial-Time Case Randomization: Permuting the Evaluation Order Randomized Local Search Randomization with Biased Coins

Backtracking SAT Brute-force Backtracking for 3-SAT 3-coloring Brute-force Backtracking

Local Search For a wrong assignment, make a local modification on it. Hamming distance d: two bit vectors of equal length is the number of bits in which they differ Take two initial assignments

Randomization: Reducing to a Polynomial-Time Case If we have some randomized algorithm which has complexity t and success probability p, then the algorithm needs to be repeated times to achieve an error probability of at most so that the overall time complexity is 3-coloring problem Wrong decision for a node with probability All decisions are consistent It could be reduced to 2-SAT problem

Randomization: Permuting the evaluation order. Recursion Tree v ^^ v ^ vv

Advantage For Or-gate: one of the two inputs is true For And-gate: one of the two inputs is false The time complexity is

3-SAT Variable order is chosen at random One variable after the other is assigned a truth value- (with probability ½ this choice might be wrong) It takes over n! permutations. Only 2n/3 many random choices are needed

Randomized local search 3-SAT The probability of choosing the correct variable to flip can be as low as 1/3. The probability of finding a satisfying assignment which is by Hamming distance d away from the initial assignment is (1/3)^d Let the flipping process last for 3d steps If we have d mistakes, we could correct it by 2d steps

3-SAT The probability of finding successful solution is

Randomization with Biased Coins Greedy collect as many mutually variable- disjoint clauses having 3 literals of as possible. Suppose the number m of clauses collected is small than n. We can cycle through all potential 7^m assignments of these variables O(1.331^n) Else With probability 3p exactly one of the 3 literals is assigned the value true With probability 3q exactly two of the 3 literals is assigned the value true With probability 1 – 3p – 3q assign all of the 3 literals as the value true

If x, y, z in a* is 1, 0, 0 The hamming distance between the initial assignment a and a*, as a random variable 0, p(1, 0, 0) 1, 2q (1, 1, 0) (1, 0, 1) 2, 1 – p – 3q (1, 1, 1) (0, 1, 0) (0, 0, 1) 3, q (0, 1, 1) The expectation of the random variable ½^d is 1 p + ½ (2q) + ¼ (1 – p – 3q) + 1/8 q

If x, y, z in a* is 1, 1, 0 The hamming distance between the initial assignment a and a*, as a random variable 0, q(1, 1, 0) 1, 1 – p – 3q (0, 1, 0) (1, 0, 0), (1, 1, 1) 2, 2q (1, 0, 1) (0, 1, 1) 3, p (0, 0, 1) The expectation of the random variable ½^d is 1 q + ½ (1 – p – 3q) ) + ¼ (2q) + 1/8 p

If x, y, z in a* is 1, 1, 1 The hamming distance between the initial assignment a and a*, as a random variable 0, 1 – 3p – 3q (1, 1, 1) 1, 3q (1, 1, 0) (1, 0, 1) (0, 1, 1) 2, 3p (1, 0, 0) (0, 1, 0) (0, 0, 1) 3, 0 The expectation of the random variable ½^d is 1 (1 – 3p – 3q) + ½ (3q) + ¼ (3p)

The success probability is

Set p = 4/21 and q = 2/21 This algorithm could be done in O(1.331^n)

Questions?