1 / 8

Optimization/Decision Problems

Optimization/Decision Problems. Optimization Problems An optimization problem is one which asks, “What is the optimal solution to problem X?” Examples: Minimum Spanning Tree Decision Problems An decision problem is one with yes/no answer Examples: Does a graph G have a MST of weight  W?.

leane
Download Presentation

Optimization/Decision Problems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Optimization/Decision Problems • Optimization Problems • An optimization problem is one which asks, “What is the optimal solution to problem X?” • Examples: • Minimum Spanning Tree • Decision Problems • An decision problem is one with yes/no answer • Examples: • Does a graph G have a MST of weight  W?

  2. Some problems are intractable: as they grow large, we are unable to solve them in reasonable time What reasonable time? Standard working definition: polynomial time On an input of size n the worst-case running time is O(nk) for some constant k O(n2), O(n3), O(1), O(n lg n), O(2n), O(nn), O(n!) Polynomial time: O(n2), O(n3), O(1), O(n lg n) Not in polynomial time: O(2n), O(nn), O(n!)

  3. Determinism vs. Nondeterminism • Nondeterministic algorithms produce an answer by a series of “correct guesses” • Deterministic algorithms (like those that a computer executes) make decisions based on information.

  4. Complexity Class P • Deterministic in nature • Solved by conventional computers in polynomial time • O(1) Constant • O(log n) Sub-linear • O(n) Linear • O(n log n) Nearly Linear • O(n2) Quadratic • Polynomial upper and lower bounds

  5. Complexity Class NP • Two Properties: non-deterministic method to generate possible solutions, deterministic method to verify in polynomial time that the solution is correct.

  6. Relation of P and NP • P is a subset of NP • “P = NP”? • Language L is in NP, complement of L is in co-NP • co-NP ≠ NP • P ≠ co-NP

  7. TSP • For each two cities, an integer cost is given to travel from one of the two cities to the other. The salesperson wants to make a minimum cost circuit visiting each city exactly once. 2 i = 23 2 1 1 3 4 1 3 4 5 4 2 1 2 2 2 2 1 1 1

  8. NP-Complete “NP-Complete” comes from: • Nondeterministic Polynomial • Complete - “Solve one, Solve them all” There are more NP-Complete problems than provably intractable problems.

More Related