Genetic Algorithms Explained By Example

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024
  • НаукаНаука

Комментарии • 463

  • @KieCodes
    @KieCodes  4 года назад +35

    Thanks for stopping by! Today we will encounter a problem we can't easily solve with our normal algorithmic tools so we deep dive into a class of algorithms called: GENETIC ALGORITHMS!
    I hope you find it as interesting as I do. *What would you use them for?*

    • @DevOpsDirective
      @DevOpsDirective 4 года назад +1

      I first learned about evolutionary algorithms from this TED talk www.ted.com/talks/bill_gross_a_solar_energy_system_that_tracks_the_sun/
      Since then I have wanted to use them to write a program that attempts to learn how to write brainf***. BF seems like a good language choice since there are only a handful of symbols and writing/instrumenting an interpreter to also evaluate an objective function to feed back into the evolutionary algorithm would be simple!
      I haven't gotten around to it yet, but perhaps soon!

    • @Stopinvadingmyhardware
      @Stopinvadingmyhardware Год назад

      Thanks, you just helped me solved a vector problem I was having.
      Oddly, I didn’t even use an algorithm.

    • @rickyricardo75
      @rickyricardo75 2 месяца назад

      very interesting ! let us know if you applied this to trading !

  • @kx9473
    @kx9473 3 года назад +193

    This guy explained everything from 2 weeks long boring lecture in under 12 minutes with extremely clear explanation. I love you because you just saved my degree.

    • @KieCodes
      @KieCodes  3 года назад +6

      You are more than welcome my friend. 🙏 Rock on! 🚀

    • @Vaderir
      @Vaderir Год назад +3

      2 hour’s lecture in 12mins how about that .

    • @Terra_Cognita
      @Terra_Cognita Год назад +3

      Do you know how he calculated the total number of combinations in a naive brute force approach? I did permutations and combinations and the values were not equal.

    • @Terra_Cognita
      @Terra_Cognita Год назад +1

      Never mind I figured it out, It is the sum of all possible (N chooses k) combinations k = 0, 1,..N which simplifies to 2^N

    • @mr.boomguy
      @mr.boomguy 7 месяцев назад +3

      This is why I love watching RUclips. Sure, 95% of the time is trivia and entertainment, but then you stumble upon things you either where looking for or not, and you learn them in minutes instead of the years it takes from professional lecturing.
      (Granted, processing that information is a whole other ordeal, but at least you have it on hand)

  • @sergioseco9835
    @sergioseco9835 4 года назад +99

    this deserves a million views

  • @xandrovich5976
    @xandrovich5976 3 года назад +22

    I must say - the quality of this video is top-notch. The crisp editing, sound, and illustrations do a great job of demonstrating the point.

    • @KieCodes
      @KieCodes  3 года назад +1

      Thank you so much! 🙏

  • @evrmk
    @evrmk 2 года назад +3

    Three 1.5-hour-long lectures in my university explained in 11 minutes. Thanks!

  • @eddazzo
    @eddazzo 3 года назад +5

    Im a computer science degree student and this helps me to understand better on my final year project's topic! Thank you very much sir!

    • @KieCodes
      @KieCodes  3 года назад

      You are more than welcome my friend. 🙏 Rock on! 🚀

  • @abdullahsheriff_
    @abdullahsheriff_ 2 года назад +4

    According to me, his video is THE BEST explanation on RUclips on Genetic Algorithms. My mates and I understood Genetic Algorithms like never before, loved it, and implemented it in our University Course Project.
    Thank you, Kie.

    • @KieCodes
      @KieCodes  2 года назад

      You are more than welcome! Enjoy your studies!

  • @adityagarg2185
    @adityagarg2185 Год назад +23

    This video was AMAZING. I can't believe the amount of time and effort you took to explain this topic so clearly. It sucks that you stopped making videos. What can I do to motivate you to make an algorithm series?

  • @kritagyagupta8619
    @kritagyagupta8619 3 года назад +5

    Dude, Your videos are higher quality then Pewdiepie and Dream combined
    Not exaggerated
    I have literally understood a concept u have tried to learn from past 10 months

    • @KieCodes
      @KieCodes  3 года назад

      Thank you. 🙏 I am glad I could help. And thanks for your nice words. ☺️

  • @lohithkandukuri5579
    @lohithkandukuri5579 2 года назад +1

    SOOOOOOOO gooood.... Nobody could have been more concise and informative at the same time.

    • @KieCodes
      @KieCodes  2 года назад

      Thank you very much! 🙏🙏🙏

  • @zacrobyte
    @zacrobyte 3 года назад +6

    Yo dude, this is some next level way of teaching your channel should've had atleast 1 mil already

    • @KieCodes
      @KieCodes  3 года назад

      Thank you. 🙏 Maybe some day. Thanks again for the motivating words.

  • @BehniaFB
    @BehniaFB 3 года назад +4

    Every second I that goes, I realize more how complete this video is ! This vid should definitely have more than a million views .

    • @KieCodes
      @KieCodes  3 года назад

      Thank you so much!

  • @willboler830
    @willboler830 3 года назад +21

    Excellent video! One of the better selection algorithms and more typical is a tournament selection. Rather than choosing the best fitness genes for the next generation, each gene is given a probability of selection based on their fitness. Better genes have a higher probability of selection, and worse genes have a lower probability of selection, but the odds of selection are not 100% and 0% respectively. This takes a bit longer when it comes to finding a solution, but it gives a better search of the solution space.

  • @subpixelsalt7648
    @subpixelsalt7648 4 года назад +7

    Great video! I've been facinated by genetic algorithms after seeing people use it to beat levels in Super Mario Bros. There's just something so fascinating about watching a computer "learn" how to get better at doing something.

    • @KieCodes
      @KieCodes  4 года назад +1

      Thank you! I totally feel the same. It is modern magic. 🙃

  • @CristalMediumBlue
    @CristalMediumBlue Год назад +2

    Toll. Das ist das beste Video, das ich bisher zu diesem Thema gesehen habe

  • @colinmignot6309
    @colinmignot6309 3 года назад +15

    you're great teacher. taking time to edit engaging videos with visuals like you do is very effective to help ppl grasp concepts

  • @SHUBHAMJHA-o3g
    @SHUBHAMJHA-o3g 24 дня назад

    This is the hands down the best video on genetic algorithms!

  • @BraidyMerkle
    @BraidyMerkle 4 года назад +2

    I have not yet had to use genetic algorithms, but want to try them out after watching this video! Thanks for the introduction!

    • @KieCodes
      @KieCodes  4 года назад +1

      Thanks Braidy! Let me know what you used them for. :)

  • @arianalini8636
    @arianalini8636 Год назад +1

    how is it not booming yet?! thank u for the clear explanation + the awesome edits!

  • @aliticx
    @aliticx 3 года назад +3

    Man I wish everyone explained concepts this good! Awesome video!

    • @KieCodes
      @KieCodes  3 года назад

      Thank you Aliticx. This comment really means a lot to me. 🙏 Having people to really understand what I try to explain is way more worth to me than subscribers and views. Thank you.

  • @marcellorossetticonti3002
    @marcellorossetticonti3002 2 года назад +2

    Hi Kie, congratulations on the clarity of your explanation. It gave me some suggestions on how to improve the way I explain these algorithms.
    I work in Italy as a physics researcher and in my group we routinely employ these kinds of algorithms to optimize the performance of particle accelerators redesgning them (with a similar approach to the antenna problem you mentioned). I can confirm that they work wonders at solving systems whose dynamics are extremely complex (especially when due to highly correlated variables)!
    I wanted to tell you that in our code we apply elitism as the last thing (even following mutation) to be sure that the best fitness value never goes down in subsequent generations. If you apply mutation later, you risk losing the best solution from the previous cycle.
    Nothing catastrophic though, the genetic information to reconstruct the best solution is mixed in the rest of the population anyway and will probably re-emerge soon anyway.

    • @mgwyndolin4262
      @mgwyndolin4262 Год назад

      Hi thanks for sharing your insight! It is very instructive and helps me clarify the confusion about the top performers of the previous generation being mutated instead of kept intact in the video. But this video really offers a great explanation.

  • @kr0tyara
    @kr0tyara 3 года назад +4

    You are such an underrated gem. GOOD JOB!!!

  • @seriouscoder1727
    @seriouscoder1727 2 года назад +1

    I,ve watched many clips in this regard but your explanation was one of a kind, absoulotlly deserve thousends of million of billion views

    • @KieCodes
      @KieCodes  2 года назад +1

      Wow. Thank you for your kind words! 🙏

  • @vasachisenjubean5944
    @vasachisenjubean5944 3 года назад +6

    man the effort you put in this video is - "Salute"

  • @MaTrOoOoD
    @MaTrOoOoD 4 года назад +5

    After watching the video I opened the channel expecting to see millions of subscribers. You deserve much more!! What an awesome video. Simple and right to the main points! Keep up the good work!

    • @KieCodes
      @KieCodes  4 года назад +1

      Wow. Thanks for your kind and motivating words Mo. I will try my best. To be honest I wouldn’t be ready for millions of subs. Glad to hopefully hit a 1000 till 2021.
      Have a great day! 🙏

    • @KieCodes
      @KieCodes  4 года назад

      And thanks for subscribing! One sub closer. ☺️

    • @MaTrOoOoD
      @MaTrOoOoD 4 года назад +1

      @@KieCodes dude your videos are extraordinary! I couldn’t resist 🤷🏻‍♂️
      Wish you best of luck man! Can’t tell you how happy and excited I am to see what you have next!

  • @TarunRavi
    @TarunRavi 4 года назад +20

    Wow your video is awesome! You explained a pretty complex algorithm in a simple way. I've always wanted to use genetic algorithms for one of my videos, this is a fantastic intro to the field! btw I love your video quality, it looks soo good.

    • @KieCodes
      @KieCodes  4 года назад

      Thanks so much for your kind words. 🙏

  • @daesk
    @daesk 3 года назад +2

    My teacher used 2 hours of class to explain what this man explained in 10 minutes, thanks

    • @KieCodes
      @KieCodes  3 года назад +1

      Thank you 🙏! Good luck for your studies. Take care.

  • @thop7964
    @thop7964 2 года назад +2

    Fantastic example. Really helps show how the conceptual steps actually work!

  • @georgeruellan
    @georgeruellan 4 года назад +6

    Dude this video is amazing. Great explanation, I liked the real world example too. Your editing style is sick too! Can't wait to see more from you

    • @KieCodes
      @KieCodes  4 года назад

      Thanks George. This means a lot and is really motivating! Great to have you here. Rock on!

  • @MeANDmyPETgoat
    @MeANDmyPETgoat 4 года назад +5

    Great video bro, helped me understand what my teacher's mumbling couldn't for our test, keep it up!

    • @KieCodes
      @KieCodes  4 года назад +1

      Thanks for your kind words. 🙏

  • @Joselo09111
    @Joselo09111 2 года назад +4

    Fantastic explanation! I learned more in this video, than my professor

    • @KieCodes
      @KieCodes  2 года назад

      Great to hear! Thank you so much!

  • @mesticasamelapapna708
    @mesticasamelapapna708 Год назад +1

    Thank you for this Kie! I'm amazed that you use Genetic Algorithm to solve the Knapsack problem :)

  • @BehniaFB
    @BehniaFB 3 года назад +14

    I've never imagined that one day Seth Rogen will be teaching me Algorithms😂 (Jokes aside this video was amazing and well-made; GOOD JOB!❤)

  • @r.ramirez1521
    @r.ramirez1521 2 года назад +1

    Please don't ever go away. This was amazing

  • @samidahdouh7863
    @samidahdouh7863 9 месяцев назад +1

    This is actually one of the best videos I've ever seen on RUclips. Thank you!

    • @KieCodes
      @KieCodes  9 месяцев назад

      Wow. Thank you. 🙏🎉

  • @pedrocamunas5625
    @pedrocamunas5625 3 года назад +1

    I can see english is not your first language but still your pronunciation is really clear, thumbs up

  • @srinivaskollipara1293
    @srinivaskollipara1293 4 года назад +2

    this is awesome!!!!!!! I am a mechanical engineer with 0 knowledge in these type of algorithms but for the sake of a project on scheduling using the genetic algorithm I was surfing youtube, this is the best explanation I ever had and it is very clear if possible, please suggest algorithms similar to this which are good for job shop scheduling.

  • @fasaipuengudom5412
    @fasaipuengudom5412 2 года назад +1

    Best video regarding this topic. Very visual and easy to understand

  • @marflage
    @marflage 3 года назад +2

    I can't thank you enough. Tomorrow's my AI exam and your video helped me prepare for it. I wish your channel explodes with magnitudes of subs. Thank you so much!

    • @KieCodes
      @KieCodes  3 года назад +1

      You are more than welcome my friend. 🙏 Rock on! 🚀 Good luck with your exam!

    • @marflage
      @marflage 3 года назад

      @@KieCodes thanks!

  • @DerClaudius
    @DerClaudius 3 года назад +4

    Good overview. I would suggest a fitness function that goes negative for non-solutions, so even if you have no solution, because the problem is so hard, you still keep the genomes that are closest to a real solution. With having fitness=0 for all non-solutions, you can't distinguish how bad or close the genomes are.

    • @KieCodes
      @KieCodes  2 года назад +2

      Good idea! Thank you. 🙏

  • @1stpatrickha
    @1stpatrickha 3 года назад +1

    To be honest, this is the best video explained about this Genetic Algor concept. Quality contents. Keep going dude!

  • @paragvadhiya8019
    @paragvadhiya8019 2 года назад +2

    Video is on point, accurate and does not waste your time. Thanks so much man.

    • @KieCodes
      @KieCodes  2 года назад

      I really appreciate your kind words! 🙏

  • @chaosrider100
    @chaosrider100 3 года назад +7

    All is fine and useful from this video and I will recommend it to my students as a quick introduction, BUT this is not natural selection - it is called "directed" or "purposeful" selection. It is similar to what you have in ML for supervised learning - there is an aim (manifested by the elitist genomes)... Natural selection works aimlessly and randomly. The biggest difference between the two is the speed of convergence - as Natural selection is a notoriously slow process.

    • @KieCodes
      @KieCodes  3 года назад

      Thank you for the clarification! 🙏

  • @taylan8973
    @taylan8973 3 года назад +1

    I rarely leave a comment but your explanation is just amazing. Good job

    • @KieCodes
      @KieCodes  3 года назад

      Thanks Taylan! 🙏

  • @mahdilatreche4501
    @mahdilatreche4501 3 года назад +1

    This video is astonishing, you deserve a lot more views, keep up the good work :)

  • @Copybook
    @Copybook Год назад +1

    I was really hard to digest it and I don't mean mathematically
    BTW, tomorrow I have an exam and you save my life, a blessing from an AI student

  • @junbongzz0523
    @junbongzz0523 2 года назад +1

    I recommend this video to those who wants to simply know what GA is in 10min!!

  • @diegocruz8187
    @diegocruz8187 4 года назад +1

    This channel should have more subscribers! Really amazing video and explanation

    • @KieCodes
      @KieCodes  4 года назад

      Thanks Diego! 💪🙏

  • @nishitpatel5686
    @nishitpatel5686 3 года назад +1

    one of the best videos on genetic algorithm

  • @avixx
    @avixx 2 дня назад

    You showed this in a way easy to understand! Thanks!

  • @Mohamed_Shabaik
    @Mohamed_Shabaik Год назад +1

    I don't usually make comments. but that was a really well-explained and interesting video, Thanks!

  • @hoaralatoan845
    @hoaralatoan845 2 года назад +1

    What a fantastic explanation! Clearly explain GA. Can you tell me what classical problem inspired you about the "backbag problem" in 0:23?

    • @KieCodes
      @KieCodes  2 года назад

      Hey. Thank you. The knabsack problem.

  • @daphnelenders4207
    @daphnelenders4207 4 года назад +2

    Thanks a lot for your explanation, looking forward to use genetic algorithms in the future!

    • @KieCodes
      @KieCodes  4 года назад

      Thank you. Have fun, its a great tool!

  • @HarunFarah
    @HarunFarah 2 года назад +1

    Great vid done a better job at explaining than a university lecturer

    • @KieCodes
      @KieCodes  2 года назад

      Thank you very much!

  • @TheTehnigga
    @TheTehnigga 2 года назад +3

    Really well explained and cured, these are the kind of explanations that I prefer, there's love and dedication behind it. Thank you!

    • @KieCodes
      @KieCodes  2 года назад +1

      Thank you. 🙏

  • @zecool7041
    @zecool7041 4 года назад +1

    really good explanation , better than most of videos that i have seen and better than my teacher's lecture , keep up the good work , greetings from algeria

    • @KieCodes
      @KieCodes  4 года назад +1

      Thank you for your kind words! Have a great day. 🙏

  • @Abdul-RafayHamid
    @Abdul-RafayHamid Год назад +1

    Really well explained.
    I will appreciate it if you can make a project to solve time table scheduling problem with genetic algorithm.

  • @alvaroarcelus8949
    @alvaroarcelus8949 Год назад +1

    Amazingly explained!! Thank you so much. 🙌

  • @sevdalink6676
    @sevdalink6676 11 месяцев назад +1

    Whoah men! You fascinated me. What a level of explanation.

    • @KieCodes
      @KieCodes  11 месяцев назад +1

      Thank you. I hope it helped. 🙏🫡

  • @muhammadqaisarali
    @muhammadqaisarali 3 года назад +1

    Start with a Problem presentation is a great way to learn.

    • @KieCodes
      @KieCodes  3 года назад

      Thank you. 🙏

    • @muhammadqaisarali
      @muhammadqaisarali 3 года назад +1

      @@KieCodes welcome sir, it is a great video... Again heartiest thanks...

    • @KieCodes
      @KieCodes  3 года назад +1

      You are more than welcome my friend. 🙏 Rock on! 🚀

  • @aaradhyanegi639
    @aaradhyanegi639 9 месяцев назад +1

    I've never learned anything in this way
    I love it!

    • @KieCodes
      @KieCodes  9 месяцев назад

      I am glad to hear that!

  • @ammarazlan2919
    @ammarazlan2919 2 года назад +1

    Thank you so much! Please do Clonal Selection Algorithm next please...!

  • @ForTheOmnissiah
    @ForTheOmnissiah Год назад +1

    Wish you uploaded more. This is quality content.

  • @dogualemdar415
    @dogualemdar415 3 года назад +1

    Where are all the 12th grade IB HL Comp Sci students studying for the paper 3 at??? Thanks Kie great video

    • @KieCodes
      @KieCodes  3 года назад

      You are welcome. I hope my videos help you with your studies. Take care 🙏

    • @miky3420
      @miky3420 2 года назад

      What country provides these studies in grade 12 !?

  • @wahalaq36
    @wahalaq36 4 года назад +1

    You did a great job with this, two years ago i searched heaven and earth but didnt find a thing

    • @KieCodes
      @KieCodes  4 года назад

      Thanks a lot! Glad I could help.

  • @TWFDeadzoneII
    @TWFDeadzoneII 4 года назад +2

    Mind blowing. I can't wait to implement this.

    • @KieCodes
      @KieCodes  4 года назад

      It surely is. Have fun!

  • @rajathalexander406
    @rajathalexander406 4 года назад +2

    best possible explanation, became ur FAN

    • @KieCodes
      @KieCodes  4 года назад

      Thank you and welcome! 🙏

  • @yasminejas5007
    @yasminejas5007 7 месяцев назад +1

    Thank you so much this video is very helpful for my thesis!

    • @KieCodes
      @KieCodes  7 месяцев назад

      Glad it was helpful! 🙏

  • @sardororipov1302
    @sardororipov1302 3 года назад +2

    I’m here before this channel get 1million subs. Keep up the great work man!

  • @catatanbethari1226
    @catatanbethari1226 4 года назад +1

    Bro...
    You help me with my thesis...
    Thank you very very muuuch...

    • @KieCodes
      @KieCodes  4 года назад

      You are more than welcome, Catatan! 💪

  • @ragabnadim
    @ragabnadim Год назад +1

    Thank you for the video, will recommand to my students

  • @hansergonzalez6646
    @hansergonzalez6646 2 года назад +2

    What an amazing content, explained with simple words. Thanks and keep up the hard work.

    • @KieCodes
      @KieCodes  2 года назад

      Glad you liked it! Thank you!

  • @adinvella4665
    @adinvella4665 Год назад +1

    Very informative video; full of information yet very easy to follow. Thank you!

  • @SuperNightmareID
    @SuperNightmareID 3 года назад +1

    That booping noise had me checking my pc and phone every time lmao.

  • @annashchukina3768
    @annashchukina3768 3 года назад +3

    This was an amazing introduction to the topic and great intuition. Thanks for the video! It was also fun to watch😄

  • @GlynisDance
    @GlynisDance 2 года назад

    That was an excellent video. Clear, engaging, inspiring and fun! I will be watching more of your videos.

  • @ouahidalalga9437
    @ouahidalalga9437 7 месяцев назад +1

    Just Wow! Hats off to you, that's a great explanation.

    • @KieCodes
      @KieCodes  6 месяцев назад

      Thanks a lot!

  • @yelamankarassay
    @yelamankarassay 4 года назад +1

    Great You helped me in my HW assignment.

    • @KieCodes
      @KieCodes  4 года назад

      You‘re welcome.

  • @harishsingh5225
    @harishsingh5225 3 года назад +1

    Explained brilliantly.

    • @KieCodes
      @KieCodes  3 года назад

      Thank you so much. 🙏

  • @michellesainos3443
    @michellesainos3443 3 года назад +1

    Thank you!!! your explanation was very clear and awesome!! Definitely checking out the implementation

    • @KieCodes
      @KieCodes  3 года назад

      Thank you Michelle!🙏

  • @АндрейВикторович-т1л
    @АндрейВикторович-т1л 3 года назад +1

    You're awesome!
    I don't speak English as well, but your explanation is really good, and I understand the main idea!

  • @roct07
    @roct07 Год назад +1

    This is so well explained

  • @husnasyed7388
    @husnasyed7388 4 года назад +3

    Is it possible for you to elaborate how to generate a fitness function for the problem you are trying to solve? That is where I find myself stuck

    • @KieCodes
      @KieCodes  4 года назад

      Sure. In this problem I want to have the most value in my backpack whithout over-reaching it's capacity.
      So for each genome, that defines a set of items inside my backpack, I add all the weight. If the weight is already heavier than I can carry in my backpack, then the solution is not valid and its fitness is 0.
      If the weight of the set of items fits inside the backpack, I add up all the values of the different items and the accumulated value of all items is the fitness. So a genome with a solutions that provides more value is fitter than a solution that provides less.
      In my follow up video you will see the code explained and a link to a github repository in the description.
      I hope that helps. Happy coding!

    • @husnasyed7388
      @husnasyed7388 4 года назад

      @@KieCodes so that means the mathematical function is that the sum of the weights must be equal to or less than 3 kg?
      I think I am struggling more because the last time I used C++ was 10 years ago! Alright now next question is that in your video each item is assigned a binary digit either 1 or 0. How do you decide which is 1 and which is 0? Sorry if that's a stupid question.

    • @husnasyed7388
      @husnasyed7388 4 года назад +1

      @@KieCodes will check out your next video ! Thank you for being one of the people that help others without even knowing it.

    • @KieCodes
      @KieCodes  4 года назад

      The binary representation is to encode a solution. 0 means not inside the backpack and 1 means it is inside. These genomes are generated randomly. After that they are evaluated (fitness function) and recombined (crossover function) and slightly changed (mutation function) and thus way we get a new set of solutions/genomes.
      It is an algorithm based on the idea of evolution and it surprisingly works to get better and better solutions with every step of the process.
      I hope that clears it up a little but more.

    • @husnasyed7388
      @husnasyed7388 4 года назад +1

      @@KieCodes yesss got it!! Thanks a lot!

  • @johnostensen
    @johnostensen 2 года назад +1

    "At some number of items, you wont only miss your flight, but the whole solar system would be gone" 😂

  • @SintaxErorr
    @SintaxErorr 4 года назад +1

    *The Best Solution* [Phone, Headphones,Baseball Cap,Laptop,Coffee Mug] Weight: 2980 grams
    *My Genetic Algorithm* [Phone,Headphones,Mints,Notepad,Tissues,Laptop] Weight: 2998 grams. ooop
    made one before watching your other video to test myself so not sure if you found this in that video. but this video is great

    • @KieCodes
      @KieCodes  4 года назад +1

      Thanks for your kind words! 🙏 and great effort implementing your own GA before watching my video. Amazing 💪

  • @MohamedHassan-xf5wb
    @MohamedHassan-xf5wb Год назад +1

    Really well explained

  • @juanrodriguezmonti6172
    @juanrodriguezmonti6172 3 года назад +2

    Great video! You should explain that the number of comb is 2^n being n the set, because of each item you can or can not choose it. So, due to that possible decision over every item, you get 2^n. Instead, the all possible combination should be the factorial of 5; computer mug pencil, computer pencil mug, pencil computer mug, pencil mug computer and so on.. Amazing work!

    • @KieCodes
      @KieCodes  3 года назад

      Thanks Juan for adding this info here. I am sure it will help future viewers of this video! 🙏

  • @LonleyGuns
    @LonleyGuns 3 года назад +2

    I like the way you explain algorithms.

    • @KieCodes
      @KieCodes  3 года назад

      Thank you for your kind words, LonleyGuns. 🙏 I put a lot of work into it. So that means a lot. What other algorithms are you interested in?

    • @LonleyGuns
      @LonleyGuns 3 года назад +1

      @@KieCodes Pattern search like Hooke Jeeves would be great. Also, new programmers face problem which approach to use: objective function or array as input values into optimisation problem. Would be great to hear some advices when to use which method.

  • @AK-gx4fh
    @AK-gx4fh 3 года назад +4

    Yey! now my mom can really know what i do for a living :)

  • @padmakarrao4681
    @padmakarrao4681 3 года назад +1

    "at some number of time, you won't just miss your flight, but the whole solar system will be gone" 🤣🤣🤣
    I love this video...

    • @KieCodes
      @KieCodes  3 года назад

      Glad you liked it! 🙏

  • @hzmuhabbet
    @hzmuhabbet 3 года назад +2

    Great explanation dude, thanks so much.

    • @KieCodes
      @KieCodes  3 года назад

      You are more than welcome my friend. 🙏 Rock on! 🚀

  • @jennaperez9108
    @jennaperez9108 4 года назад +1

    Great video Sir 💗 this help me a lot to better understand the concept of GA. We will use GA for our thesis paper

    • @KieCodes
      @KieCodes  4 года назад +1

      Hey Jenna, thank you. Good luck with your thesis. 💪

    • @jennaperez9108
      @jennaperez9108 4 года назад +1

      @@KieCodes thank you Sir have a nice day and keep safe!

  • @roymany6686
    @roymany6686 Год назад +1

    Hi, great video you helped me a lot🙏
    One question tho, 4:47 how do I know how many “bags”/“childs” should be in the first generation?

    • @KieCodes
      @KieCodes  11 месяцев назад

      Hey. Thank you. This is something you need to try out. If the genes are very large you will need a larger generation size, but too large is not good as well because it slows everything down.

  • @abhishek.rathore
    @abhishek.rathore 2 года назад

    3:10 This version of the Knapsack problem that is the 0-1 Knapsack problem is very well solvable in O(n) time where n is the number of items using Dynamic Programming. I am not sure what you meant there. But yes there are some problems which cannot be solved in polynomial time by any algorithm termed as the NP-hard problems. Some examples include the Travelling Salesman.

    • @KieCodes
      @KieCodes  2 года назад

      Yes a very specific version of the Knappsack problem is. It was just an easy to understand example for NP-hard problems, I choose. Maybe I chose unwisely. 😅

  • @johntravolta2655
    @johntravolta2655 2 года назад +1

    Greeting from Polish college.
    Wish you the best :)

    • @KieCodes
      @KieCodes  2 года назад +1

      Thank you! To you too.

  • @mcbot1344
    @mcbot1344 3 года назад

    Wow this is incredibly helpful for my exam. Keep up the good work!
    Greetings from Germany

    • @KieCodes
      @KieCodes  3 года назад

      Thank you for your kind words, Mc Bot. 🙏

  • @shouryaraj5913
    @shouryaraj5913 4 года назад +1

    Astonishing video! Thanks for sharing the incredible research papers. Looking forward to learn and explore more. Thanks

    • @KieCodes
      @KieCodes  4 года назад

      Thanks for you kind words! :)

  • @marco.nascimento
    @marco.nascimento 3 года назад +1

    Excellent explanation, such an interesting topic!

    • @KieCodes
      @KieCodes  3 года назад

      It is right? Thanks again! 🙏

  • @shahed.hijjawi
    @shahed.hijjawi Год назад +1

    GREAT EFFORT BRO!

  • @hamidnodehi
    @hamidnodehi Год назад +1

    Helped a lot. Thanks so much.