1.5 Intractable problems.

Slides:



Advertisements
Similar presentations
Algorithm Analysis.
Advertisements

1 P, NP, and NP-Complete Dr. Ying Lu RAIK 283 Data Structures & Algorithms.
Time Complexity P vs NP.
JAYASRI JETTI CHINMAYA KRISHNA SURYADEVARA
Computability & Complexity. Scenario I can’t write this program because I’m too dumb.
1 The Limits of Computation Intractable and Non-computable functions.
Recap CS605: The Mathematics and Theory of Computer Science.
CSE332: Data Abstractions Lecture 27: A Few Words on NP Dan Grossman Spring 2010.
Tractable and intractable problems for parallel computers
1 NP-Completeness Objectives: At the end of the lesson, students should be able to: 1. Differentiate between class P, NP, and NPC 2. Reduce a known NPC.
Analysis of Algorithms CS 477/677
CS10 The Beauty and Joy of Computing Lecture #23 : Limits of Computing Thanks to the success of the Kinect, researchers all over the world believe.
1 Section 2.3 Complexity of Algorithms. 2 Computational Complexity Measure of algorithm efficiency in terms of: –Time: how long it takes computer to solve.
Halting Problem. Background - Halting Problem Common error: Program goes into an infinite loop. Wouldn’t it be nice to have a tool that would warn us.
04/25/13 Halting Problem Discrete Structures (CS 173) Derek Hoiem, University of Illinois 1
Programming & Data Structures
CMPS 3223 Theory of Computation Automata, Computability, & Complexity by Elaine Rich ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Slides provided.
1 Ethics of Computing MONT 113G, Spring 2012 Session 13 Limits of Computer Science.
CS 390 Introduction to Theoretical Computer Science.
Unsolvability and Infeasibility. Computability (Solvable) A problem is computable if it is possible to write a computer program to solve it. Can all problems.
Problems you shouldn’t tackle. Problem Complexity.
CSC 172 P, NP, Etc. “Computer Science is a science of abstraction – creating the right model for thinking about a problem and devising the appropriate.
P, NP, and Exponential Problems Should have had all this in CS 252 – Quick review Many problems have an exponential number of possibilities and we can.
Cliff Shaffer Computer Science Computational Complexity.
Georgia Institute of Technology Speed part 6 Barb Ericson Georgia Institute of Technology May 2006.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
1 Chapter 34: NP-Completeness. 2 About this Tutorial What is NP ? How to check if a problem is in NP ? Cook-Levin Theorem Showing one of the most difficult.
ATM, Halting Problem, P vs. NP Chapter 4, 5 & 7. Russel’s Paradox An Index is a book that lists other books in.
Beauty and Joy of Computing Limits of Computing Ivona Bezáková CS10: UC Berkeley, April 14, 2014 (Slides inspired by Dan Garcia’s slides.)
CS10: The Beauty and Joy of Computing Lecture #22 Limits of Computing Warning sign posted at Stern Hall. Also, Apple releases new operating.
Limits to Computation How do you analyze a new algorithm? –Put it in the form of existing algorithms that you know the analysis. –For example, given 2.
Complexity & Computability. Limitations of computer science  Major reasons useful calculations cannot be done:  execution time of program is too long.
David Evans CS200: Computer Science University of Virginia Computer Science Lecture 15: Intractable Problems (Smiley.
The Beauty and Joy of Computing Lecture #23 Limits of Computing Researchers at Facebook and the University of Milan found that the avg # of “friends” separating.
Costas Busch - LSU1 Time Complexity. Costas Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
1 Computability Tractable, Intractable and Non-computable functions.
1 P and NP. 2 Introduction The Traveling Salesperson problem and thousands of other problems are equally hard in the sense that if we had an efficient.
Prof. Busch - LSU1 Time Complexity. Prof. Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
1 Recursively Enumerable and Recursive Languages.
CSC 172 P, NP, Etc.
NP-Completeness A problem is NP-complete if: It is in NP
The NP class. NP-completeness
NP-Complete Problems.
Formal Foundations-II [Theory of Automata]
Halting Problem Dr K R Bond 2009
Chapter 12: Theory of Computation
The Limits of Computation
Time Complexity Costas Busch - LSU.
Unsolvable Problems December 4, 2017.
CS 2210 Discrete Structures Algorithms and Complexity
ICS 353: Design and Analysis of Algorithms
Intro to NP Completeness
Parameterised Complexity
Class 14: Intractable Problems CS150: Computer Science
How Hard Can It Be?.
Computational Complexity
Time Complexity We use a multitape Turing machine
CLASSES P AND NP.
Halting Problem.
NP-Complete Problems.
CSC 380: Design and Analysis of Algorithms
P, NP and NP-Complete Problems
P, NP and NP-Complete Problems
CSC 380: Design and Analysis of Algorithms
Algorithms CSCI 235, Spring 2019 Lecture 36 P vs
RAIK 283 Data Structures & Algorithms
Algorithms CSCI 235, Spring 2019 Lecture 37 The Halting Problem
CS 2210 Discrete Structures Algorithms and Complexity
Presentation transcript:

1.5 Intractable problems

Starter Divide students into groups Give each group a set of tiles + scissors Arrange tiles into a 3x3 grid so that the colour of each tile edge matches the colour of the tile edge next to it and all the arrows are pointing upwards 10 minutes to find a solution

Tile problem Could you find a solution? If yes, how many solutions did you find? Groups given the first set of tiles will not be able to find a solution Groups given the second set of tiles should be able to find a solution Groups given the third set of tiles will not be able to find a solution Can an algorithm be written that will be able to decide if an area of any size can be tiled by a particular set of tiles? No, this is a non-computable problem

Intractable problems Are problems which cannot be solved in a reasonable amount of time Problems with exponential (or worse) complexity The Travelling Salesman Problem is an example of an intractable problem

Tractable and intractable problems Problems that have a reasonable (polynomial) time solutions are called tractable Problems that have no reasonable (polynomial) time solutions are called intractable A guessed solution to an intractable problem can be checked quickly. This is called an NP-type problem e.g. school timetabling.

Halting problem When you run a program it will either run for awhile and then stop (halt), or get stuck in an infinite loop and crash the machine If a program runs for a long time, do we conclude the program is stuck in a loop or that we have not allowed enough time for the program to calculate its output The halting problem asks ‘Is it possible to write a program that can tell given any program and its inputs and without executing the program, whether it will halt?’ A method to do this for any program has been proven to not exist. Link to proof presentation

Class work and Homework Complete ‘Intractable problems’ exam style questions Answer questions 1-8 in A2 Computing book Work through the case study: computationally hard problems Read 1.6 Regular expressions, BNF and RPN pg 55-67