“Devo verificare un’equivalenza polinomiale…Che fò? Fò dù conti” (Prof. G. Di Battista)

Slides:



Advertisements
Similar presentations
Problems and Their Classes
Advertisements

Shortest Vector In A Lattice is NP-Hard to approximate
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
WS Algorithmentheorie 03 – Randomized Algorithms (Primality Testing) Prof. Dr. Th. Ottmann.
Randomized Algorithms Kyomin Jung KAIST Applied Algorithm Lab Jan 12, WSAC
CSL758 Instructors: Naveen Garg Kavitha Telikepalli Scribe: Manish Singh Vaibhav Rastogi February 7 & 11, 2008.
1 Network Coding: Theory and Practice Apirath Limmanee Jacobs University.
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Complexity 18-1 Complexity Andrei Bulatov Probabilistic Algorithms.
Computational problems, algorithms, runtime, hardness
Yi Wu (CMU) Joint work with Parikshit Gopalan (MSR SVC) Ryan O’Donnell (CMU) David Zuckerman (UT Austin) Pseudorandom Generators for Halfspaces TexPoint.
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
Recent Development on Elimination Ordering Group 1.
Randomized Algorithms and Randomized Rounding Lecture 21: April 13 G n 2 leaves
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 21 Instructor: Paul Beame.
A Simple Min-Cut Algorithm Joseph Vessella Rutgers-Camden 1.
Quantum Automata Formalism. These are general questions related to complexity of quantum algorithms, combinational and sequential.
Maximum Flows Lecture 4: Jan 19. Network transmission Given a directed graph G A source node s A sink node t Goal: To send as much information from s.
Last class Decision/Optimization 3-SAT  Independent-Set Independent-Set  3-SAT P, NP Cook’s Theorem NP-hard, NP-complete 3-SAT  Clique, Subset-Sum,
Prof. Bart Selman Module Probability --- Part e)
Chapter 11: Limitations of Algorithmic Power
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Study Group Randomized Algorithms Jun 7, 2003 Jun 14, 2003.
Randomness in Computation and Communication Part 1: Randomized algorithms Lap Chi Lau CSE CUHK.
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
ASC Program Example Part 3 of Associative Computing Examining the MST code in ASC Primer.
Randomized Algorithms Morteza ZadiMoghaddam Amin Sayedi.
Introduction to Graph Theory
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Programming & Data Structures
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Chapter 11 Limitations of Algorithm Power. Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples:
CSCE350 Algorithms and Data Structure
Computational Complexity Polynomial time O(n k ) input size n, k constant Tractable problems solvable in polynomial time(Opposite Intractable) Ex: sorting,
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.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
Design Techniques for Approximation Algorithms and Approximation Classes.
Theory of Computing Lecture 15 MAS 714 Hartmut Klauck.
CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Approximation Algorithms Pages ADVANCED TOPICS IN COMPLEXITY THEORY.
 2004 SDU Lecture 7- Minimum Spanning Tree-- Extension 1.Properties of Minimum Spanning Tree 2.Secondary Minimum Spanning Tree 3.Bottleneck.
CSC 413/513: Intro to Algorithms NP Completeness.
Computation Model and Complexity Class. 2 An algorithmic process that uses the result of a random draw to make an approximated decision has the ability.
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
PROBABILISTIC COMPUTATION By Remanth Dabbati. INDEX  Probabilistic Turing Machine  Probabilistic Complexity Classes  Probabilistic Algorithms.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Design and Analysis of Algorithms - Chapter 101 Our old list of problems b Sorting b Searching b Shortest paths in a graph b Minimum spanning tree b Primality.
Algorithm Design and Analysis (ADA)
NP-Completness Turing Machine. Hard problems There are many many important problems for which no polynomial algorithms is known. We show that a polynomial-time.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Theory of Computing Lecture 12 MAS 714 Hartmut Klauck.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Introduction to NP Instructor: Neelima Gupta 1.
1 1. Which of these sequences correspond to Hamilton cycles in the graph? (a) (b) (c) (d) (e)
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
PROBABILITY AND COMPUTING RANDOMIZED ALGORITHMS AND PROBABILISTIC ANALYSIS CHAPTER 1 IWAMA and ITO Lab. M1 Sakaidani Hikaru 1.
The NP class. NP-completeness
Probabilistic Algorithms
Randomized Algorithm (Lecture 2: Randomized Min_Cut)
Minimum Spanning Tree 8/7/2018 4:26 AM
Randomized Algorithms
Randomized Algorithms CS648
Chapter 11 Limitations of Algorithm Power
Our old list of problems
Presentation transcript:

“Devo verificare un’equivalenza polinomiale…Che fò? Fò dù conti” (Prof. G. Di Battista)

 Choose a random integer r in the range [1,…,600]  Compute H(r) and G(r)  If H(r) = G(r) then output TRUE, otherwise output FALSE

 A Monte Carlo algorithm runs for a fixed number of steps and produces an answer that is correct with probability ≥ 1/3  A Las Vegas algorithm always produces the correct answer and its running time is a random variable whose expectation is bounded (usually by a polynomial)

 These probabilites and expectations are only over the random choices made by the algorithm ◦Independent on the input  Thus, independent repetitions of a Monte Carlo algorithm make the failure probability drop down exponentially ◦Chernoff Bound

 A Monte Carlo algorithm can be turned into a Las Vegas algorithm if an efficient procedure exists to check whether an answer is correct ◦the Monte Carlo algorithm is run repeatedly till a correct answer is obtained.  A Las Vegas algorithm can be always turned into a Monte Carlo algorithm ◦Repeat it for a fixed amount of time

 Number-theoretic algorithms ◦Primality testing (Monte Carlo)  Data Structures ◦Sorting and searching  Algebraic identities ◦Polynomial and matrix identities verification  Mathematical programming ◦Faster linear programming algorithms, rounding linear programming to integer programming solutions

 Graph algorithms ◦Minimum spanning trees, shortest paths, min-cut  Parallel and distributed computing ◦Deadlock avoidance, distributed consensus  Probabilistic existence proofs ◦Show that a combinatorial object arises with a positive probability among objects drawn from a siutably probability space

 Simplicity  Performances For many problems, a randomized algorithm is the simplest, the fastest, or both

“In testing primality of very large numbers chosen at random, the chance of stumbling upon a value that fools the Fermat test is less than the chance that cosmic radiation will cause the computer to make an error in carrying out a 'correct' algorithm. Considering an algorithm to be inadequate for the first reason but not for the second illustrates the difference between mathematics and engineering.” ◦Han Abelson and Gerald J. Sussman (1996). Structure and Interpretation of Computer Programs. MIT Press.

 A cut is a partition of the vertices of a graph into two disjoint subsets.  The cut-set of the cut is the set of edges whose end points are in different subsets of the partition.  The weight of a cut is the sum of the weights of the edges crossing the cut. If the graph is unweighted, each edge has weight 1.

 A cut is a partition of the vertices of a graph into two disjoint subsets. Weight = 5

 A cut is minimum if the size of the cut is not larger than the size of any other cut  The maximum flow of the network and the weight of any minimum cut are equal ◦Max-flow Min-cut theorem  Min-cut problem is polynomial-time solvable ◦Ford-Fulkerson O(m*f) ◦Edmonds-Karp O(n*m 2 ) ◦Stoer and Wagner (1994) O(nm+n 2 logn)

 A cut is minimum if the size of the cut is not larger than the size of any other cut Weight = 2

 Input: An n-node graph G.  Output: A minimal set of edges that disconnects the graph. 1. Repeat n − 2 times: a.Pick an edge uniformly at random. b.Contract the two vertices connected by that edge and remove all the edges connecting them. 2. Output the set of edges connecting the two remaining vertices.

Weight = 2

Weight = 3

 Bounded-error, Probabilistic, Polynomial time ◦the class of decision problems solvable by a probabilistic Turing machine in polynomial time, with an error probability of at most 1/3 for all instances.  The choice of 1/3 is arbitrary. If we chose any constant between 0 and 1/2 (exclusive), the set BPP would be unchanged; however, this constant must be independent of the input.  BPP is one of the largest practical classes of problems.

 Bounded-error, Quantum, Polynomial time ◦the class of decision problems solvable by a Quantum computer in polynomial time, with an error probability of at most 1/3 for all instances.  A computation on a quantum computer ends with a measurement, which leads to a collapse of the quantum state to one of the basis states. ◦the quantum state is measured to be in the correct state with high probability.  Some problems of practical interest are known to be in BQP but suspected to be outside P ◦Integer factorization ◦Discrete logarithm ◦Simulation of quantum systems