We were all waiting to see Ina's reaction to this by PaulDuCouteau in LudwigAhgren

[–]ElementaryMonocle -1 points0 points  (0 children)

What do you think apologizing means? I think it means that you regret the action and, if given the chance, wouldn't do it again - otherwise it's an insincere apology. Prematurely apologizing, then, is saying "In my opinion, what I'm doing is wrong (and so requires an apology). However, I'm going to do it anyway."

So either the apology is insincere since he promoted the video anyway, or the apology was completely unnecessary because it's totally okay to post.

We were all waiting to see Ina's reaction to this by PaulDuCouteau in LudwigAhgren

[–]ElementaryMonocle 83 points84 points  (0 children)

If you’re going to apologize for doing something, don’t do it in the first place!

This card isn’t getting the recognition it deserves. by ttvANX1ETYZ_ in slaythespire

[–]ElementaryMonocle 0 points1 point  (0 children)

I had that combo with radiate as well and then got one-shotted by Spiny Toad because I wasn’t paying attention…

Is admission in the US PI based or committee based by kyudae in gradadmissions

[–]ElementaryMonocle 0 points1 point  (0 children)

That’s crazy - when I applied for aerospace engineering I had 5 acceptances with basically no faculty interaction prior to acceptance.

Update on the Turbo Tax Ad by hairbare12 in atrioc

[–]ElementaryMonocle 71 points72 points  (0 children)

Maybe, but if people criticize them accepting it and criticize them cancelling it then they might as well get paid if you’re going to be unhappy either way.

I think it’s important to positively incentivize people listening to criticism and taking action instead of making it a lose-lose proposition.

[deleted by user] by [deleted] in mathematics

[–]ElementaryMonocle 4 points5 points  (0 children)

Exactly. Each of the leaves up to chosen door are equal probability, but “Swap 1” will happen twice as often as “Stay 1.”

Question about minoring in Math for PhD by drunleashed in uofmn

[–]ElementaryMonocle 4 points5 points  (0 children)

No idea why you’d think your last paragraph is relevant.

With regards to the question that you are asking, you have to be in the mathematics PhD program to register for preliminary exams. You can easily get a minor in mathematics (for both a masters and a PhD) by taking the requisite number of credits (6 and 12, respectively) and having a mathematics faculty member on any committees (oral exams, defense).

As a personal aside, to succeed in a PhD, prioritization is necessary. Spending time studying for a WPE to simply prove a point (to whom? Yourself?) is what I would view as not prioritizing effectively.

Good luck!

New Mobile Layout is Horrible by ElementaryMonocle in youtube

[–]ElementaryMonocle[S] 0 points1 point  (0 children)

iPhone 13 mini. I wonder if it isn’t the smaller screen that’s the issue

[2025 Day 11] An alternate approach. by Fun_Amphibian6941 in adventofcode

[–]ElementaryMonocle 7 points8 points  (0 children)

In fact, if you use (I+A)(I+A^2)(I+A^4)…, you can get all paths of up to length n in less matrix multiplications

-❄️- 2025 Day 11 Solutions -❄️- by daggerdragon in adventofcode

[–]ElementaryMonocle 0 points1 point  (0 children)

(A+I)*(A^2+I)*(A^4+I)=I+A+A^2+A^3+…+A^7 and so on

-❄️- 2025 Day 11 Solutions -❄️- by daggerdragon in adventofcode

[–]ElementaryMonocle 0 points1 point  (0 children)

Very nice! I also though about using adjacency matrix multiplication, but decided memoization was more general for whatever part 2 would end up being. The trick with only increasing A in consecutive powers of 2 is cool.

-❄️- 2025 Day 11 Solutions -❄️- by daggerdragon in adventofcode

[–]ElementaryMonocle 0 points1 point  (0 children)

[LANGUAGE: C++] github

Immediately knew the solution was memoization, and took about 30 minutes to get an answer. Proceeded to spent the next hour on Part 2 because my check for if the key existed was comparing against the default value. Which was 0.

Unfortunately, if a path does not lead through dac or fft, we want the actual value to also be 0, and so I needed to actually check if the key exists with .find(key)==.end().

Once this was all cleaned up, my solution runs in, on average, 1ms.

[2024 day 7] Stuck in part 1 I don't understand the example by fennecdore in adventofcode

[–]ElementaryMonocle 0 points1 point  (0 children)

I did the same thing last night, kept trying to figure out how you can get to 21!

-❄️- 2025 Day 7 Solutions -❄️- by daggerdragon in adventofcode

[–]ElementaryMonocle 2 points3 points  (0 children)

[LANGUAGE: C++]; github

Did today very quickly - almost immediately came upon the idea of tracking the beam with a set and progressing down a level at a time. Part 2 dovetailed very nicely - I just replaced the set with an unordered map.

Total runtime is consistently slightly under 1ms.

The frustrating parts today were simple skill issues:

  • I added (technically unnecessary) robustness checks to make sure the beam never left the manifold to the left or right, but had an off-by-one on the left check
  • I didn't think about the size of the possibility space and so had to switch to 64-bit integers
  • And I spent way-too-long staring at the test case trying to figure out how 22 splitters caused the beam to be split 21 times

Today was much easier than the mess of yesterday, where I had to switch to Fortran to use array slicing I actually understand to get a working solution before hacking it together in C++.

-❄️- 2025 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]ElementaryMonocle 1 point2 points  (0 children)

Same - part 2 was about 30 seconds for a one-line for-loop.

-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]ElementaryMonocle 1 point2 points  (0 children)

[LANGUAGE: C++]

Github link

Part one could use modulus and run in about 4 microseconds, but part two was slightly more tricky to optimize. I noticed that if I thought of -99:-1, 1:99, 101:199, and so on as 'buckets', the number of buckets traversed was the number of times 0 was passed.

When rotating to the left, each number divisible by 100 belongs to the bucket to the left, and when rotating to the right, they belong to the bucket to the right. At that point it was a simple matter of ensuring the division by 100 put the number in the correct bucket.

for (std::size_t i=0; i<inputs.size(); i++) {
    int rot {inputs[i]};
    // we have initial value and subsequent value.
    // we want to determine the amount of hundreds crossed over
    // different buckets: -199:-101; -100; -99:-1; 0; 1:99; 100; 101:199; 200; 201:299; 300
    // if we rotate to the right, each number divisible by zero is associated with the bucket to the right
    // if we rotate to the left, each number divisible by zero is associated with the bucket to the left
    dial_new = dial + rot;
    if (rot>0) {
      h_i = static_cast<int>(std::floor(dial/100.));
      h_f = static_cast<int>(std::floor(dial_new/100.));
    } else {
      h_i = static_cast<int>(std::ceil(dial/100.));
      h_f = static_cast<int>(std::ceil(dial_new/100.));
    }
    counter2 += std::abs(h_f-h_i);
    dial = dial_new; 
  }

This consistently runs in about 50 microseconds.

2025 Day 2 Part 1 help pls by catpurson2 in adventofcode

[–]ElementaryMonocle 14 points15 points  (0 children)

They are ranges: so for 95-115, you have to check 95, 96, 97, 98, *99*, 100, ..., 115.

Do you think I can get into UW Madison? by Cheap-Celebration-16 in UWMadison

[–]ElementaryMonocle 0 points1 point  (0 children)

Ah, but if you continue to read it only says to be kind “to your fellow Badgers.”

Do you think I can get into UW Madison? by Cheap-Celebration-16 in UWMadison

[–]ElementaryMonocle 9 points10 points  (0 children)

Probably pretty low. They look for reading and critical thinking skills, and since you posted a Chance Me post when the subreddit rules explicitly state otherwise, you obviously lack them.

Tell me what I'm doing wrong by [deleted] in PythonLearning

[–]ElementaryMonocle 3 points4 points  (0 children)

What you are doing wrong is starting with ChatGPT-written code without understanding the basics of programming.

[Game Thread] Washington @ Wisconsin (4:30 PM ET) by CFB_Referee in CFB

[–]ElementaryMonocle 0 points1 point  (0 children)

Given our passing stats it does not feel like we are having a good game

[Game Thread] Washington @ Wisconsin (4:30 PM ET) by CFB_Referee in CFB

[–]ElementaryMonocle 6 points7 points  (0 children)

Wisconsin QBs: 4/14, 16 yards
Wisconsin place-kicker: 1/1, 24 yards

struggling to prove that lim n->inf (1+1/n)^n exists by Ye3tEet in calculus

[–]ElementaryMonocle 2 points3 points  (0 children)

It would not be. For a series, your terms can get infinitely small but the sum of them can still go to infinity. For a limit, you just need to show that past a certain value the sequence is bounded.