p88h.
p88h.
  • Видео 106
  • Просмотров 58 248
Locks and Keys
Advent of Code 2024, Day 25
Visual matcher - shows _all_ key / lock combinations being checked and all found correct matches.
Просмотров: 170

Видео

Logic State Analyzer NG
Просмотров 34321 день назад
Advent of Code 2024, Day 24 There probably isn't a very good method to solve this in general, so I did a toy network editor. Layout is automatic based on the connections and it's obvious what the overall structure _should_ be, though some node swaps (last one) may be a bit tricky to see. The simulator is actually interactive - allows to run individual lines in input, see what changes, and swap ...
Network Effects
Просмотров 18521 день назад
Advent of Code 2024, Day 23 Solves the problem* via physics simulation: * Start with fully random node positions. * Connected note s attract each other with force F (up to their 'perimeter') * Non-connected nodes that are close by repel each other with force F/4 (up to some distance X). This force is additionally amplified at low distances (below node 'perimeter') Network self-organizes itself ...
Multi Multi Player
Просмотров 1 тыс.21 день назад
Advent of Code 2024, Day 23 Attempts to construct all the possible cliques (of size 3 or more). Uses the provided connections to expand to their common interconnected nodes, and validates those are fully connected. Since this happens greedily, a more optimal solution can potentially exist, so it's just an approximation; but it does find the largest clique / solution along the way.
Banana Grading
Просмотров 7221 день назад
Advent of Code 2024, Day 22 Visualises all the patterns for all the monkeys. Each row represents a sequence of _patterns_ for one monkey. Each pixel is determined by the pattern (hue / low rgb bits) and number of bananas (intensity / higher bits of rgb). Black pixels indicate repeated patterns for a single seller.
Dynamic Trees
Просмотров 30821 день назад
Advent of Code 2024, Day 21 Shows the progression of dynamic programming / recursive memoization solution for the problem. The program builds a table that allows to answer generic question of 'how many button presses are needed to achieve a sequence X=key via D=depth robots'. Since each sequence in the cache ends with 'A' press, this answer is always independent of previously entered sequences ...
Short Cuts
Просмотров 36621 день назад
Advent of Code 2024, Day 20 Displays all the shortcuts / cheats available for every point on the racetrack. Racetrack happens to be a single twisting line, the code searches backwards through that list. The path from the start is highlighted in gray, and the path to the end is highlighted in blue (this changes dynamically)
Towel Space Decomposition
Просмотров 20028 дней назад
Advent of Code 2024, Day 19 Attempts to visualise the problem of lining up all possible towel variants against each pattern. Towels are only added at valid positions, though the simulation does not 'cancel' ones that do not have a valid continuation (this reflects how the dynamic programming solution works, we only care about positive results)
Speed Limits
Просмотров 1,7 тыс.28 дней назад
Advent of Code 2024, Day 18 Finds the minimum path at each possible time point (solving both part 1 and 2 on the way) plus determines _actual_ minimum speed the historians need to achieve in order to pass safely to the other side.
Codebreaker
Просмотров 241Месяц назад
Advent of Code 2024, Day 17 Shows a simple 'debug output' for all considered key iterations. The process generates consecutive digits of input (base 8) and evaluates if they match the program.
There an Back Again
Просмотров 294Месяц назад
Advent of Code 2024, Day 16 In first phase, we look for shortest path in rough order of distance (Dijkstra-ish). This highlights nodes in white. In the second phase, we go back, looking for nodes that have backward_cost forward_cost equal to the total minimum - this highlights nodes in yellow, and marks the nodes that are considered, but have wrong cost as red.
Robot is Push
Просмотров 359Месяц назад
Advent of Code 2024, Day 15 (part 2) I made a semi-interactive toy to run around with the robot and push bricks. It uses Sokoban tiles for walls and boxes, re-scaled and fixed up manually. Robot image from opengameart.org/content/pixel-robot
Egge Detector
Просмотров 184Месяц назад
Advent of Code 2024, Day 14 Displays the robot locations at time steps from 0 to 10000. For each frame, this uses a simple edge detection logic to score the layout. Higher scoring frames are tinted towards green, making it easy to spot eggs. Or trees.
Distance Plots
Просмотров 212Месяц назад
Advent of Code 2024, Day 13 Probably would not make for a very efficient solution : plots the distance from goal over a range of A and B values, and looks for the minimum / zero value. With appropriate sampling or using gradient descent rather than simple all-value probing, it does provide a betrer approach to part 2 than a simple naive simulation. (The actual solution would use a linear solver...
Garden Fences
Просмотров 184Месяц назад
Advent of Code 2024, Day 12 Tried to make a 3D visualisation of the garden with actual fences. Probably could use some better camera work...
Blink Seventy Five
Просмотров 46Месяц назад
Blink Seventy Five
Blink Twenty Five
Просмотров 113Месяц назад
Blink Twenty Five
Elevation Mapping
Просмотров 155Месяц назад
Elevation Mapping
Amphipod Speed Disk (v2+sound)
Просмотров 225Месяц назад
Amphipod Speed Disk (v2 sound)
Amphipod Speed Disk
Просмотров 368Месяц назад
Amphipod Speed Disk
Spectrum Wars
Просмотров 409Месяц назад
Spectrum Wars
Reverse (Polished) Calculator
Просмотров 251Месяц назад
Reverse (Polished) Calculator
Polar Patrol (Potential)
Просмотров 280Месяц назад
Polar Patrol (Potential)
Polar Patrol
Просмотров 61Месяц назад
Polar Patrol
Punchcard Madness
Просмотров 155Месяц назад
Punchcard Madness
Colorful Ceres Cross-out
Просмотров 189Месяц назад
Colorful Ceres Cross-out
Data Finding Animation
Просмотров 239Месяц назад
Data Finding Animation
Super Multi Tuner
Просмотров 126Месяц назад
Super Multi Tuner
Mix and Match
Просмотров 226Месяц назад
Mix and Match
Cutting Edge
Просмотров 305Год назад
Cutting Edge

Комментарии

  • @gamingmeetsmath
    @gamingmeetsmath 28 дней назад

    hello :)

  • @jakubgwozdz2780
    @jakubgwozdz2780 28 дней назад

    ruclips.net/user/shortsoAWJLoBlmuU - part 2 without any path finding

    • @p88h.
      @p88h. 28 дней назад

      yeah, tested that approach as well. Visually interesting, but slower than backwards BFS.

    • @jakubgwozdz2780
      @jakubgwozdz2780 28 дней назад

      @ really? I’d say union-find on preallocated array is as fast as possible, most def faster than bfs, but maybe I don’t see something here…

    • @p88h.
      @p88h. 28 дней назад

      @@jakubgwozdz2780 BFS is O(N), and in this particular case, N~=length of the last path before its blocked, i.e. around 500. Sure it also needs to check a bunch of removed blocks (~1000) but mostly doesn't need to do anything about them. With UF you either join all the available spaces and go backwards, processing ~3000 union operations (free blocks at the end+removed blocks until start and end are joined), or join blocks and go forward, also processing around ~3000 unions until the corner sets are joined. Even if UF was O(1) it would stil lbe slower here, and with that extra log* it's much slower.

    • @p88h.
      @p88h. 28 дней назад

      ​@@jakubgwozdz2780 in practical terms, my part1 takes ~14 us (single BFS but with still lots of points available), and part2 BFS takes ~4 us.

  • @plusplusplus9837
    @plusplusplus9837 Месяц назад

    If you're doing it in Zig this year, is the old python viz library you posted about on reddit being adapted to Zig? Or have you tried new viz techniques?

    • @p88h.
      @p88h. Месяц назад

      @@plusplusplus9837 I'm using raylib this time - the utility classes around it are written similarly to what I used for Pygame, but specifics are a bit different. It's close to what I used two years ago for C#

  • @hartree.y
    @hartree.y Месяц назад

    Very nice. What did you use for visualisation?

    • @p88h.
      @p88h. Месяц назад

      Raylib -- source is here: github.com/p88h/aoc2024/blob/main/vis/vis12.zig

  • @BrentNordquist
    @BrentNordquist Месяц назад

    Beautiful! 💯

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

    super duper cool -- perhaps my fave visualization of aoc2023

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

    certified moment

  • @rag.animations
    @rag.animations Год назад

    What

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

    Blue. No. White. What a video

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

    what tool are you using to visualize this?

    • @p88h.
      @p88h. Год назад

      PyGame. Sources here: github.com/p88h/aoc2023/blob/main/vis/day08.py

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

      @@p88h. thanks

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

    very noice

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

    super cool!

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

    It's an algorithm showing me the algorithm to find all areas of a maze!

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

    thanks algorithm

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

    thank you RUclips algorithm, very satisfying

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

    TheoTown?

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

    Is this an arg?

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

      no read the description

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

      it is. do not believe the description. they are lying to you

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

      @@bananozavr i concur

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

      Ah my @ didnt work, oh well

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

      Yeah sure. Everything is an ARG. You are being lied to! OooOOoooOOoooooOoo

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

    Mirrors? Cool

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

    RUclips really thought this was a Christmas video and started recommending it. On another note, this was interesting. What’s the full context?

    • @p88h.
      @p88h. Год назад

      adventofcode.com/2023/day/19 Well it is Christmas related, somewhat.

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

    I don’t understand what I just watched, but it’s beautiful

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

    I did something very similar: ruclips.net/video/yMYJRpM2UWI/видео.html

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

    From Advent of Code?

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

    For some reason my brain is playing flight of the bumble bees

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

      and now all of us too 🐝

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

    cool

  • @防火长城
    @防火长城 Год назад

    literal llm weights

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

    Platonic? More like “Fantastic!” 👍

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

    What is this?

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

    Baited

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

    One day RUclips algorithm will send this video to millions of people who opens expecting Daft Punk

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

    Не видел ещё таких условий, обычно у всех статичная основа. Это интересно

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

    oh, that's how you've done it

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

    does the unit turn to the right when touching an obstacle?

    • @p88h.
      @p88h. 2 года назад

      It follows an input sequence, which needs to be adjusted when hitting obstacles. See adventofcode.com/2022/day/22 for rules of this task.

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

      @@p88h. great thanks for you for popularising this programming! I wouldn't know anything about it without your videos

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

    Is it polish notation, like (+ 1 2) instead of 1+2?

    • @p88h.
      @p88h. 2 года назад

      Similar, but really it's just stack-based notation - numbers get pushed on the stack, operations pull last two numbers from the stack and push the result. Any AST can be represented this way, similar to RPN, but notation-wise, it's like reversed-RPN.

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

    WHERE SONG

  • @the-ux9ec
    @the-ux9ec 2 года назад

    What is this?

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

    I expected Daft Punk, lol

    • @p88h.
      @p88h. 2 года назад

      Well I can't just like add it here, unfortunately ... But plays 'along' really well ;P

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

    Что это?

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

    How about code?)

    • @p88h.
      @p88h. 2 года назад

      github.com/p88h/aoc2022/blob/main/vis/vis22.cs

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

      @@p88h. thx

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

    Wow, that's looks cool

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

    Personally, a favourite Christmas activity of mine.

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

    Me watching that boulder flush steam like 👁️👁️

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

    I am here and confused

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

    me and the boys at the sleepover 🤠

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

    Is this the example from part 1 ?

    • @p88h.
      @p88h. 2 года назад

      Yes, this is the full sample input.

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

    holy crap this is such a cool way to visualize this

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

    POV: You are a helicopter

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

    I don’t know what I just watched but cool

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

    Tree

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

    love it

  • @dit-zy
    @dit-zy 3 года назад

    So neat! What are the rules they follow?

    • @p88h.
      @p88h. 3 года назад

      The basic rules are the green ones move right, and the red ones move down - unless they are blocked. The full explanation is here: adventofcode.com/2021/day/25