Randomized algorithms lecture #2 - birthday paradox, random shuffle, hashing

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

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

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

    I am a simple man, when Errichto posts something I smash likes before seeing it.

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

      Just don't unmark it after watching the video :D

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

      @@Errichto lol

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

      @@Errichto hahahaha

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

    can you please prepare a lecture on Convex Hull trick and other DP optimizations?

  • @NM-se5ql
    @NM-se5ql 5 ปีที่แล้ว +1

    Thanks for making the videos man ! You're awesome keep going your videos get better every day :))

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

    Liked even before watching completely. It will be good i know.

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

    Cool. Thanks.
    The only thing was that I paused the video to think about the problem, and then found out I was solving a wrong one :D

  • @MahbubAlam-ey7nz
    @MahbubAlam-ey7nz 5 ปีที่แล้ว +2

    bro , you are my idol.
    i just want to hug you brother
    you are my inspiration.
    love you brother.

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

    12:51 - seems a typo: N^N is 27 for 3, not 9, isn't?

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

    Can you please make a video related to bitmask dp. Thanks in advance !!

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

    In the Repeated Binary Search problem, why is the probability that the i-th element is the greatest so far equal to 1/i? If we know that the greatest element so far is X, then (assuming that the elements are uniformly distributed in the interval 1 to 10^18) the probability that the next element is the greatest so far is (10^18 - X) / (10^18) (i.e. the probability that a random number from 1 to 10^18 is greater than X), no?

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

    Splendid 👌 more theoretical videos please

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

    hey errichto,can you also do a lecture on dfs and bfs,or just algorithms related to graph theory

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

    I'm enjoying this. 🤗

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

    Hey Errichto i wanna ask you if you could make a video explianing the tools you are using (starting with Windows, Linux or MAC; and then supposing that the language used is c++, what tool you use for writing code (visual code, eclipse etc) and something like that). It really surprises me how fast do you execute tests from topcoder, for example.
    Pd: I really like your videos, it inspire me to get better and better on maths and also into become a software engineer. Keep it up!

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

      I will do that at least for Linux in December, maybe Windows version too.

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

    how can i learn all the necessary algorithms used for competitive codings and can you please give some tips to increase my speed while writing code

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

      1) Solve problems and read editorials/tutorials. 2) google -> practice fast typing

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

      @@Errichto thanks is it enough

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

    Question for the first part: in math, "random" doesn't necessarily imply uniform distribution as you seem to assume for the first bit, so my question is: if you see a similar problem like that on codeforces/wherever that talks about something being random, is it safe to assume that (e.g. pokemon) are distributed uniformly? aka every type has a 1/n chance for each pokemon. Thanks, love the videos =)

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

      Yes, I mean uniform distribution.

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

    Please make video on graph theory

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

    Thank you errichto

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

    Awesome stuff

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

    Yay another one

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

    It's 27, not 9

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

      Damn :|

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

    i have a question ...can i get into competitive programming and have a chancet winning if say that I am poor in math?

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

      I don't think it's possible to win contests without a strong math background BUT yes, you can participate and get decent results.

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

    🎉🎂🎈

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

    Please make a video about 2-SAT problems.

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

      Nah, it's something very specific and not often useful. I have tons of other topics to cover first. Thanks for a suggestion though ;)

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

    Epickie

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

    Shouldnt it be j = i + rand() % (n-i) ?

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

      As he explained in the video the idea behind the algorithm is that at any point during the loop the prefix is shuffled. Look up mathematical induction for a better understanding of his proof

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

    Are you part of the Mensa(the high IQ society)? I know you spent a lot of time doing competitive programming, but you must have a very high IQ to be that good at solving these coding questions.

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

      Mensa test measures problem/puzzle-solving ability so I would likely be able to get there, but why would I pay 50$ a year just for being there?

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

    Can you please make video of Solving Google FooBar Coding Challenge from Level 1 to Level 5.

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

      I think the point of that challenge is that you shouldn't know the solution first ;p

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

      #Errichto
      No, that’s not the case, it’s ongoing game.
      Solve & move, it’s fully random don’t have any constraints that you know or don’t know solution at all.

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

      Errichto
      I’m interested into learning how you might make strategic thinking and approach towards each problems, so that I’ll get inspiration from you.
      Can I learn professional problem solving skills from you.
      It’s great if you teaching and improving my life.

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

      @@sunils9183 I did a lot of videos solving problems, including those from contests.