SlideShare a Scribd company logo
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 Randomness
Hector Zenil
 
NP completeness
NP completenessNP completeness
NP completeness
Amrinder Arora
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
NagendraK18
 
LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013LMI BMI UFO Presentation 2013
LMI BMI UFO Presentation 2013
mikhailkonnik
 
Fractal dimension versus Computational Complexity
Fractal dimension versus Computational ComplexityFractal dimension versus Computational Complexity
Fractal dimension versus Computational Complexity
Hector 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 learning
Yujiro Katagiri
 
P vs NP
P vs NP P vs NP
P vs NP
Mikel Qafa
 
lecture 30
lecture 30lecture 30
lecture 30sajinsc
 
06 recurrent neural_networks
06 recurrent neural_networks06 recurrent neural_networks
06 recurrent neural_networks
Andres Mendez-Vazquez
 
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
 
Batchal slides
Batchal slidesBatchal slides
Batchal slides
Olivier Teytaud
 

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
 

Similar to The Limits of Computation

Introduction
IntroductionIntroduction
Introduction
Gopi Saiteja
 
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
Jyotsna 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 Learn
Billie Rose
 
Theory of games
Theory of gamesTheory of games
Theory of games
Olivier Teytaud
 
2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練
Abner Huang
 
NP-Completeness - II
NP-Completeness - IINP-Completeness - II
NP-Completeness - II
Amrinder Arora
 
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
 
Uncertainties in large scale power systems
Uncertainties in large scale power systemsUncertainties in large scale power systems
Uncertainties in large scale power systems
Olivier Teytaud
 
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
Olivier Teytaud
 
A note on word embedding
A note on word embeddingA note on word embedding
A note on word embedding
Khang Pham
 
Teori pnp
Teori pnpTeori 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 ?
Ahmed Saeed
 
lecture 27
lecture 27lecture 27
lecture 27sajinsc
 
class23.ppt
class23.pptclass23.ppt
class23.ppt
AjayPratap828815
 
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 Programming
Raphael Reitzig
 

Similar to The 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
 
Uncertainties in large scale power systems
Uncertainties in large scale power systemsUncertainties in large scale power systems
Uncertainties in large scale power systems
 
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
 
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

Lab report on liquid viscosity of glycerin
Lab report on liquid viscosity of glycerinLab report on liquid viscosity of glycerin
Lab report on liquid viscosity of glycerin
ossaicprecious19
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
Richard Gill
 
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
Areesha Ahmad
 
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
ssuserbfdca9
 
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
NathanBaughman3
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
AlaminAfendy1
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
IqrimaNabilatulhusni
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
AADYARAJPANDEY1
 
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Ana Luísa Pinho
 
in vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptxin vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptx
yusufzako14
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
ChetanK57
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
pablovgd
 
filosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptxfilosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptx
IvanMallco1
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
Nistarini College, Purulia (W.B) India
 
Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
Richard Gill
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Sérgio Sacani
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
Lokesh Patil
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
sachin783648
 
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SELF-EXPLANATORY
 

Recently uploaded (20)

Lab report on liquid viscosity of glycerin
Lab report on liquid viscosity of glycerinLab report on liquid viscosity of glycerin
Lab report on liquid viscosity of glycerin
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
 
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
 
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
 
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
Astronomy Update- Curiosity’s exploration of Mars _ Local Briefs _ leadertele...
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
 
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
 
in vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptxin vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptx
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
 
filosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptxfilosofia boliviana introducción jsjdjd.pptx
filosofia boliviana introducción jsjdjd.pptx
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
 
Richard's entangled aventures in wonderland
Richard's entangled aventures in wonderlandRichard's entangled aventures in wonderland
Richard's entangled aventures in wonderland
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
 
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
 

The 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