Learn by Example
Learn by Example
  • 8
  • 29 811
Advent of Code 2023 in Rust - Day 6 : Wait for it
Continuing my AOC 2023 series in Rust, I present 3 different approaches to solving today's problem.
Переглядів: 84

Відео

Advent of Code 2023 Visualised! Day 01 - Trebuchet?!
Переглядів 708 місяців тому
This year I'm trying to solve some AOC problems again, this time in Rust. I thought it'd be cool to do some terminal visualizations alongside as many AOC problems in the past have had a nice visual angle. Stay tuned for more cool stuff as the days progress! Code : github.com/hsaikia/Advent-of-Code/tree/main Join my private leaderboard : 1024366-4eaeb2bd
Procedural Trees in Bevy
Переглядів 2 тис.Рік тому
A simple bevy plugin to generate infinitely diverse procedural trees! Keeping up with the spirit of this channel - we'll attempt to learn various different programming concepts, algorithms and ideas by using them in an example project. Please send in your suggestions! Code : github.com/hsaikia/ProceduralTreesBevy Patreon : patreon.com/LearnbyExample Music by Bensound.com/royalty-free-music Lice...
[LeetCode in Rust] N-Queens
Переглядів 163Рік тому
Here we solve the N-Queens problem in Rust. How many ways can N queens be placed in an NxN chessboard? Why Rust? Rust is a fast, memory-safe, modern language which has been the most loved language for developers (according to the StackOverflow developer survey) for 7 years in a row. Keeping up with the spirit of this channel - we'll attempt to solve different LeetCode problems in Rust. Please s...
Solving the Travelling Salesman Problem using Ant Colony Optimization
Переглядів 27 тис.3 роки тому
I was tinkering around with the Godot game engine, and decided to write this TSP solver using ACO over a weekend. Hope you enjoy the video! The code can be found here : github.com/hsaikia/TravellingSalesmanGodot
How does a Chess Engine make a move?
Переглядів 3313 роки тому
Xewali Chess (github.com/hsaikia/XewaliChess) is a UCI compatible Chess Engine written in C . This video describes the most important ideas that went into the development of Xewali Chess, as well as explains a few basic concepts about Chess Engines in general.
[Spoj Problem Solving] Prime Intervals - Segmented Sieve of Eratosthenes
Переглядів 3593 роки тому
In this video, we solve the problem of finding all prime numbers in a given range using the 'Segmented Sieve of Eratosthenes' algorithm.
[Spoj Problem Solving] Aggressive Cows - Binary Search
Переглядів 1533 роки тому
Problem link: www.spoj.com/problems/AGGRCOW/

КОМЕНТАРІ

  • @Perspectologist
    @Perspectologist Рік тому

    This was very cool. Thanks for sharing this with us. It might be better to use a larger font size so we can see the code your are showing more easily. I’m just getting started in Bevy, so it is cool to see what other people are doing in it.

  • @ghashy4501
    @ghashy4501 Рік тому

    It has a lot of potential, awesome work!

  • @PecoDanajlovski
    @PecoDanajlovski Рік тому

    This is great, please continue, the content is great.

  • @nicklansbury3166
    @nicklansbury3166 Рік тому

    Fascinating. Thank you. I'm going to study this in depth as it looks really interesting.

  • @MrEnder0001
    @MrEnder0001 Рік тому

    Amazing would love to see other procedural objects or more parameters like leaf shape. A procedural forest would be amazing

  • @CosmicLF
    @CosmicLF Рік тому

    You are amazing this helped me so much

  • @debangadutta4746
    @debangadutta4746 Рік тому

    Hi Jintu Dada, I'm glad to see your new video after such a long time. I hope you are doing well😊.. I have some important things to talk to you about, so please let me know when you are free. I will reach out to you on Hangouts soon ..

  • @cheezeworm
    @cheezeworm Рік тому

    tsp is not np-complete...

  • @tamseel101
    @tamseel101 Рік тому

    I used your code but it only generated graph. What do u do to auto solve after run?

  • @aenber
    @aenber Рік тому

    Really good Video:) thank you 😊

  • @greglouis5779
    @greglouis5779 2 роки тому

    What if my graph have n number of nodes, how can I modify the ACO to travel from a specific source to a specific destination without passing through all the n number of nodes but only the nodes to the destination and that's it?

  • @36nibs
    @36nibs 2 роки тому

    this doesnt account for alternative directions and axis since its an ant colony you should have 6 axis (up and down) of direction instead of 4 (compass directions)

  • @wolfinthesuit
    @wolfinthesuit 2 роки тому

    I hate those damn salesmen can't they solve they problems? I already have problems by my own!!

  • @bpw0141
    @bpw0141 2 роки тому

    Hi sir can i contact you i have a TSP problem where i work in Indonesia, i would be very happy if you give your email address so i can contact you Thank you

  • @patrickstival6179
    @patrickstival6179 3 роки тому

    Nice video. I should probably try to implement this

  • @mohsenabdelaziz9476
    @mohsenabdelaziz9476 3 роки тому

    thanks alot for ur great work

  • @learnbyexample24
    @learnbyexample24 3 роки тому

    At around 9:45, I mention that the maximum prime that we need to compute is sqrt(U). Basically what I meant to say is p <= sqrt(U) and hence p_max = sqrt(U). At around 14:00, I confuse the explanation of p_max again in the code. The comment should just read ‘max prime number to compute’. Or ‘lower bound of the prime number range to compute’. Apologies for completely messing up an explanation that should be clear enough to you :)

  • @learnbyexample24
    @learnbyexample24 3 роки тому

    Correction : At 4:36, we are looking at positions which are a distance of 4 units apart, hence after 8, the next value should be 12 or greater, and not 13 or greater as I mentioned in the video.