The Math Needed for Computer Science (Part 2) | Number Theory and Cryptography

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 เม.ย. 2018
  • STEMerch Store: stemerch.com/
    If you missed part 1: • The Math Needed for Co...
    Support the Channel: / zachstar
    PayPal(one time donation): www.paypal.me/ZachStarYT
    Instagram: / zachstar
    Twitter: / imzachstar
    Join Facebook Group: / majorprep
    ►Check out the MajorPrep Amazon Store: www.amazon.com/shop/zachstar

ความคิดเห็น • 221

  • @zachstar
    @zachstar  5 ปีที่แล้ว +112

    Hey guys, since this I made a more updated video on number theory and how it's used in cryptography.
    Mathematics of Cryptography: th-cam.com/video/uNzaMrcuTM0/w-d-xo.html

    • @Basaisehi843
      @Basaisehi843 4 ปีที่แล้ว +1

      MajorPrep Man you are super dope ! 🤟

    • @Minskpotato
      @Minskpotato 4 ปีที่แล้ว +4

      Hey Zach Star! Could you make a video about Russian/Egyptian multiplication? I found it really interesting but I don't understand how it works. Just want to know the math behind it.

    • @sethdon1100
      @sethdon1100 2 ปีที่แล้ว

      The most efficient algorithm for factoring integers is Shor’s algorithm. Just a heads up

    • @PaulWarren-dt1ms
      @PaulWarren-dt1ms 2 หลายเดือนก่อน

      Congrats on deciding on a physics PATH
      I concur 😮

  • @randompotato258
    @randompotato258 5 ปีที่แล้ว +203

    this dude explain GCF better than all the math teachers i've ever had in a really simple and mind friendly way

    • @ZaraUTech
      @ZaraUTech ปีที่แล้ว

      Like really true!!! Maybe maths teachers just make things to complex cause they ain't really had real live experience using it..

  • @nk361
    @nk361 6 ปีที่แล้ว +204

    I would love if you did a series on math in computer science, you explain things very well even if they may take longer or bigger jumps. I can write code pretty well, but math can always stop me in my tracks when just written in large or long formulas or with special symbols. When you explain these problems it's more of the logic behind them which I could easily write in code.

  • @ratmgant
    @ratmgant 6 ปีที่แล้ว +358

    CS is looking more and more up my alley. Thanks for these videos sir, you're a blessing.

    • @hunggarchristian
      @hunggarchristian 6 ปีที่แล้ว +28

      this is why i switched from Mechanical engineering to Computer Science this semester man. I'm enjoying it much more

    • @ratmgant
      @ratmgant 6 ปีที่แล้ว +1

      Justin Wiggins sweet

    • @AlphaFoxDelta
      @AlphaFoxDelta 5 ปีที่แล้ว

      Jean Descole I've got a degree in and am working on another in CompSci, it's the way to go

    • @ratmgant
      @ratmgant 5 ปีที่แล้ว

      Andrew Davis What's your other degree?

    • @AlphaFoxDelta
      @AlphaFoxDelta 5 ปีที่แล้ว

      Jean Descole Simulation and Game Developement, it got my foot in the door too. Audio/Video editing, 3D Modeling and Animation, using software like photoshop, Maya, 3D Max etc Or Unreal Engine for level design

  • @johnadams4486
    @johnadams4486 5 ปีที่แล้ว +52

    Dude, look what you have done ! You scared them away

    • @lakinnisova459
      @lakinnisova459 5 ปีที่แล้ว +4

      Eventually the will stumble upon math needed for programming.

  • @nigeldupaigel
    @nigeldupaigel 5 ปีที่แล้ว +811

    Thank you, this made me fully decide to pursue a degree in physics.

    • @epicm999
      @epicm999 5 ปีที่แล้ว +54

      lol

    • @Anskurshaikh
      @Anskurshaikh 5 ปีที่แล้ว +94

      same here, this math scares me. I'll rather do multivariable Calc and Diff eqns than this.

    • @highEntropyGhoul
      @highEntropyGhoul 4 ปีที่แล้ว +46

      You'll still need to do a pretty good amount of calculus

    • @anandsuralkar2947
      @anandsuralkar2947 4 ปีที่แล้ว +3

      Lol

    • @martinkunev
      @martinkunev 4 ปีที่แล้ว +47

      If you go into e.g. particle physics, you'll need abstract algebra, in particular group theory. In a way abstract algebra is a generalization of number theory.

  • @IZACHARYRIFEI
    @IZACHARYRIFEI 23 วันที่ผ่านมา +1

    I'm a computational mathematics with a computer science specialization and I love this channel so much! If every teacher could express these concepts like this everyone would love math.

  • @MatthewSchellenberg
    @MatthewSchellenberg 4 ปีที่แล้ว +75

    I wish I had known this in high school. I was so intimidated that I didn't even find out that the math was actually right up my alley.

    • @pvic6959
      @pvic6959 4 ปีที่แล้ว

      never late to start!

    • @MatthewSchellenberg
      @MatthewSchellenberg 4 ปีที่แล้ว

      @@pvic6959 ok where do I start?

    • @pvic6959
      @pvic6959 4 ปีที่แล้ว +2

      @@MatthewSchellenberg these videos are definitely a good start. I really cant help but I have a computer science bachelors degree (class of 2019) I had a TA in his 50s who was getting a masters in computer science without a CS background. It was really cool actually
      But to answer your question the best I can: these types of videos can help you get you started, text books, and if you have money to spare you can probably find some online classes/certifications. If you're more into the programming than the math/theory side, there are a TON of tutorials and projects you can learn from on youtube!
      Unfortunately this is the best I can do but I hope it helps

    • @MatthewSchellenberg
      @MatthewSchellenberg 4 ปีที่แล้ว

      @@pvic6959 Thank you very much!

    • @MatthewSchellenberg
      @MatthewSchellenberg 4 ปีที่แล้ว

      @@pvic6959 I had an 800 on my math SAT when I was 16, but for some reason CS intimidated me at the time.

  • @ianyoung5857
    @ianyoung5857 5 ปีที่แล้ว +28

    I just started a PhD program this semester, and my eyes glazed over when we started talking about this (IS background, CE program). You've done a great job explaining it. Thanks for making these videos.

  • @pastafarian3758
    @pastafarian3758 3 ปีที่แล้ว +14

    I understood gcf for the first time after learning it in 9th grade almost 25 years later. Great stuff mate. Cheers.

  • @jstnofficial
    @jstnofficial 5 ปีที่แล้ว +81

    In just 2 vids men youve earned a sub thanks a lot

  • @bozeiky
    @bozeiky 3 ปีที่แล้ว +13

    The way you broke down those concepts really made me feel like im overcomplicating everything. It's so simple when YOU do it.

  • @artie8561
    @artie8561 5 ปีที่แล้ว +5

    Your explanation is one of the best! Thank you for bringing back the joy of mathematics to me who is not a mathematics major in university!

  • @RRatedT
    @RRatedT 5 ปีที่แล้ว +5

    Man I love and enjoy your videos so much, you make it sound so cool and interesting.

  • @kikiz0r730
    @kikiz0r730 6 ปีที่แล้ว +34

    You're amazing, man! Don't stop doing these videos, I love them ! :D

  • @amessman
    @amessman 5 ปีที่แล้ว +5

    I watched Part 1 and 2... +1 subscriber, these explanations are super helpful! Keep up the good work!

  • @milindbebarta2226
    @milindbebarta2226 4 ปีที่แล้ว +5

    I love this. Make a new series where you go more in-depth. You're very good at explaining these topics. I'm sure it'll be a hit.

  • @spencerallbritton9459
    @spencerallbritton9459 6 ปีที่แล้ว +3

    Awesome videos man, love your content.

  • @davidjohnston4240
    @davidjohnston4240 ปีที่แล้ว +1

    Number theory is the thing that has most impinged on my computer science career. Implementing error correction, cryptography and a host of related things call for Galois fields. When you have that hammer, all nails start to look like extensions of GF(2).

  • @masonpiatt2798
    @masonpiatt2798 6 ปีที่แล้ว +57

    I love these videos
    Keep it up

    • @zachstar
      @zachstar  6 ปีที่แล้ว +6

      Thank you!

  • @frederickhofmann843
    @frederickhofmann843 2 ปีที่แล้ว

    This series has been really valuable to me thanks

  • @DoubleRBlaxican
    @DoubleRBlaxican 3 ปีที่แล้ว

    I remember my high-school taking me to a class at my local college where they talked about Cryptography and they went over the same things you did here. I wish I could have gone to college to learn this but I guess your video will do.

  • @kailashbtw9103
    @kailashbtw9103 8 หลายเดือนก่อน

    Great simple explanations with great examples

  • @mohamodsadi656
    @mohamodsadi656 5 ปีที่แล้ว +4

    This videos are making me crave more math videos from you...😁 Thanks for making them... I hope u'd do some elaborate work on math for Comp sci... 🤗

  • @gokulanandaadhikari8680
    @gokulanandaadhikari8680 6 ปีที่แล้ว

    You are doing an amazing work man.thanks a lot💕

  • @saisaske1
    @saisaske1 4 ปีที่แล้ว +1

    Great definition of computer science given by a professor that "computer science is an art of abstraction" . It is clearly demonstrated in your both videos. Thankyou

  • @johannmichael3894
    @johannmichael3894 4 ปีที่แล้ว

    This is a good video. Has a bare-bones description of the relation between number theory and cryptography.

  • @kumand8259
    @kumand8259 5 ปีที่แล้ว

    Wow that was so cool.! I want more videos like this. Thank you

  • @daniellam1257
    @daniellam1257 5 ปีที่แล้ว

    This is very helpful for my discrete math final, thanks :)

  • @abdoutanta
    @abdoutanta 5 ปีที่แล้ว +1

    Great video, thank you so much.

  • @rajadey4072
    @rajadey4072 2 ปีที่แล้ว

    Thank you for these videos!

  • @blzahz7633
    @blzahz7633 6 ปีที่แล้ว +1

    I like these videos, keep them up.

  • @deniscandido4116
    @deniscandido4116 5 ปีที่แล้ว

    REALLY GREAT CONTENT! Thanks a lot.

  • @husniaezz2922
    @husniaezz2922 5 ปีที่แล้ว

    Thanks alot, it was really exciting

  • @chazzman4553
    @chazzman4553 4 ปีที่แล้ว

    Great stuff. Thanks!

  • @JThompson_VI
    @JThompson_VI 2 ปีที่แล้ว +2

    I have never love hated something so much.

  • @chairjacker
    @chairjacker ปีที่แล้ว +2

    Wow i wish all math was made this fun. Keep up the good videos! As Charlie Day says, I'm learning a lot!!

  • @MAYONNAISEMOOSE
    @MAYONNAISEMOOSE 4 ปีที่แล้ว

    I have never understood cryptography this vividly!

  • @emadahmed5739
    @emadahmed5739 ปีที่แล้ว

    this year i am joining cs and man i think i will love it after this video

  • @danieljohnkirby9412
    @danieljohnkirby9412 3 ปีที่แล้ว

    Wow I really wish this video was out when I was in high school.

  • @TheTariqibnziyad
    @TheTariqibnziyad 6 ปีที่แล้ว +25

    man you're the man

  • @ricchburglar
    @ricchburglar 4 ปีที่แล้ว

    Thanks OG Zach

  • @SohilShah_Melodyman
    @SohilShah_Melodyman 5 ปีที่แล้ว

    very informative...thanks!

  • @alwaysincentivestrumpethic6689
    @alwaysincentivestrumpethic6689 4 ปีที่แล้ว +1

    Great video

  • @dusandragovic09srb
    @dusandragovic09srb 5 ปีที่แล้ว

    Well done!

  • @syedsanaullah9026
    @syedsanaullah9026 6 ปีที่แล้ว

    great simple stuff...shukran

  • @hiteshkumain
    @hiteshkumain 5 ปีที่แล้ว +2

    I love and Enjoy You're Videos sir ,
    With Accuracy & Clarity
    Really Amazing .

  • @speedyguy8
    @speedyguy8 2 ปีที่แล้ว

    Also note that according to the distribution property 24n+40m = 8(3n+5m)

  • @davidfarah
    @davidfarah 3 ปีที่แล้ว

    Thank you!

  • @Ninjabdul
    @Ninjabdul 2 ปีที่แล้ว

    that last example blew my mind, prime numbers OP

  • @ayushsarkar2305
    @ayushsarkar2305 5 ปีที่แล้ว

    Love u bro u inspired me to take cs

  • @cuddy90210
    @cuddy90210 3 ปีที่แล้ว

    Thank you.

  • @aaryan3461
    @aaryan3461 5 ปีที่แล้ว +2

    7:09 . DARN SMART!

  • @TokyoXtreme
    @TokyoXtreme 5 ปีที่แล้ว +8

    OK, this is epic 😎

    • @treyebillups8602
      @treyebillups8602 5 ปีที่แล้ว +2

      TokyoXtreme BEN SHAPIRO DESTROYS LIBTARDS WITH SUPERIOR FACTS AND LOGIC

  • @jameszenos4045
    @jameszenos4045 5 ปีที่แล้ว

    Very interesting 👌

  • @shayorshayorshayor
    @shayorshayorshayor 4 ปีที่แล้ว +2

    To the people thinking “this math is up my alley”, you guys are in for a surprise. Calculus 1,2,3 and differential is actually less harder than discrete math. Just an FYI

  • @toad4966
    @toad4966 3 ปีที่แล้ว

    That math actually looks fun

  • @chakri620
    @chakri620 4 ปีที่แล้ว

    Zach..ur superb..

  • @edattacks
    @edattacks 2 หลายเดือนก่อน

    that's pretty cool

  • @SevenDeMagnus
    @SevenDeMagnus 4 ปีที่แล้ว

    The ruler puzzle is like the Die Hard water puzzle:-)

  • @arshdeepsinghheer8198
    @arshdeepsinghheer8198 4 ปีที่แล้ว +1

    Thanksss

  • @SevenDeMagnus
    @SevenDeMagnus 4 ปีที่แล้ว +1

    Very cool, Mathematics rule science, including computer science.

  • @cad3175
    @cad3175 4 ปีที่แล้ว

    ..just some advice or personal preference which may be common, the white background with black text is much harder in the eye than black background with a lighter coloured font, the blue wavelengths in White led produced light is a health hazard so less White is better in general, 3blue1brown's videos are very easy on the eye as they generally have dark backgrounds, just an idea to incorporate if you're open to suggestions, thanks for your interesting topics

  • @neoTriny
    @neoTriny 2 ปีที่แล้ว

    congratulations on Getting 1 million sub 😁😚

  • @darcash1738
    @darcash1738 ปีที่แล้ว

    A genius and a comedian 😎

  • @SilBu3n0
    @SilBu3n0 3 ปีที่แล้ว

    great theme and both parts! used the opportunity to try to grasp any potential relation between that and finite element method, as well as generative design. anybody?

  • @blackyimiy
    @blackyimiy 4 ปีที่แล้ว

    (This question is out of the Box and most likely wrong) The GCF regarding Cryptography: For Example in Wireless hacking if i got 2 handshakes from different client addresses (users) on the same access point (wifi) would I be able to decrypt the password? Considering the Hashing as well.

  • @Dablid77
    @Dablid77 3 ปีที่แล้ว

    Thanks

  • @simranray4564
    @simranray4564 4 ปีที่แล้ว

    You earned a SUB, Congratulations!

  • @bpark10001
    @bpark10001 4 ปีที่แล้ว +3

    Can you do a video on use if numbers in CAD files? This causes vexing problems, such as calculate a path that is "X" distance from a set of other elements (lines and arcs) on the workspace. This is used to calculate toolpaths (given a cutter radius) to outline a shape formed from lines and arcs. The difficulty is no matter how the precision of the math, computer numbers lack the "property of density" decisions such as whether 2 lines are connected, or whether their intersection point is distinct of identical to one endpoint. How does one write such an algorithm? (I can tell you that expensive software "screws up" this, sometimes generating toolpaths that cut up the piece, others that generate "digital debris" that bogs down the machine!) There has to be a better way! (Comment about software: unlike other engineering, where one can "reverse engineer" a design, it is not practical to do so in software. How does one learn from others?)

  • @the_allucinator
    @the_allucinator 3 ปีที่แล้ว

    3:23
    Yes, with 6 pcs of 7cm ruler and 9 pcs of 5cm ruler. To think that there's a simpler answer, yet I got this.

  • @joelkronqvist6089
    @joelkronqvist6089 2 ปีที่แล้ว +1

    To that ruler problem: isn't it enough of proof that we can measure 3 cm and 2 cm and have unlimited rulers, and can like that measure 1 cm and repeat that 1 cm infinitely?

  • @seductivetoiletsolvesequat1690
    @seductivetoiletsolvesequat1690 4 ปีที่แล้ว +1

    How can we prove that the smallest positive integer is always the GCF? 2:25

  • @quinn9240
    @quinn9240 2 ปีที่แล้ว

    The hardest class for most cs majors is the cs math class that goes through this and much more.

  • @garvagarwal4005
    @garvagarwal4005 5 ปีที่แล้ว +1

    What about linear algebra? It's like the core of CS

  • @thomaskember4628
    @thomaskember4628 5 ปีที่แล้ว +10

    Alright it possibly to factorise a number if it is an integer. What about a complex number whose real component and imaging component are integers? Is it possible to factorise it? And if it is, are these factors prime numbers? In other words, do prime complex numbers exist?

  • @Rovetown
    @Rovetown 5 ปีที่แล้ว

    Compared to highschool math is it easier to understand the logic or how something works?

  • @ericcheung8790
    @ericcheung8790 2 ปีที่แล้ว

    6:56 Encrypted Message divided by Secret Key is the "Hello" appended 79 at the end (the another prime), but how to recover plain text (HELLO)?

  • @yadhukrishna.t.r7753
    @yadhukrishna.t.r7753 2 ปีที่แล้ว

    Pls make a video for chemical engineers😁.

  • @vaprin2019
    @vaprin2019 6 ปีที่แล้ว

    Nice

  • @motoph6942
    @motoph6942 9 หลายเดือนก่อน

    Thats why from python begginer exercisies computing prime numbers?... In my mind what the hell do i need prime numbers for?? Now i understand and im very intrested.. Thanks for your help...

  • @shaifurrahaman6271
    @shaifurrahaman6271 5 ปีที่แล้ว +5

    Could you suggest books or any course to learn number theory?

    • @firstdbzmaker
      @firstdbzmaker 3 ปีที่แล้ว +1

      The textbook used in my Number theory course is Elementary Number Theory by David Burton

    • @christianalbertjahns2577
      @christianalbertjahns2577 3 ปีที่แล้ว

      Discrete Mathematics by Rosen is a pretty good book too but that book also contains other fields from dis. math like mathematical logic, graph theory, relation theory, set theory, and many more.

  • @ThalesPo
    @ThalesPo 4 ปีที่แล้ว +1

    now make a part 3 video with the 90% that was too advanced.

  • @kenichimori8533
    @kenichimori8533 5 ปีที่แล้ว

    Modular function mod period.

  • @VENOM-tx6gp
    @VENOM-tx6gp 2 ปีที่แล้ว +3

    2:42
    Small??
    Seems average to me
    It might have a great personality 🙂

  • @Reggiebush777
    @Reggiebush777 4 ปีที่แล้ว

    So if i do not really get this, should I not go into computer science?

  • @lmao6
    @lmao6 ปีที่แล้ว

    Advent of coders will thank you

  • @NurlibekRauan
    @NurlibekRauan 29 วันที่ผ่านมา

    спасибо видео было очень полезным вы мне очень помогли :ru:

  • @ithinkitworks3675
    @ithinkitworks3675 6 ปีที่แล้ว

    Hello I recently started watching your videos and they are amazing... I have a question that I want to do graduation in a course related to software designing(AI, vr,ar specifically) game designing so should I do Cs or software engineering or any other course??

    • @zachstar
      @zachstar  6 ปีที่แล้ว +2

      Thank you! If you want to go more into the technical or research side of things then do computer science. If you are just gonna get a bachelor's and want to do collaborative work and bring parts of a software project together, then it really doesn't matter what you pick honestly.

    • @ithinkitworks3675
      @ithinkitworks3675 6 ปีที่แล้ว +1

      MajorPrep OK thanks a lot

  • @swim3936
    @swim3936 ปีที่แล้ว

    “Number theory is just the study of integers”
    man, i wish…

  • @soham7226
    @soham7226 4 ปีที่แล้ว +5

    Well I'm really passionate in solving problems of maths
    Is cryptography right for me as a career option

    • @carloscuevas8268
      @carloscuevas8268 4 ปีที่แล้ว +1

      Cryptography is not a career, is part of Computer Science

    • @nrlombardi
      @nrlombardi 4 ปีที่แล้ว +5

      @@carloscuevas8268 Cryptography actually stems from mathematics. It is now considered a branch of mathematics and computer science because of the evolution of the field. The father of computer science was a mathematician. Alan Turing.

    • @erichuddleston4611
      @erichuddleston4611 2 ปีที่แล้ว

      You can actually become a cryptographer, but you need a graduate degree and / or experience. I would recommended studying computer science and taking cryptography class. That's what I did. Bachelor's of science in computer science with concentration in cyber security. Planning to work in security automation pr cloud security and studying to become cryptographer later.

    • @erichuddleston4611
      @erichuddleston4611 2 ปีที่แล้ว

      Computer science is definitely worth it if your interested in cryptography and related topics. I took a class on cryptography and a class on cryptocurrencies. Already getting job interviews. Cs Is definitely worth it.

  • @roadstack1111
    @roadstack1111 4 ปีที่แล้ว +1

    16 calendars of poetry

  • @Fexisepic
    @Fexisepic 3 ปีที่แล้ว

    1:20 I know how to do this one, the ol proof by calculator

  • @Lionheartgrudge
    @Lionheartgrudge 2 ปีที่แล้ว +1

    How do you start learning number theory? I have studied Electrical Engineering, which is probably less math intensive than a CS degree. I find myself liking to code nowadays, so I think learning mathematics would help me train my brain better. Any help for dummies would be appreciated.

    • @zachjones6944
      @zachjones6944 2 ปีที่แล้ว +1

      Symbolic Logic will help you reason. It is the basis for computer language.

    • @GoToMan
      @GoToMan ปีที่แล้ว

      Nope, I believe EE is more math-intensive than a CS degree, and this is coming from someone who has studied math their entire life.

  • @BlackJar72
    @BlackJar72 5 ปีที่แล้ว +7

    There is an error in your proof with the rulers -- or actually with your statement of the problem: If you lay about four 5 cm ruler on one line and two 7 cm rulers on the other you get a gap of 6 cm; if you then add a 5 cm ruler to line two you get 1 cm. The error appears to be that you had extra rule (that only rulers of the same length can be in a given row), but did not state that assumption. Thus you produced a valid proof of a different set of conditions, but not of the conditions initially stated.

    • @antongole5596
      @antongole5596 5 ปีที่แล้ว +1

      There in no error in his proof. His proof shows that the lengths that can be measured with a 5cm ruler and a 7cm ruler can be any integer (1, 2, 3....n..). So a 6cm gap and a 1cm gap can both be produced with his method, therefore there is no errors in his proof.

    • @poopcatapult2623
      @poopcatapult2623 5 ปีที่แล้ว

      Anton Gole you might want to read his comment again.

    • @leandrog2785
      @leandrog2785 4 ปีที่แล้ว

      He fucked up the metaphor with rulers, but what he actually meant was a linear combination of 2 integers.

  • @anjaninator
    @anjaninator 4 ปีที่แล้ว +2

    “Lets say we have an infinite amount of rulers”

    • @alnasraltair8948
      @alnasraltair8948 4 ปีที่แล้ว

      yeah but we can't afford 5 cents real ruler full of numbers and cute little faces

    • @burntt999
      @burntt999 4 ปีที่แล้ว

      @@alnasraltair8948 hahaha lets just have a garage sale and buy something useful

  • @trevor_idiot
    @trevor_idiot 5 ปีที่แล้ว +1

    I wasn't really paying attention to how small the rulers are but, okay

  • @gontsekganyago4079
    @gontsekganyago4079 10 หลายเดือนก่อน

    Now this is what I'm talking about....typa sh*t I like

  • @TDYT103
    @TDYT103 2 ปีที่แล้ว

    2021 Nov 25

  • @bata3258
    @bata3258 5 หลายเดือนก่อน

    zach the star himself?