Regular expressions as finite automata

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 115

  • @supermage8026
    @supermage8026 26 днів тому +44

    I just wanted to express how lucky we are to have someone like you doing this!
    It's rare to find such good explanations of computer science and mathematical concepts these days.

  • @flippert0
    @flippert0 День тому

    Of course many people know how to use regexes (every programmer _must_ know them), but few peope actually can build a regex engine. I knew about DFAs and NFAs but your lecture enables me to actually build one of my own (for fun and giggles). Thanks!

  • @justinbrady2900
    @justinbrady2900 26 днів тому +23

    This took a whole semester to grok back in 2000.
    Concise explanation.

  • @chriskindler10
    @chriskindler10 26 днів тому +16

    this channel has by far become my favourite with regards to programming :)

  • @VictorMantovani
    @VictorMantovani 26 днів тому +6

    tks youtube algorithm for recommending this amazing channel

  • @mehrdadkhorasani6009
    @mehrdadkhorasani6009 26 днів тому +4

    This channel is truly one of the best of our time, deserving of recognition and appreciation.

  • @esra_erimez
    @esra_erimez 26 днів тому +6

    5:40 what follows is one of the most brillant insights and explanations in computer science. You are most impressive.

  • @maxmustermann5590
    @maxmustermann5590 23 дні тому +4

    Man I just dived into the rabbit whole of büchli automata a couple of days ago and then you drop this masterpiece. Thank you!!

  • @randomsearches369
    @randomsearches369 26 днів тому +11

    We love you, Kay!

  • @Dan-km8zy
    @Dan-km8zy 26 днів тому +8

    Love your presentation and video editing style. Thanks for everything

  • @jimwiley9275
    @jimwiley9275 25 днів тому +2

    Really enjoyed this one...
    Please never stop making these!

  • @rafaelfreire3792
    @rafaelfreire3792 26 днів тому +4

    What a pleasant surprise! Thank you so much for these videos

  • @404willum
    @404willum 26 днів тому +1

    Less than 3 minutes in and this is already a banger, thanks for the hard work !

  • @moormoor4281
    @moormoor4281 26 днів тому +10

    Thanking you most kindly from English England

  • @Paul_ABC
    @Paul_ABC 23 дні тому +1

    Content quality is amazing. You're spoiling us

  • @davidebiondani3062
    @davidebiondani3062 26 днів тому +5

    Maybe the best channel on UA-cam, amazing

  • @supercompooper
    @supercompooper 26 днів тому +2

    I remember this in my first year university courses. We had to write code that would convert the NDFA to a DFA 😊 takes me back

  • @ElaineParra
    @ElaineParra 21 день тому

    Hey Kay I am happy we have you as reference and mentor in this journey learning programming and diving in such fundamentals in CS. What in couple of months was really challenging with discipline, effort, motivation and love for the things you like to do at the end we overcome any obstacle! Love for the 0de5

  • @amichelis
    @amichelis 26 днів тому +3

    This video encapsulates so well part of what I'm trying to make right now... I'm in awe!
    Can't wait for the next one!
    (context: I'm in the process of creating a lexer-parser duo, tailored for educational purposes. It'll take the user through a step-by-step visual journey of how lexing and parsing work, enabling educators to better explain the inner workings of a compiler... Still in very early stages, only parsing is implemented currently... Wish me luck :') )

  • @3ombieautopilot
    @3ombieautopilot 26 днів тому +2

    Thank you for making these. Such a rare gem.

  • @barcellos-pedro
    @barcellos-pedro 24 дні тому +2

    Wow, you are amazing! Thanks for making this video!

  • @Vukleidon
    @Vukleidon 26 днів тому +1

    Had me worried that you gave up on the project. Honestly I have to say over the past few weeks, this channel has become one of my favorites. I really hope you will keep on doing the great work!!!

  • @esra_erimez
    @esra_erimez 26 днів тому +8

    Fun fact: Regular expressions were invented by Stephen Kleene. They were later popularized by Ken Thompson when he wrote the "ed" editor for Unix.
    Edit: I wrote this before I saw you had it in your video, once again you continue to impress.

  • @jaketrzcinski8141
    @jaketrzcinski8141 21 день тому

    Another banger, Queen! Thanks for putting this together so eloquently!

  • @user-cg8ez7dz9l
    @user-cg8ez7dz9l 12 днів тому

    Your videos are actually excellent! This has made me a big fan

  • @Shdnfncidjen
    @Shdnfncidjen 24 дні тому +1

    Cheers and thanks for sharing! Loving your videos!

  • @justinbrady2900
    @justinbrady2900 26 днів тому +4

    These are the data structures we use for fast pattern matching on firewalls when scanning for malware and intrustions too, with some optimizations.
    At some point of growing the memory backing them got to hundreds of MB, scouts honor. We got yelled at.

  • @klirmio21
    @klirmio21 26 днів тому +1

    Noam Chomsky, a linguist and still got influence in Computer Science world. Insane!

  • @Googleguy-1
    @Googleguy-1 26 днів тому +3

    new video yay, your videos are amazing!!!

  • @Caracuan12
    @Caracuan12 26 днів тому

    Excellent video, thanks for the detailed explanation.

  • @br3nto
    @br3nto 26 днів тому

    Great video! I wish they had taught automata like this at uni

  • @y9tw0t
    @y9tw0t 26 днів тому

    Another banger. Love your way of going through shit! Already eagerly anticipating your next vid -whatever it may be about.

  • @moormoor4281
    @moormoor4281 26 днів тому +45

    Im listening

  • @Sami_K99
    @Sami_K99 26 днів тому +2

    Heyyy, long time no see, thanks for the vid ✨

  • @AlberTesla1024
    @AlberTesla1024 26 днів тому +1

    What a coincidence, i learnt FSM and state pattern. Thanks btw.

  • @ethanweller3013
    @ethanweller3013 25 днів тому

    This series is wonderful. It would be nice to have the playlist for it start with the intro and go down from there, would be much easier to watch that way.

  • @br3nto
    @br3nto 26 днів тому +2

    Totally pronounced RegEx, Reg as is in Reginald because it rolls off the tongue better! Or even ReJex. It’s got good mouth feel and ear feel.

  • @joe_hoeller_chicago
    @joe_hoeller_chicago 26 днів тому

    What a great video-thank you!!!❤

  • @alexibnz
    @alexibnz 21 день тому

    to quote people on other social networks: am I on UA-cam Premium?
    Absolutely amazing video

  • @isaacalves6846
    @isaacalves6846 26 днів тому +3

    Hey, I'm studying finite automata in college right now!

    • @TWinKIeAssasN
      @TWinKIeAssasN 26 днів тому

      I took compilers and automata theory last semester and it was hell 😭 that class took over my life for that whole semester

    • @bt64u30
      @bt64u30 26 днів тому

      +1

  • @JinKee
    @JinKee 26 днів тому

    I remember learning lex and yacc back in my compiler design course. I was so proud of barely scraping by on a pass, the only person who got a HD did it by failing three subjects and his girlfriend left him.

  • @programmer1356
    @programmer1356 26 днів тому

    As usual, great stuff. Klaynee always gets me too - waaaay back we only had books and had to make up pronunciation (Runge ouch).

  • @thebirdhasbeencharged
    @thebirdhasbeencharged 26 днів тому

    The videos are getting cleaner and cleaner

  • @cruzg3dev
    @cruzg3dev 25 днів тому

    Oh my!!! This is so gooood! Thanks!!!

  • @emir5146
    @emir5146 26 днів тому +1

    Omg so thanks because that is what i need.

  • @iamblue8272
    @iamblue8272 24 дні тому

    This remember me a code wars challenge : "Regular Expression - Check if divisible by 0b111 (7)" where i had to convert a DFA into a regex. Spent hour trying on paper and never finished this kata

  • @MalikMehsi
    @MalikMehsi 26 днів тому

    Wish i would've had videos like these when i took my theoretical computer science class... Shit was brutal

  • @fudencio
    @fudencio 26 днів тому +1

    amazing video.

  • @deryilz
    @deryilz День тому

    great video!

  • @Brice23
    @Brice23 26 днів тому +1

    Takes me back to 2018, my first semester in computer science..

  • @DeepVoiceSatish
    @DeepVoiceSatish 26 днів тому +1

    Thanks for providing

  • @cincooitodois
    @cincooitodois 25 днів тому

    youre da best, kay!

  • @WhizPill
    @WhizPill 18 днів тому

    Interesting channel

  • @flippert0
    @flippert0 День тому

    Wasn't aware about the "Clean" vs "Clay-Knee" controversy. Seemingly (or according to his son Ken Kleene), Stephen C. Kleene invented this peculiar pronunciation of his name all by his own. One remark about 'automata', though. It's a plural for 'automaton'. So it's 'several automata' but 'one automaton'.

  • @LeonMerk123
    @LeonMerk123 26 днів тому

    Amazing video

  • @martinsanchez-hw4fi
    @martinsanchez-hw4fi 26 днів тому

    It would be nice to have a video on the lexic analysiss a compiler does

  • @Zaniahiononzenbei
    @Zaniahiononzenbei 26 днів тому

    I thoroughly hope you dig into the irregular expressions. :( they make me sad. They are nice features to have on occasion, but I think its beauty is someahat like C's beauty. By pushing some useful features out of scope we end up with a tool that is more obviously the right or wrong tool at a given time. C did this with the preprocessor, calling conventions, dynamic dependencies, and symantics for threading. They're all externally defined, and they're all hard problems that need to be solved. There's a lot in regex libraries that feels like its a cool tool, but it feels weird that its there.

  • @SnuffPuppyLexy
    @SnuffPuppyLexy 26 днів тому

    Thank you so much

  • @lterego
    @lterego 25 днів тому

    A lot and very good content in such a short clip. Just a nitpick: at 19:46 "any_char" creeps in instead of "single_char"... some tests work just because the string length are the same as for correct strings (and what should be incorrect strings).

  • @unbearablepun8608
    @unbearablepun8608 26 днів тому

    This would’ve been so helpful a semester ago 😭

  • @jarno4054
    @jarno4054 26 днів тому

    Half of my semester in 30 minutes 🙏

  • @demerzel3333
    @demerzel3333 26 днів тому

    great content, this has way less views than it deserves

  • @raelwert2344
    @raelwert2344 25 днів тому

    Love your channel! Let me know if you are still looking for a copy of regular expressions and state graphs!

  • @bananaear23
    @bananaear23 26 днів тому

    Ur back wohooo

  • @mo938
    @mo938 24 дні тому

    You’re so smart! Makes me feel dumb lol

  • @joel.9543
    @joel.9543 7 днів тому

    Nice video!
    I have some technical questions:
    What do you use to make animations?
    What video editor do you use?

  • @SimGunther
    @SimGunther 26 днів тому

    Simply put, regex needs to be transformed into an NFA before that turns into a DFA that can simplified and transformed into a table driven automaton for those nice tight loops in code 😊

    • @JayDee-b5u
      @JayDee-b5u 25 днів тому

      I think I have an implementation that doesn't require shunting yard nor dfa/nfa. A simple pratt parser and binary (and unary) tree is all that is needed. :)

  • @imlemonth
    @imlemonth 26 днів тому

    This makes me wanna do it myself in python 😅

  • @ForsakenDAemon
    @ForsakenDAemon 20 годин тому

    Not sure whether you’ve managed to get hold of it otherwise, but just flicked you a copy of McNaughton and Yamada (1960) for educational purposes!

  • @Justhere369
    @Justhere369 3 години тому

    Hey Kay, nice video , please what is the name of the software you are using ? ..... Is it JFlap

  • @Satyam1010-N
    @Satyam1010-N 26 днів тому

    Happy deepawali light a candle lamps (100+)at main house , may the light remove all kind of darknes self doubt bad habits bad thoughts , your life lights up , happy deepawali Kay

  • @ngideo
    @ngideo 26 днів тому

    Languages! Now we're cookin'!

  • @brulsmurf
    @brulsmurf 26 днів тому

    @6:00 I felt nothing but the void within.

  • @ponirvea
    @ponirvea 26 днів тому

    great video! i think you forgot a cut around 15:32

  • @eterr9000
    @eterr9000 26 днів тому

    I recently learned about LISP Scheme and I am noticing something that looks like Scheme expression 👀

  • @zweitekonto9654
    @zweitekonto9654 2 дні тому

    the code highlighting lacks a bit of contrast which makes it difficult to read.

  • @josephlagrange9531
    @josephlagrange9531 26 днів тому

    Hi, Kay!

  • @ДаниилИмани
    @ДаниилИмани 11 днів тому

    Please, rearrange the ODE5 megalist in chronological order

    • @neoeno4242
      @neoeno4242  10 днів тому +1

      Have now done - apologies, I thought that was a viewer-setting but I now realise it is mine!

  • @peterbann4759
    @peterbann4759 26 днів тому

    I think they are included in Python (I'm learning Python)

  • @Truth-p7c
    @Truth-p7c 25 днів тому

    Wow

  • @chrisleon27
    @chrisleon27 24 дні тому

    Cellular automata

  • @whtiequillBj
    @whtiequillBj 17 днів тому

    your 0DE5 playlist is backwards

  • @painfullyhuman
    @painfullyhuman 26 днів тому +1

    taking theory of automata and computability soon so this is good

  • @starlonga
    @starlonga 26 днів тому

    I pronounced it as «Clean» (Klenee)

  • @zenkira_
    @zenkira_ 19 днів тому

    holy graph

  • @ahmedAltariqi
    @ahmedAltariqi 26 днів тому

    What tool you used to make the slides?

  • @eduardrieraraurell3328
    @eduardrieraraurell3328 24 дні тому

    the regular expression for even number of a's should be (h*ah*ah*)* isn't it?

  • @Johnmoe_
    @Johnmoe_ 25 днів тому

    I see regex I click 😊

  • @kevinbatdorf
    @kevinbatdorf 26 днів тому

    Where is chapter 1?

  • @harshcurious
    @harshcurious 6 годин тому

    You should have turned ‘haha’ to ‘huh’ later 😂

  • @emilien.breton
    @emilien.breton 2 дні тому

    automaton. it's automaton. "automata" is plural

  • @ProgrammingRainbow
    @ProgrammingRainbow 21 день тому

    Thanks for making me feel like the grug brain. The whole time youre talking about regex and with the diagrams all im hearing is Category Theory. Wondering if this is turning into a haskell video. And then think its funny to equate recursion to a turing machine? Not lambada Calculus. Im going to have to watch a couple times to get my 🧠 to understand this all.

  • @illegalsmirf
    @illegalsmirf 26 днів тому

    Hiya hun! I love regular expressions, just wish I was intelligent enough to understand them 🍆

  • @KTLO-m8p
    @KTLO-m8p 26 днів тому

    What’s the link to the membership only site?

  • @ralffig3297
    @ralffig3297 22 дні тому +1

    My brain is confused. I see one thing but hear another.

  • @demerzel3333
    @demerzel3333 26 днів тому +1

    🏺🦵

  • @QW3RTYUU
    @QW3RTYUU 18 днів тому

    F lifting

  • @nskazki
    @nskazki 15 днів тому

    /^ha+(ha+)*h$/

    • @nskazki
      @nskazki 15 днів тому +1

      Then I saw the author’s answer and was blown by how I couldn’t see the obvious repetition of the “ha+” pattern. Neat

  • @Microphunktv-jb3kj
    @Microphunktv-jb3kj 26 днів тому

    why are they called regular expressions.,..
    is there irregular expressions? :D