- 10
- 794 123
lydia
เข้าร่วมเมื่อ 21 เม.ย. 2020
I make videos about computer science sometimes!
Undecidable Problems: Reducibility (Part 2) | A Sample Reduction
To show that the Truth Problem is undecidable, we reduce the Halting Problem to the Truth Problem. In this video, we show the complete reduction. Also, if you use Michael Sipser's Introduction to the Theory of Computation textbook, then the Truth Problem is actually A_TM (defined in chapter 4.2 on page 174 in the 2nd edition).
Here is the proof and reduction in writing (I use 'machine' below, but 'program' means the same thing):
Truth Problem: "Can we build a machine that determines if another machine returns true?"
Halting Problem: "Can we build a machine that determines if another machine halts?"
****** PROOF ******
Suppose T decides the Truth Problem. We define H as follows:
Let H = "On input ❮M❯, where M is a machine:
1. Run T on input ❮M❯.
2. If T returns true, return true and exit. If T returns false, continue to step 3.
3. Construct M’ as follows:
M’ = “On input y:
1. Run machine M on y.
2. If M returns true, return false and exit. If M returns false, return true and exit.”
4. Run T on ❮M'❯ and return what T returns.
If T decides the Truth Problem, then H decides the Halting Problem. But this contradicts the fact that the Halting Problem is undecidable. Therefore, the Truth Problem is undecidable.
****** END PROOF ******
Note: In step 3 of the proof above, I said in the video that we change input ❮M❯. However, in a formal proof, we simply construct a new machine that returns the opposite of what M returns.
To summarize reductions:
1. We can use reductions to show that a problem is unsolvable or undecidable.
2. If problem A reduces to problem B, and problem A is undecidable, then problem B must be undecidable. However, if problem B is decidable, then problem A is decidable.
3. To prove that a problem is unsolvable through a reduction:
i. Find another unsolvable problem A.
ii. Claim that you can reduce problem A to the problem you are trying to show is unsolvable.
iii. Show the complete reduction.
iv. State that the reduction results in a contradiction, since the problem A cannot be solved.
____________________
Additional resources:
th-cam.com/video/U4yGQp5aCTM/w-d-xo.html
- Previous video (part 1) on reductions.
th-cam.com/video/VyHbd6sx5Po/w-d-xo.html
- My previous video on the Halting Problem, a well known undecidable problem.
Michael Sipser. 2006. Introduction to the Theory of Computation (2nd. ed.). International Thomson Publishing.
- The main source of my Theory of Computation knowledge (a textbook). Read Chapter 5: Reducibility to learn more about reducibility and how a formal proof would look like.
_____________________
And as always, this video project could not have been done without the support and guidance of Audrey St. John at Mount Holyoke College, a truly incredible professor-mentor-human.
Here is the proof and reduction in writing (I use 'machine' below, but 'program' means the same thing):
Truth Problem: "Can we build a machine that determines if another machine returns true?"
Halting Problem: "Can we build a machine that determines if another machine halts?"
****** PROOF ******
Suppose T decides the Truth Problem. We define H as follows:
Let H = "On input ❮M❯, where M is a machine:
1. Run T on input ❮M❯.
2. If T returns true, return true and exit. If T returns false, continue to step 3.
3. Construct M’ as follows:
M’ = “On input y:
1. Run machine M on y.
2. If M returns true, return false and exit. If M returns false, return true and exit.”
4. Run T on ❮M'❯ and return what T returns.
If T decides the Truth Problem, then H decides the Halting Problem. But this contradicts the fact that the Halting Problem is undecidable. Therefore, the Truth Problem is undecidable.
****** END PROOF ******
Note: In step 3 of the proof above, I said in the video that we change input ❮M❯. However, in a formal proof, we simply construct a new machine that returns the opposite of what M returns.
To summarize reductions:
1. We can use reductions to show that a problem is unsolvable or undecidable.
2. If problem A reduces to problem B, and problem A is undecidable, then problem B must be undecidable. However, if problem B is decidable, then problem A is decidable.
3. To prove that a problem is unsolvable through a reduction:
i. Find another unsolvable problem A.
ii. Claim that you can reduce problem A to the problem you are trying to show is unsolvable.
iii. Show the complete reduction.
iv. State that the reduction results in a contradiction, since the problem A cannot be solved.
____________________
Additional resources:
th-cam.com/video/U4yGQp5aCTM/w-d-xo.html
- Previous video (part 1) on reductions.
th-cam.com/video/VyHbd6sx5Po/w-d-xo.html
- My previous video on the Halting Problem, a well known undecidable problem.
Michael Sipser. 2006. Introduction to the Theory of Computation (2nd. ed.). International Thomson Publishing.
- The main source of my Theory of Computation knowledge (a textbook). Read Chapter 5: Reducibility to learn more about reducibility and how a formal proof would look like.
_____________________
And as always, this video project could not have been done without the support and guidance of Audrey St. John at Mount Holyoke College, a truly incredible professor-mentor-human.
มุมมอง: 36 276
วีดีโอ
Undecidable Problems: Reducibility (Part 1) | What are Reductions?
มุมมอง 50K3 ปีที่แล้ว
A reduction is when we view a problem as another, and by solving the new problem, we solve our initial problem. For example, we may reduce our problem of getting around a new city, to the problem of finding a map of the city; by finding a map, we solve our initial problem of finding our way. We use reductions in computer science to prove that some problems are undecidable or unsolvable. Reducti...
Nonregular languages: How to use the Pumping Lemma
มุมมอง 88K4 ปีที่แล้ว
We know that all regular languages must satisfy the pumping lemma. This means we can use the pumping lemma to prove that a language is NOT regular by showing that it does NOT satisfy the pumping lemma. This video provides a little more intuition for how such a proof works. If you aren't yet familiar with what exactly the pumping lemma is, check this video out first: th-cam.com/video/qtnNyUlO6vU...
What is the Pumping Lemma
มุมมอง 132K4 ปีที่แล้ว
Every regular language must satisfy the pumping lemma. The formal statement of the pumping lemma is this: If A is a regular language, then there is a pumping length p, where if s is any string in A that is at least length p, then s may be divided into 3 pieces, s = xyz, satisfying the following conditions: 1. for each i ≥ 0, xyⁱz ∈ A 2. |y|﹥0 3. |xy| ≤ p The lemma can be a little tricky to unde...
Regular Operations
มุมมอง 24K4 ปีที่แล้ว
The three regular operations are the union, concatenation, and star operations on languages-the video goes through what exactly that means! You should feel comfortable with regular languages and the operations, as well as NFAs and DFAs before watching this video. If not, you could always watch our previous videos (links below) as review. :) Additional resources: th-cam.com/video/miOofcAiINM/w-d...
The Halting Problem: The Unsolvable Problem
มุมมอง 152K4 ปีที่แล้ว
One of the most influential problems and proofs in computer science, first introduced and proved impossible to solve by Alan Turing. The video provides the idea of this incredibly clever proof. I highly recommend anyone who is comfortable with mathematical proofs to read the formal proof to the problem (look at additional resources below for information). Also, the video does not cover this, bu...
Regular Languages: Nondeterministic Finite Automaton (NFA)
มุมมอง 65K4 ปีที่แล้ว
How are nondeterministic finite automata (NFAs) different from DFAs? This video provides an introduction to NFAs, also one of the simple computational models and another kind of finite state machine. Additional resources: th-cam.com/video/PK3wL7DXuuw/w-d-xo.html - My previous video on finite state machines and DFAs. Understanding what finite state machines are exactly will be very helpful in le...
Regular Languages: Deterministic Finite Automaton (DFA)
มุมมอง 107K4 ปีที่แล้ว
The finite state machine (also known as finite automaton) is the simplest computational model. This video covers the basics of finite state machines, and provides an introduction to deterministic finite automata (DFAs) and regular languages. Additional resources: th-cam.com/video/miOofcAiINM/w-d-xo.html - My previous video on languages. I recommend watching it before this video. Michael Sipser....
Introduction to Languages, Strings, and Operations
มุมมอง 32K4 ปีที่แล้ว
An introduction to languages, strings, and operations-core concepts to building machines in theory of computation. Additional resources: Michael Sipser. 2006. Introduction to the Theory of Computation (2nd. ed.). International Thomson Publishing. - The main source of my Theory of Computation knowledge (a textbook). I suggest looking at chapter 0.2: Mathematical Notions and Terminology if you wo...
Why study theory of computation?
มุมมอง 109K4 ปีที่แล้ว
What exactly are computers? What are the limits of computing and all its exciting discoveries? Are there problems in the world that computers can never, EVER solve? Theory of computation is the fascinating theoretical study of computer science that explores the limitations of computing-which, of course, anyone can learn. :) Additional resources: Michael Sipser. 2006. Introduction to the Theory ...
Thank you sooo much , I was suffering to understand this point and when I watch your video I understand it immediately ❤
Thank you so much for putting effort into making this. You're amazing.
So chill I like the content👍🏿
Noooooo lydia !!! Don't leave us alone
Thanks for making halting problem so cute
woahh this was awesome!!!!
lol i love the doodles, so helpful! thanks!
Better than sermutlu guy on TH-cam but taylant is great
i am watching this like 30 minutes before my quiz and what was i doing love it so much easier
good video, loved the animationkk
this was awesome genuinely
please come back :(
can u suggest some really good books to get notes on this topic?
OMG loved your video!! thanks a lot
Simple and to the point! Does anyone know how we settle on the pumping length p?
You saved my life within 5 minutes.
Thank you so much
BEST FREAKIN' EXPLENATION IN THE WORLD, THANK YOU SO SO SO MUCH <3
Clear and concise ! Quite understandable even for me! Thanks!
<3 Awesome explanation and ilustrations!!!
This explanation is two good🤌🏾
I rewatch all your videos before each of my formal logic assignments. Thanks so much for these
Did this lady just explain the 45 mins. lecture I've been studying?!
Thanks for this ❤
Wow this was the simplest yet most interesting and helpful video explanation!!
impressive video, Gave a great context. You deserve subscription
queen
What if someone says "I always lie"? Do you think that person is being honest?
If that statement is true, then it's true that "I always lie" is a lie, which is a paradox. If that statement is false, then "I don't always lie" must be true. It doesn't necessarily mean that they always tell the truth, just that they don't lie all the time. No paradox there. So logically, anyone who says "I always lie" must be lying.
Thank you !
Klein Ranch
Schiller Divide
Is there any Language L such that L is not regular but L^2 is regular?
Thank you Lydia!
885 Desmond Forges
Stokes Cape
You explain it way better than my college professors who we have to give $1,000 too to teach us.
Rohan Mission
Bechtelar Drives
I don't know what field of math this is, but it's interesting. Can't help thinking about pumping though. Thanks
This is wrong, H can't be wrong by definition. What would happen is that H would loop, forcing D into a true loop.
H by definition cannot get stuck, it must output. So your case isn't a possible situation. Also, the very thing that makes H wrong is its own existence, so it's impossible for H to never be wrong. It was just our assumption, which is false.
Johnson Amy Moore Jennifer Clark Margaret
Feeney Mountains
Conroy Route
9150 Armstrong Locks
362 Bahringer Manors
Thank u smmmmm!!!!!! I was gonna drop the class until I found ur chennel
Davis Helen Young Charles Jones Brenda
Ari Estates
315 Alycia Crest
47797 Johann Harbor