SlideShare a Scribd company logo
1 of 33
Limits of Computation
Hard vs Impossible
 Intractable Problems – trillions of years to
solve: practically unfeasible
 Unsolvable Problems – factually impossible, as
opposed to hard - .eg mutilated chessboard
problem
Hard vs Impossible
 Intractable Problems – trillions of years to
solve: practically unfeasible
 Unsolvable Problems – factually impossible, as
opposed to hard - .eg mutilated chessboard
problem
Complexity Class
 how fast #ops grow with size of input
Problem Types
 Optimization Problems: min/max. Must
examine all data
 Decision Problems: boolean -eg <, >. stop
when we find what we are looking for.
 Polynomial Problems: (P) – feasible,
tractable #ops
 Non-Polynomial Problems (NP): n^2.5+,
2^n, n!
 Eg Encryption Key asymmetry:
multiplication of 2 primes is n^2 , factoring is
NP
Easy Problems (P)
 Eg arithmetic, searching, sorting
 Brute-Force vs algorithm ‘tricks’ - eg binary-
search (split up, recurse)
 Appropriate algorithm may depend on type
of input
Graph Theory
Eg 6 degrees of
separation
Max #edges that one
must traverse to
connect any 2
vertices
7 bridges of
Konigsberg
Easy Graph problems
Euler Cycle problem
Q: is there a path that starts & finishes at
same vertex that passes every edge exactly
once ?
A: if every vertex has an even number of
edges.
Easy Graph problems
Euler Path problem
Q: is there a path that passes every vertex
exactly once ?
A: if Max 2 vertices have odd #edges & rest
have even
Hard Problems (NP)
Traveling Salesman Problem
 travel shortest route
to visit each city
once. (Weighted
graph)
 Brute-force: n! ops
 Eg n=100. For each
route, need to add
distance between
100 cities and &
compare sum to
shortest distance
Traveling Salesman Problem
 100! = 9.332622e+157
 Given a computer that can check 1 million
routes per sec → 3 x 10^144 years.
 There are 10^80 atoms in the universe – if
each were a computer, this would take
10^62 centuries. And this is for 100!
Hamiltonian Cycle Problem
 Is there a path that passes every vertex
exactly once that starts & finishes at same
vertex ?
 Brute force: n!
 Similar to Euler Cycle - but unfortunately no
trick discovered (& probably wont be) !!!
Hard Set Problems
Set Partition Problem
 split set of natural numbers into 2 groups
that both sum to the same number
 first evaluate solvability: is the total sum
Odd ?
 brute force: 2^n
Subset Sum Problem
 for a given set of natural numbers, and a
natural number C (capacity), is there a
subset that sums to C ? eg fill a room
The Satisfiability Problem
 deals with logical statements ^ (and), v (or), ~ (not) , →
(implies)
 eg (p v ~q) → ~ (p ^ q) – is this true if p=true and q=false ?
 Generalize: can we assign boolean values to variables to make
the statement true ?
 Logic Rules – eg Modus Ponens: ((p → q) ^ p) → q If today is
Tuesday, then John will go to work. Today is Tuesday.
Therefore, John will go to work.
 Brute-force:
 truth-table lookup: 2^n
NP Problems are Inherently Hard
Intractability is not because we lack the
technology.
Faster computers – if 10,000 times faster, TS
(100) problem still takes 3 x 10^140 years
Parallelization – Similarly, perform 10,000
simultaneous ops – same story
Quantum Computing – superposition of
search states: examine multiple possibilities at
once. For searching list of size n: Sqrt(n) ops.
But when searching through all n! possible
solutions to an NP problem: Sqrt(n!) ops –
Reduction
Transform a problem – reduction of a problem
x to y. if we can solve y then we can definitely
solve x
eg x is as hard as or easier than y: x <=p y
 climbing K2 is reducible to climbing mount
Everest
 Set Partition Problem is reducible to
Subset Sum Problem
 Hamiltonian Cycle Problem is reducible to
Traveling Salesman Problem
Reduction
 Cook-Levin
Theorem: because
a computer works
on logic gates, ALL
NP problems are
reducible to
Satisfiability
Problem (even
undiscovered ones)
NP-Complete and P != NP
 NP-Complete problems – the hardest NP
problems. Every NP problem is reducible to
NP-Complete. If we could find an algorithm
to solve it in P …
 Unsolved problem: If NP is a subset of P,
then P = NP. Most researchers believe P is
a subset of NP.
Approximation Algorithms
 if NP – best we can do is Heuristics. Better
than waiting 400 trillion centuries.
 Traveling Salesman Problem
approximation: use a Greedy Algorithm:
OSPF, Nearest Neighbor
 Set Partition Problem approximation:
Extreme Pairs – repeat, alternating
partitions: pick min & max from source set &
place in partition x
Even Harder problems
 Super-exponential – eg 2^(2^n) (if n=10,
need 2^1024 ops), (n!)!
 PSPACE (a superset of NP). Demand a
polynomial amount of space
 eg is there a winning strategy for n x n tic-
tac-toe ?
 Chess, Checkers, Nim, Go
Computing Impossibilities
 Q: Can computers recognize art, make
moral decisions ? A: Quantification of
Aesthetics, Ethics – subjective.
 Halting Problem
 Incompleteness Theorem
Some Definitions
Science – language we use to describe &
predict the physical & measurable universe
Applied Maths – the language of science
Logic – the language of reason
Epistemology – philosophy of human
knowledge & its limits
Logic
Use symbols to reason about structure of
proofs – set up axiom systems to put
mathematics on a firm foundation
Peano Arithmetic – Axiom system for natural
numbers
symbolization / arithmetization – conversion
between logical symbolic systems and
numeric systems
Logical Paradoxes
input: axioms + assumptions;
processing: logical reasoning laws;
output: logically unacceptable falsehoods,
self-contradictions, nonsensical false facts →
jettison assumptions
often counterintuitive (eg “space is
continuous”)
reductio ad absurdum (proof by
contradiction)
Logical Paradoxes
self-referential paradoxes - eg Liar Paradox:
“this sentence is false”
reduction – infer limitations from other
problems
reality, science, maths, logic cannot permit
contradictions – but our minds & language
can: vagueness, jokes
Zeno’s Paradoxes
The Halting Problem
Alan Turing, 1936: proof by contradiction (Liar
Paradox) that the Halting Problem is
undecidable
A limitation of mechanized processes, its not a
hard problem, its an impossible problem
a computer (or brain ?) cannot determine if a
black box program given input x will terminate
(with a return code) or enter an infinite loop.
Processing ….
https://www.youtube.com/watch?v=92WHN-
pAFCs
Oracle Machines & Turtles
imagine a non-mechanical mystic Oracle
Machine – the Halt Oracle can solve the
Halting Problem – could solve many other
unsolved math problems
eg Goldbach Conjecture: every positive
even number greater than 2 is a sum of 2
primes. (we know this holds up to 10^17)
the Halt Oracle searches for a counter-
example – if it exists, it can tell if the program
will halt.
Turing: Halting Problem for Halt Oracle
Computers vs Minds
Q: Can a human solve the Halting Problem ?
A: Kurt Godel , Sir Roger Penrose, Douglas
Hofstadfer - consciousness arises from
ability to self-reference. Self-Reference in
Computers brings paradoxical limitations,
while in humans it causes consciousness ???
Incompleteness
 Kurt Godel – the
man who broke
Logic
 Godel Sentence:
“This Logical
Statement is
Unprovable” →
contradiction
 1st Incompleteness
Theorem – There
are logical
Incompleteness
 If Peano Arithmetic
is consistent then
the Godel sentence
is unprovable and
true –> limitation of
basic arithmetic:
cannot determine
when its own
statements are
true / consistent.
 There are stronger
Incompleteness
 consistency of logical systems at basis of
mathematics and science is beyond the
bounds of reason!
 Note: majority of maths work does not
require working with basic axiomatic proofs

More Related Content

What's hot

Towards a stable definition of Algorithmic Randomness
Towards a stable definition of Algorithmic RandomnessTowards a stable definition of Algorithmic Randomness
Towards a stable definition of Algorithmic RandomnessHector Zenil
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic NotationsNagendraK18
 
LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013mikhailkonnik
 
Fractal dimension versus Computational Complexity
Fractal dimension versus Computational ComplexityFractal dimension versus Computational Complexity
Fractal dimension versus Computational ComplexityHector Zenil
 
Fractal Dimension of Space-time Diagrams and the Runtime Complexity of Small ...
Fractal Dimension of Space-time Diagrams and the Runtime Complexity of Small ...Fractal Dimension of Space-time Diagrams and the Runtime Complexity of Small ...
Fractal Dimension of Space-time Diagrams and the Runtime Complexity of Small ...Hector Zenil
 
Graph Spectra through Network Complexity Measures: Information Content of Eig...
Graph Spectra through Network Complexity Measures: Information Content of Eig...Graph Spectra through Network Complexity Measures: Information Content of Eig...
Graph Spectra through Network Complexity Measures: Information Content of Eig...Hector Zenil
 
A Numerical Method for the Evaluation of Kolmogorov Complexity, An alternativ...
A Numerical Method for the Evaluation of Kolmogorov Complexity, An alternativ...A Numerical Method for the Evaluation of Kolmogorov Complexity, An alternativ...
A Numerical Method for the Evaluation of Kolmogorov Complexity, An alternativ...Hector Zenil
 
Uncertainty in deep learning
Uncertainty in deep learningUncertainty in deep learning
Uncertainty in deep learningYujiro Katagiri
 
lecture 30
lecture 30lecture 30
lecture 30sajinsc
 
Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...Valentin De Bortoli
 
Word Embeddings (D2L4 Deep Learning for Speech and Language UPC 2017)
Word Embeddings (D2L4 Deep Learning for Speech and Language UPC 2017)Word Embeddings (D2L4 Deep Learning for Speech and Language UPC 2017)
Word Embeddings (D2L4 Deep Learning for Speech and Language UPC 2017)Universitat Politècnica de Catalunya
 
Why machines can't think (logically)
Why machines can't think (logically)Why machines can't think (logically)
Why machines can't think (logically)Andre Vellino
 
International conference "QP 34 -- Quantum Probability and Related Topics"
International conference "QP 34 -- Quantum Probability and Related Topics"International conference "QP 34 -- Quantum Probability and Related Topics"
International conference "QP 34 -- Quantum Probability and Related Topics"Medhi Corneille Famibelle*
 
International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI)International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI)inventionjournals
 
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)Universitat Politècnica de Catalunya
 

What's hot (20)

Towards a stable definition of Algorithmic Randomness
Towards a stable definition of Algorithmic RandomnessTowards a stable definition of Algorithmic Randomness
Towards a stable definition of Algorithmic Randomness
 
NP completeness
NP completenessNP completeness
NP completeness
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
 
LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013
 
Fractal dimension versus Computational Complexity
Fractal dimension versus Computational ComplexityFractal dimension versus Computational Complexity
Fractal dimension versus Computational Complexity
 
Fractal Dimension of Space-time Diagrams and the Runtime Complexity of Small ...
Fractal Dimension of Space-time Diagrams and the Runtime Complexity of Small ...Fractal Dimension of Space-time Diagrams and the Runtime Complexity of Small ...
Fractal Dimension of Space-time Diagrams and the Runtime Complexity of Small ...
 
Graph Spectra through Network Complexity Measures: Information Content of Eig...
Graph Spectra through Network Complexity Measures: Information Content of Eig...Graph Spectra through Network Complexity Measures: Information Content of Eig...
Graph Spectra through Network Complexity Measures: Information Content of Eig...
 
A Numerical Method for the Evaluation of Kolmogorov Complexity, An alternativ...
A Numerical Method for the Evaluation of Kolmogorov Complexity, An alternativ...A Numerical Method for the Evaluation of Kolmogorov Complexity, An alternativ...
A Numerical Method for the Evaluation of Kolmogorov Complexity, An alternativ...
 
Uncertainty in deep learning
Uncertainty in deep learningUncertainty in deep learning
Uncertainty in deep learning
 
P vs NP
P vs NP P vs NP
P vs NP
 
lecture 30
lecture 30lecture 30
lecture 30
 
06 recurrent neural_networks
06 recurrent neural_networks06 recurrent neural_networks
06 recurrent neural_networks
 
Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...
 
Word Embeddings (D2L4 Deep Learning for Speech and Language UPC 2017)
Word Embeddings (D2L4 Deep Learning for Speech and Language UPC 2017)Word Embeddings (D2L4 Deep Learning for Speech and Language UPC 2017)
Word Embeddings (D2L4 Deep Learning for Speech and Language UPC 2017)
 
Wg qcolorable
Wg qcolorableWg qcolorable
Wg qcolorable
 
Why machines can't think (logically)
Why machines can't think (logically)Why machines can't think (logically)
Why machines can't think (logically)
 
International conference "QP 34 -- Quantum Probability and Related Topics"
International conference "QP 34 -- Quantum Probability and Related Topics"International conference "QP 34 -- Quantum Probability and Related Topics"
International conference "QP 34 -- Quantum Probability and Related Topics"
 
International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI)International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI)
 
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)
Backpropagation (DLAI D3L1 2017 UPC Deep Learning for Artificial Intelligence)
 
Batchal slides
Batchal slidesBatchal slides
Batchal slides
 

Viewers also liked

Five Mill Tree Method 1208
Five Mill Tree Method 1208Five Mill Tree Method 1208
Five Mill Tree Method 1208David Szetela
 
IoT, Zeno's Paradox, Reductio Ad Absurdum, and Driving Fast 04092014
IoT, Zeno's Paradox, Reductio Ad Absurdum, and Driving Fast 04092014IoT, Zeno's Paradox, Reductio Ad Absurdum, and Driving Fast 04092014
IoT, Zeno's Paradox, Reductio Ad Absurdum, and Driving Fast 04092014Joseph Biron
 
The logic of informal proofs
The logic of informal proofsThe logic of informal proofs
The logic of informal proofsBrendan Larvor
 
Understanding arguments
Understanding argumentsUnderstanding arguments
Understanding argumentsMclavin Love
 
8 chapter eightpowerpoint
8 chapter eightpowerpoint8 chapter eightpowerpoint
8 chapter eightpowerpointsagebennet
 
Abbreviated Truth Tables
Abbreviated Truth TablesAbbreviated Truth Tables
Abbreviated Truth Tablesdyeakel
 
Chapter 8 induction
Chapter 8 inductionChapter 8 induction
Chapter 8 inductionscrasnow
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inferenceraksharao
 
6.4 Truth Tables For Arguments
6.4   Truth Tables For Arguments6.4   Truth Tables For Arguments
6.4 Truth Tables For ArgumentsNicholas Lykins
 
Inductive reasoning & logic
Inductive reasoning & logicInductive reasoning & logic
Inductive reasoning & logictommy34g
 
#4 formal methods – predicate logic
#4 formal methods – predicate logic#4 formal methods – predicate logic
#4 formal methods – predicate logicSharif Omar Salem
 
5.1 Standard Form Mood And Figure
5.1   Standard Form Mood And Figure5.1   Standard Form Mood And Figure
5.1 Standard Form Mood And FigureNicholas Lykins
 
Deductive logic
Deductive logicDeductive logic
Deductive logicWordpandit
 
4.3 Venn Diagrams And The Modern Square Of Opposition
4.3   Venn Diagrams And The Modern Square Of Opposition4.3   Venn Diagrams And The Modern Square Of Opposition
4.3 Venn Diagrams And The Modern Square Of OppositionNicholas Lykins
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentationMujtaBa Khan
 
6.3 Truth Tables For Propositions
6.3   Truth Tables For Propositions6.3   Truth Tables For Propositions
6.3 Truth Tables For PropositionsNicholas Lykins
 

Viewers also liked (20)

Five Mill Tree Method 1208
Five Mill Tree Method 1208Five Mill Tree Method 1208
Five Mill Tree Method 1208
 
IoT, Zeno's Paradox, Reductio Ad Absurdum, and Driving Fast 04092014
IoT, Zeno's Paradox, Reductio Ad Absurdum, and Driving Fast 04092014IoT, Zeno's Paradox, Reductio Ad Absurdum, and Driving Fast 04092014
IoT, Zeno's Paradox, Reductio Ad Absurdum, and Driving Fast 04092014
 
The logic of informal proofs
The logic of informal proofsThe logic of informal proofs
The logic of informal proofs
 
John stuart Mill on Reference and Meaning
John stuart Mill on Reference and MeaningJohn stuart Mill on Reference and Meaning
John stuart Mill on Reference and Meaning
 
Understanding arguments
Understanding argumentsUnderstanding arguments
Understanding arguments
 
8 chapter eightpowerpoint
8 chapter eightpowerpoint8 chapter eightpowerpoint
8 chapter eightpowerpoint
 
Proof by contradiction
Proof by contradictionProof by contradiction
Proof by contradiction
 
Abbreviated Truth Tables
Abbreviated Truth TablesAbbreviated Truth Tables
Abbreviated Truth Tables
 
3 computing truth tables
3   computing truth tables3   computing truth tables
3 computing truth tables
 
Chapter 8 induction
Chapter 8 inductionChapter 8 induction
Chapter 8 induction
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 
6.4 Truth Tables For Arguments
6.4   Truth Tables For Arguments6.4   Truth Tables For Arguments
6.4 Truth Tables For Arguments
 
Inductive reasoning & logic
Inductive reasoning & logicInductive reasoning & logic
Inductive reasoning & logic
 
#4 formal methods – predicate logic
#4 formal methods – predicate logic#4 formal methods – predicate logic
#4 formal methods – predicate logic
 
5.1 Standard Form Mood And Figure
5.1   Standard Form Mood And Figure5.1   Standard Form Mood And Figure
5.1 Standard Form Mood And Figure
 
Deductive logic
Deductive logicDeductive logic
Deductive logic
 
4.3 Venn Diagrams And The Modern Square Of Opposition
4.3   Venn Diagrams And The Modern Square Of Opposition4.3   Venn Diagrams And The Modern Square Of Opposition
4.3 Venn Diagrams And The Modern Square Of Opposition
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentation
 
6.3 Truth Tables For Propositions
6.3   Truth Tables For Propositions6.3   Truth Tables For Propositions
6.3 Truth Tables For Propositions
 
Logic&proof
Logic&proofLogic&proof
Logic&proof
 

Similar to Limits of Computation

9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problemsJyotsna Suryadevara
 
Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theoryNYversity
 
Dynamic Programming - Laughlin Lunch and Learn
Dynamic Programming - Laughlin Lunch and LearnDynamic Programming - Laughlin Lunch and Learn
Dynamic Programming - Laughlin Lunch and LearnBillie Rose
 
2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練Abner Huang
 
Time and space complexity
Time and space complexityTime and space complexity
Time and space complexityAnkit Katiyar
 
Sienna 2 analysis
Sienna 2 analysisSienna 2 analysis
Sienna 2 analysischidabdu
 
Bias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesBias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesOlivier Teytaud
 
Uncertainties in large scale power systems
Uncertainties in large scale power systemsUncertainties in large scale power systems
Uncertainties in large scale power systemsOlivier Teytaud
 
A note on word embedding
A note on word embeddingA note on word embedding
A note on word embeddingKhang Pham
 
How Hard Can a Problem Be ?
How Hard Can a Problem Be ?How Hard Can a Problem Be ?
How Hard Can a Problem Be ?Ahmed Saeed
 
lecture 27
lecture 27lecture 27
lecture 27sajinsc
 
2010 3-24 cryptography stamatiou
2010 3-24 cryptography stamatiou2010 3-24 cryptography stamatiou
2010 3-24 cryptography stamatiouvafopoulos
 
Parallelising Dynamic Programming
Parallelising Dynamic ProgrammingParallelising Dynamic Programming
Parallelising Dynamic ProgrammingRaphael Reitzig
 

Similar to Limits of Computation (20)

Introduction
IntroductionIntroduction
Introduction
 
9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problems
 
Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theory
 
Dynamic Programming - Laughlin Lunch and Learn
Dynamic Programming - Laughlin Lunch and LearnDynamic Programming - Laughlin Lunch and Learn
Dynamic Programming - Laughlin Lunch and Learn
 
Theory of games
Theory of gamesTheory of games
Theory of games
 
2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練
 
NP-Completeness - II
NP-Completeness - IINP-Completeness - II
NP-Completeness - II
 
Time and space complexity
Time and space complexityTime and space complexity
Time and space complexity
 
DAA.pdf
DAA.pdfDAA.pdf
DAA.pdf
 
DAA.pdf
DAA.pdfDAA.pdf
DAA.pdf
 
Sienna 2 analysis
Sienna 2 analysisSienna 2 analysis
Sienna 2 analysis
 
Bias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesBias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniques
 
Uncertainties in large scale power systems
Uncertainties in large scale power systemsUncertainties in large scale power systems
Uncertainties in large scale power systems
 
A note on word embedding
A note on word embeddingA note on word embedding
A note on word embedding
 
Teori pnp
Teori pnpTeori pnp
Teori pnp
 
How Hard Can a Problem Be ?
How Hard Can a Problem Be ?How Hard Can a Problem Be ?
How Hard Can a Problem Be ?
 
lecture 27
lecture 27lecture 27
lecture 27
 
class23.ppt
class23.pptclass23.ppt
class23.ppt
 
2010 3-24 cryptography stamatiou
2010 3-24 cryptography stamatiou2010 3-24 cryptography stamatiou
2010 3-24 cryptography stamatiou
 
Parallelising Dynamic Programming
Parallelising Dynamic ProgrammingParallelising Dynamic Programming
Parallelising Dynamic Programming
 

Recently uploaded

%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2
 
Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2WSO2
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
WSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2
 

Recently uploaded (20)

%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
WSO2Con2024 - GitOps in Action: Navigating Application Deployment in the Plat...
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid Environments
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 

Limits of Computation

  • 2. Hard vs Impossible  Intractable Problems – trillions of years to solve: practically unfeasible  Unsolvable Problems – factually impossible, as opposed to hard - .eg mutilated chessboard problem
  • 3. Hard vs Impossible  Intractable Problems – trillions of years to solve: practically unfeasible  Unsolvable Problems – factually impossible, as opposed to hard - .eg mutilated chessboard problem
  • 4. Complexity Class  how fast #ops grow with size of input
  • 5. Problem Types  Optimization Problems: min/max. Must examine all data  Decision Problems: boolean -eg <, >. stop when we find what we are looking for.  Polynomial Problems: (P) – feasible, tractable #ops  Non-Polynomial Problems (NP): n^2.5+, 2^n, n!  Eg Encryption Key asymmetry: multiplication of 2 primes is n^2 , factoring is NP
  • 6. Easy Problems (P)  Eg arithmetic, searching, sorting  Brute-Force vs algorithm ‘tricks’ - eg binary- search (split up, recurse)  Appropriate algorithm may depend on type of input
  • 7. Graph Theory Eg 6 degrees of separation Max #edges that one must traverse to connect any 2 vertices 7 bridges of Konigsberg
  • 8. Easy Graph problems Euler Cycle problem Q: is there a path that starts & finishes at same vertex that passes every edge exactly once ? A: if every vertex has an even number of edges.
  • 9. Easy Graph problems Euler Path problem Q: is there a path that passes every vertex exactly once ? A: if Max 2 vertices have odd #edges & rest have even
  • 11. Traveling Salesman Problem  travel shortest route to visit each city once. (Weighted graph)  Brute-force: n! ops  Eg n=100. For each route, need to add distance between 100 cities and & compare sum to shortest distance
  • 12. Traveling Salesman Problem  100! = 9.332622e+157  Given a computer that can check 1 million routes per sec → 3 x 10^144 years.  There are 10^80 atoms in the universe – if each were a computer, this would take 10^62 centuries. And this is for 100!
  • 13. Hamiltonian Cycle Problem  Is there a path that passes every vertex exactly once that starts & finishes at same vertex ?  Brute force: n!  Similar to Euler Cycle - but unfortunately no trick discovered (& probably wont be) !!!
  • 14. Hard Set Problems Set Partition Problem  split set of natural numbers into 2 groups that both sum to the same number  first evaluate solvability: is the total sum Odd ?  brute force: 2^n Subset Sum Problem  for a given set of natural numbers, and a natural number C (capacity), is there a subset that sums to C ? eg fill a room
  • 15. The Satisfiability Problem  deals with logical statements ^ (and), v (or), ~ (not) , → (implies)  eg (p v ~q) → ~ (p ^ q) – is this true if p=true and q=false ?  Generalize: can we assign boolean values to variables to make the statement true ?  Logic Rules – eg Modus Ponens: ((p → q) ^ p) → q If today is Tuesday, then John will go to work. Today is Tuesday. Therefore, John will go to work.  Brute-force:  truth-table lookup: 2^n
  • 16. NP Problems are Inherently Hard Intractability is not because we lack the technology. Faster computers – if 10,000 times faster, TS (100) problem still takes 3 x 10^140 years Parallelization – Similarly, perform 10,000 simultaneous ops – same story Quantum Computing – superposition of search states: examine multiple possibilities at once. For searching list of size n: Sqrt(n) ops. But when searching through all n! possible solutions to an NP problem: Sqrt(n!) ops –
  • 17. Reduction Transform a problem – reduction of a problem x to y. if we can solve y then we can definitely solve x eg x is as hard as or easier than y: x <=p y  climbing K2 is reducible to climbing mount Everest  Set Partition Problem is reducible to Subset Sum Problem  Hamiltonian Cycle Problem is reducible to Traveling Salesman Problem
  • 18. Reduction  Cook-Levin Theorem: because a computer works on logic gates, ALL NP problems are reducible to Satisfiability Problem (even undiscovered ones)
  • 19. NP-Complete and P != NP  NP-Complete problems – the hardest NP problems. Every NP problem is reducible to NP-Complete. If we could find an algorithm to solve it in P …  Unsolved problem: If NP is a subset of P, then P = NP. Most researchers believe P is a subset of NP.
  • 20. Approximation Algorithms  if NP – best we can do is Heuristics. Better than waiting 400 trillion centuries.  Traveling Salesman Problem approximation: use a Greedy Algorithm: OSPF, Nearest Neighbor  Set Partition Problem approximation: Extreme Pairs – repeat, alternating partitions: pick min & max from source set & place in partition x
  • 21. Even Harder problems  Super-exponential – eg 2^(2^n) (if n=10, need 2^1024 ops), (n!)!  PSPACE (a superset of NP). Demand a polynomial amount of space  eg is there a winning strategy for n x n tic- tac-toe ?  Chess, Checkers, Nim, Go
  • 22. Computing Impossibilities  Q: Can computers recognize art, make moral decisions ? A: Quantification of Aesthetics, Ethics – subjective.  Halting Problem  Incompleteness Theorem
  • 23. Some Definitions Science – language we use to describe & predict the physical & measurable universe Applied Maths – the language of science Logic – the language of reason Epistemology – philosophy of human knowledge & its limits
  • 24. Logic Use symbols to reason about structure of proofs – set up axiom systems to put mathematics on a firm foundation Peano Arithmetic – Axiom system for natural numbers symbolization / arithmetization – conversion between logical symbolic systems and numeric systems
  • 25. Logical Paradoxes input: axioms + assumptions; processing: logical reasoning laws; output: logically unacceptable falsehoods, self-contradictions, nonsensical false facts → jettison assumptions often counterintuitive (eg “space is continuous”) reductio ad absurdum (proof by contradiction)
  • 26. Logical Paradoxes self-referential paradoxes - eg Liar Paradox: “this sentence is false” reduction – infer limitations from other problems reality, science, maths, logic cannot permit contradictions – but our minds & language can: vagueness, jokes
  • 28. The Halting Problem Alan Turing, 1936: proof by contradiction (Liar Paradox) that the Halting Problem is undecidable A limitation of mechanized processes, its not a hard problem, its an impossible problem a computer (or brain ?) cannot determine if a black box program given input x will terminate (with a return code) or enter an infinite loop. Processing …. https://www.youtube.com/watch?v=92WHN- pAFCs
  • 29. Oracle Machines & Turtles imagine a non-mechanical mystic Oracle Machine – the Halt Oracle can solve the Halting Problem – could solve many other unsolved math problems eg Goldbach Conjecture: every positive even number greater than 2 is a sum of 2 primes. (we know this holds up to 10^17) the Halt Oracle searches for a counter- example – if it exists, it can tell if the program will halt. Turing: Halting Problem for Halt Oracle
  • 30. Computers vs Minds Q: Can a human solve the Halting Problem ? A: Kurt Godel , Sir Roger Penrose, Douglas Hofstadfer - consciousness arises from ability to self-reference. Self-Reference in Computers brings paradoxical limitations, while in humans it causes consciousness ???
  • 31. Incompleteness  Kurt Godel – the man who broke Logic  Godel Sentence: “This Logical Statement is Unprovable” → contradiction  1st Incompleteness Theorem – There are logical
  • 32. Incompleteness  If Peano Arithmetic is consistent then the Godel sentence is unprovable and true –> limitation of basic arithmetic: cannot determine when its own statements are true / consistent.  There are stronger
  • 33. Incompleteness  consistency of logical systems at basis of mathematics and science is beyond the bounds of reason!  Note: majority of maths work does not require working with basic axiomatic proofs