Giter VIP home page Giter VIP logo

aoc-clj's People

Contributors

klsmithphd avatar

Watchers

 avatar

aoc-clj's Issues

2016 Day14 Part 2 is too slow as-is

Some thoughts on speeding things up:

  • Might think about caching all the indices that have hashes with five characters. These are also valid three-character sequence candidates in and of themselves, but still need to look for the three-character hashes too
  • Can maybe create a hash-lookup from the repeated character to the index/offset. Could probably still keep the windowed approach I currently have in place.
  • Don't do the stretched hashing on strings, just do it on the bytes and then convert to strings at the end

2016 Day 18 Part 2 soln is too slow

Either there's a recurrence in the pattern so you don't need to simulate 400,000 rows, or there's a much faster implementation of figuring out the next row values (likely just using bit operations instead of the string checks I'm doing now.)

2016 Day 16 Part 2 soln too slow

The iterative approach to generating the fill string is probably the thing that's too slow, particularly the part that reverses the initial string.

An alternative implementation ought to be able to generate the entire string in one go (without iteration/recursion), which could avoid the intermediate creation of temp string sequences.

Soln to 2016, Day 23, Part 2 is far too slow

The description that accompanies part2 hints that you probably need to actually interpret the "assembunny" code and figure out what it's essentially doing or else the operations are going to take forever.

It says, "As you run the program with this new input, the prototype computer begins to overheat. You wonder what's taking so long, and whether the lack of any instruction more powerful than "add one" has anything to do with it. Don't bunnies usually multiply?"

Letting the program run, I did eventually get the correct solution, but it takes a long time.

Nondeterminism in the breakout game from 2019 day 13

When the game self-plays, timing issues can cause the "player" to lose sometimes.
Each run can result in a different outcome, whereas it ought to be possible for the solution to be
completely deterministic.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.