Chomsky Hierarchy - Computerphile

Computerphile · Intermediate ·⚡ Algorithms & Data Structures ·10y ago

Key Takeaways

The video explains Chomsky's hierarchy, covering uncomputable to finite state, by Professor Brailsford, with related topics including Turing and the Halting Problem, Ackermann Function, Busy Beaver Turing Machines, and Finite State Automata.

Full Transcript

recently we've had a request saying can computer file do something on finite State autometer and in considering what to do about that um it did seem to me that it would be a good idea to look at where finite State autometer sit in the scheme of things we've done a lot about touring machines for example we've covered the fact that really every single computer of any sort nowadays is a touring machine so what I'd like to do is to uh refer to a diagram which shows if you like the various types of touring machine a hierarchy where as you go inside you make less and less demands on what you need and if you look at this set of circles here I can even relate it back to some of the videos we've done previously you will remember that when we were doing the aan function we eventually decided that it's of the recursive sort which means it will terminate but it could take an awful long time if you remember in leading up to that I said there's a certain sort of touring machine outside that which is a real so and so which says sometimes the algorithm you give me will give an answer and you're happy but sometimes I will go into a loop and when you say how can I detect in general that you're in a loop the answer is you can't and we've done other videos of my colleague Mark jgo all about the halting problem as it's called and then we went one even worse we've been out in the Outer Perimeter of hyperspace here to say are there some problems that are so awful that no algorithm can exist and we did the Busy Beaver if you remember which is for a a sort of encoding of a particular touring machine it says look there's not a general algorithm here I'm not trying to do n factorial what I'm asking is for Machines of this sort can can you predict how many zeros they'll print out and the answer is there isn't an algorithm that can say how do those Busy Beaver PRS behave in general if only there was what you have to do is to run them all and just exhaustively say I don't know there isn't an algorithm just try them what happened after girdle and touring and others in the 1930s did all this is people started to say well these touring machines you know it's wonderful they're a pencil and paper thing but you could imagine building Hardware to do them and of course those are general purpose computers as we now know them but people said is there a sort of subset of touring machines where you can either say it doesn't need more than a definite amount of ram guaranteed that would be nice to know and those come out to be in this Inner Circle of type one here then people start to say hey there's this thing called a pushdown store which the Americans call a stack that's a one-ended memory device you you can't dip into it arbitrarily you can either take something off the top or push something new on the top so any addition or or any reading of your memory can only be done at the top of the stack is that a sort of special case yes it is and we've looked at that with your towers of Hanoi haven't we yes towers of Hanoi is a classic example of something where you just want to get hold of the whole bunch of discs and sort them in your hand like Ram you know just park that one the store that one there think about it put them back together and plun them back on the rod but you can't do that you can only do it one-ended and for something that you know you could I could do that in two or three moves if only I could take all the discs off you end up having to do 64 moves and then there's one right in the middle in this Inner Circle here that needs no memory at all in principle and that's what these finite State autometer are all about you might ask who discovered all this who filled in all these gaps because there we are with churing who perversely discovers the most General thing going in the 1930s but people don't know the simpler story underneath well the person who discovered it is still with us I think he must be in his late 80s now his name is Noam Chomsky and I think my friends say that you ought to pronounce it hsky like the in Lo but I'm happy to be put right on that he's genius NE genius guy I think he's been at U Harvard MIT places like that ever since who was young he really was talented he's a linguisti if you study the structure of natural languages any languages computer languages even I think I'm righted saying you're a linguisti well in the late 1950s he started saying look to understand natural languages better I'm going to look at the most restrictive form of language I can think of you know really simple things how about a language whose words are just strings of the letter I so I I I is a word five eyes I I I I I is a word any number of eyes is a different word how simple can that be yes very simple and then he went on to say things like yeah um what's a bit more complicated than that because those very simple languages as we'll find next time don't need any memory at all they really don't and what's the one that sits outside he didn't more investigations and said ah there is one where a one-ended memory will work yeah these are the Chomsky type two so remember Chomsky it goes as it were the opposite way around type zero is the most General right the recursively innumerables subset of type zero is the recursively enumerables that really do terminate aiman type one is the one where it needs Ram but you can predict how much RAM so he discovered that sort that's the type one touring machines with a predictable and finite amount of ram requirements and he just filled in the whole picture and in the period really from about 1959 to the middle 1970s huge amount of work filling in the middle of this diagram and that includes things like computer languages alol how to pause them how to compile them it was all filled in in the middle of this diagram but all basically referring back to that work that Chomsky did in 1959 saying these are the language varieties or 110 and when you get to 25 I put it inside a double circle which is the convention because that's the finished State you've put in 25p and the thing sort of thinks for a while and eventually goes and prints you out a ticket

Original Description

Uncomputable through to finite state - Professor Brailsford explains Chomsky's hierarchy. Turing and the Halting Problem: https://youtu.be/macM_MtS_w4 "Most Difficult Program" - Ackermann Function: http://youtu.be/i7sm9dzFtEI Busy Beaver Turing Machines: https://youtu.be/CE8UhcyJS0I Finite State Automata: https://youtu.be/vhiiia1_hC4 Reverse Polish & The Stack: https://youtu.be/7ha78yWRDlE Programming in Postscript: https://youtu.be/S_NXz7I5dQc Professor Brailsford's Notes: http://bit.ly/computerphile_Chomsky Professor Brailsford's t-shirt kindly supplied by Peleg Bar Sapir http://www.facebook.com/computerphile https://twitter.com/computer_phile This video was filmed and edited by Sean Riley. Computer Science at the University of Nottingham: http://bit.ly/nottscomputer Computerphile is a sister project to Brady Haran's Numberphile. More at http://www.bradyharan.com
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Computerphile · Computerphile · 0 of 60

← Previous Next →
1 Follow the Cookie Trail - Computerphile
Follow the Cookie Trail - Computerphile
Computerphile
2 EXTRA BITS - Follow the Cookie Trail - Computerphile
EXTRA BITS - Follow the Cookie Trail - Computerphile
Computerphile
3 Musical Floppy Drives - Computerphile
Musical Floppy Drives - Computerphile
Computerphile
4 The Hair Algorithm - Computerphile
The Hair Algorithm - Computerphile
Computerphile
5 Getting Sorted & Big O Notation - Computerphile
Getting Sorted & Big O Notation - Computerphile
Computerphile
6 Quick Sort - Computerphile
Quick Sort - Computerphile
Computerphile
7 Hyper History and Cyber War - Computerphile
Hyper History and Cyber War - Computerphile
Computerphile
8 Entropy in Compression - Computerphile
Entropy in Compression - Computerphile
Computerphile
9 Original Elite on the BBC B - Computerphile
Original Elite on the BBC B - Computerphile
Computerphile
10 IP Addresses and the Internet - Computerphile
IP Addresses and the Internet - Computerphile
Computerphile
11 A Career in Video Games - Computerphile
A Career in Video Games - Computerphile
Computerphile
12 Error Detection and Flipping the Bits - Computerphile
Error Detection and Flipping the Bits - Computerphile
Computerphile
13 Programming BASIC and Sorting - Computerphile
Programming BASIC and Sorting - Computerphile
Computerphile
14 Birthplace of the World Wide Web - Computerphile
Birthplace of the World Wide Web - Computerphile
Computerphile
15 Punch Card Programming - Computerphile
Punch Card Programming - Computerphile
Computerphile
16 Programming Paradigms - Computerphile
Programming Paradigms - Computerphile
Computerphile
17 CERN Computing Centre (and mouse farm) - Computerphile
CERN Computing Centre (and mouse farm) - Computerphile
Computerphile
18 Error Correction - Computerphile
Error Correction - Computerphile
Computerphile
19 Home-Made Code - Computerphile
Home-Made Code - Computerphile
Computerphile
20 Security of Data on Disk - Computerphile
Security of Data on Disk - Computerphile
Computerphile
21 Gesture Controls - Computerphile
Gesture Controls - Computerphile
Computerphile
22 How Intelligent is Artificial Intelligence? - Computerphile
How Intelligent is Artificial Intelligence? - Computerphile
Computerphile
23 Encryption and Security Agencies - Computerphile
Encryption and Security Agencies - Computerphile
Computerphile
24 Virtual Machines Power the Cloud - Computerphile
Virtual Machines Power the Cloud - Computerphile
Computerphile
25 Hacking Websites with SQL Injection - Computerphile
Hacking Websites with SQL Injection - Computerphile
Computerphile
26 How Huffman Trees Work - Computerphile
How Huffman Trees Work - Computerphile
Computerphile
27 Cracking Websites with Cross Site Scripting - Computerphile
Cracking Websites with Cross Site Scripting - Computerphile
Computerphile
28 Cloud Computing (Cloudy with a Chance of Pizza) - Computerphile
Cloud Computing (Cloudy with a Chance of Pizza) - Computerphile
Computerphile
29 Texting Cabbage with a Recorder - Computerphile
Texting Cabbage with a Recorder - Computerphile
Computerphile
30 Hashing Algorithms and Security - Computerphile
Hashing Algorithms and Security - Computerphile
Computerphile
31 How YouTube Works - Computerphile
How YouTube Works - Computerphile
Computerphile
32 How NOT to Store Passwords! - Computerphile
How NOT to Store Passwords! - Computerphile
Computerphile
33 A New Golden Age of Video Games - Computerphile
A New Golden Age of Video Games - Computerphile
Computerphile
34 A Universe of Triangles - Computerphile
A Universe of Triangles - Computerphile
Computerphile
35 Cross Site Request Forgery - Computerphile
Cross Site Request Forgery - Computerphile
Computerphile
36 The True Power of the Matrix (Transformations in Graphics) - Computerphile
The True Power of the Matrix (Transformations in Graphics) - Computerphile
Computerphile
37 The Great 202 Jailbreak - Computerphile
The Great 202 Jailbreak - Computerphile
Computerphile
38 EXTRA BITS - Printing and Typesetting History - Computerphile
EXTRA BITS - Printing and Typesetting History - Computerphile
Computerphile
39 Triangles to Pixels - Computerphile
Triangles to Pixels - Computerphile
Computerphile
40 The Problem with Time & Timezones - Computerphile
The Problem with Time & Timezones - Computerphile
Computerphile
41 The Visibility Problem - Computerphile
The Visibility Problem - Computerphile
Computerphile
42 Lights and Shadows in Graphics - Computerphile
Lights and Shadows in Graphics - Computerphile
Computerphile
43 The Penguin Barcode - Computerphile
The Penguin Barcode - Computerphile
Computerphile
44 Typesetters in the '80s - Computerphile
Typesetters in the '80s - Computerphile
Computerphile
45 The Font Magicians - Computerphile
The Font Magicians - Computerphile
Computerphile
46 The Little Mac with the Big Bite - Computerphile
The Little Mac with the Big Bite - Computerphile
Computerphile
47 EXTRA BITS - More on the Original Mac at 30 - Computerphile
EXTRA BITS - More on the Original Mac at 30 - Computerphile
Computerphile
48 XP to Ubuntu with an 8yr old Hacktop - Computerphile
XP to Ubuntu with an 8yr old Hacktop - Computerphile
Computerphile
49 EXTRA BITS - Hacktop Real-Time Boot Comparison - Computerphile
EXTRA BITS - Hacktop Real-Time Boot Comparison - Computerphile
Computerphile
50 EXTRA BITS - Making a Bootable USB in Linux - Computerphile
EXTRA BITS - Making a Bootable USB in Linux - Computerphile
Computerphile
51 EXTRA BITS - Installing Ubuntu Permanently - Computerphile
EXTRA BITS - Installing Ubuntu Permanently - Computerphile
Computerphile
52 The Dawn of Desktop Publishing - Computerphile
The Dawn of Desktop Publishing - Computerphile
Computerphile
53 What is Bootstrapping? - Computerphile
What is Bootstrapping? - Computerphile
Computerphile
54 Reverse Polish Notation and The Stack - Computerphile
Reverse Polish Notation and The Stack - Computerphile
Computerphile
55 Home-Made Z80 Retro Computer - Computerphile
Home-Made Z80 Retro Computer - Computerphile
Computerphile
56 Should Everybody Learn to Code? - Computerphile
Should Everybody Learn to Code? - Computerphile
Computerphile
57 Programming in PostScript - Computerphile
Programming in PostScript - Computerphile
Computerphile
58 Heartbleed, Running the Code - Computerphile
Heartbleed, Running the Code - Computerphile
Computerphile
59 YouTube's Secret Algorithm - Computerphile
YouTube's Secret Algorithm - Computerphile
Computerphile
60 YouTube Search & Discovery - Computerphile
YouTube Search & Discovery - Computerphile
Computerphile

This video teaches the fundamentals of Chomsky's hierarchy, a crucial concept in formal language theory, and explores related topics in computability theory and automata theory. By watching this video, viewers will gain a deeper understanding of the limitations and capabilities of different types of automata. The video is part of a series on computer science topics, including programming, algorithms, and data structures.

Key Takeaways
  1. Watch the video on Chomsky Hierarchy
  2. Read Professor Brailsford's notes on the topic
  3. Explore related videos on Turing and the Halting Problem, Ackermann Function, and Busy Beaver Turing Machines
  4. Implement a simple Finite State Automaton
  5. Analyze the limitations of different types of automata
💡 Chomsky's hierarchy provides a framework for understanding the relationships between different types of automata and their capabilities, from uncomputable to finite state.

Related AI Lessons

Bloom Filters, Explained Properly
Learn how Bloom filters work and their benefits, including tiny memory and blazing speed, in exchange for potential false positives.
Dev.to · Daksh Gargas
Prefix Sums: The Preprocessing Trick That Makes Range Queries Instant
Learn how prefix sums enable instant range queries in arrays, boosting performance in various applications
Medium · Programming
I Thought I Was Ready for the Interview — Then One Simple Math Question Destroyed Me
A simple math question can destroy a developer's interview, highlighting the importance of being prepared for unexpected questions
Medium · Programming
Week 2(Day 10): LeetCode Two Pointers(slow & fast): Remove Duplicates from Sorted Array (Brute…
Learn to remove duplicates from a sorted array using the two pointers technique, improving from brute force to optimized solutions
Medium · Python
Up next
Stump Grinder Carbide Wheel Grinds Hardwood To Chips
Innoforge Studio
Watch →