Readit News logoReadit News

Deleted Comment

quokka commented on Everyone gets bidirectional BFS wrong   zdimension.fr/everyone-ge... · Posted by u/zdimension
quokka · 8 months ago
I saw this via Lobsters yesterday and enjoyed reading it. The animations helped me understand bidiBFS.

But I'm confused by the example showing the buggy version of the algorithm fail. This is in the section "Finding the Wrong Path".

Consider the state of the algorithm after the first step. We've explored S and added its neighbors to the queue, Q = [T, a1, b1].

In the next step we explore T, the first node in the queue. We add its neighbors , a3 and b2, to the queue.

Now, I would expect the new value of Q to be something like [a1, b1, a3, b2] (depending on the order we add T's neighbors). In this case we would process a1, and b1 next, notice that b1 is adjacent to b2, and correctly find the shortest path S-b1-b2-T.

But the animation actually shows that after step 2, Q = [a1, a3, b1, b3]. In other words, a3 didn't join the back of the queue but jumped in front of b1. This is what leads to the buggy behavior that is shown.

So as I understand the example, this would have worked fine if Q were actually a queue. But as shown it is not.

Why is this?

quokka commented on Detect Migrating Birds with a Plastic Dish and a Cheap Microphone   spectrum.ieee.org/detect-... · Posted by u/cyberlimerence
pfdietz · a year ago
The AI program for recognizing bird vocalizations, Merlin, is available on your phone. It's really changed how birding is done. It will detect and identify the species of birds in real time as you are walking around, often before you yourself recognize them (if you are even able to).
quokka · a year ago
Merlin is fantastic!

But it it's not 100% accurate and currently focuses on birds from Canada, the US, and Europe.

quokka commented on Von Neumann's First Computer Program (1970)   dl.acm.org/doi/10.1145/35... · Posted by u/Cieplak
llm_trw · a year ago
Folklore is that Knuth hasn't used email since the 90s. You need to send dead trees to his secretary and hope she forwards it to him.
quokka · a year ago
There is an email address to send errors and such. A secretary prints them and he marks up the hard copy (if necessary) which is returned with a reward check (when appropriate).

I have received one actual email from him, when I pointed out an error in the balances at the Bank of San Serriffe (https://www-cs-faculty.stanford.edu/~knuth/boss.html).

The email looks like it was typed by him - the style is right and it is signed "Don" - but the From: address has someone else's name.

quokka commented on Knuth's Art of Computer Programming, V 4B, has gone into print   www-cs-faculty.stanford.e... · Posted by u/inetsee
quokka · 3 years ago
I'm somehow on that list twice, which looks like a bug. I wonder if there is a reward for finding an error in the reward list.
quokka · 3 years ago
He fixed the issue quickly after I sent an email.
quokka commented on Knuth's Art of Computer Programming, V 4B, has gone into print   www-cs-faculty.stanford.e... · Posted by u/inetsee
bugfix-66 · 3 years ago
I've been randomly skipping around inside these books for a long, long time. They're full of little gems that you won't find elsewhere.

For example, in Volume 4A there's a simple technique for comparing two pointers in bit-reversed form. This technique was patented by Hewlett-Packard as a method of randomizing search trees (treaps):

https://bugfix-66.com/fdb8bb4fa84cf810aa25ff40c88a13c1874410...

From Volume 3, here is by far the fastest method of sorting integers (Singleton's method), an algorithm I have used professionally several times (e.g., for beam search in a speech decoder):

https://bugfix-66.com/834f0677c85b23c0bf1047d3654ab7c27ff054...

Knuth's books are just packed with gems like that.

The meticulous high quality of the books is also remarkable. However, if you look very carefully you can find rare mistakes. I received payment from Knuth and have an account at his bank:

https://www-cs-faculty.stanford.edu/~knuth/boss.html

Getting your name on the above list was once a Hacker rite of passage.

quokka · 3 years ago
I'm somehow on that list twice, which looks like a bug. I wonder if there is a reward for finding an error in the reward list.
quokka commented on Ask HN: I miss Usenet. Are there any modern equivalents?    · Posted by u/mr_gibbins
iso1631 · 3 years ago
Google really destroyed that archive, there's posts from the 80s and 90s I know used to be in deja and in early google that just can't be found any more.
quokka · 3 years ago
Agreed. I posted a lot in the 90s, especially to groups like sci.math and rec.arts.books.tolkien, and there is almost no trace of any of it in Google groups.

When Google bought the Dejanews archives I thought it was good, because Google was good at search and I naively still believed that the company actually wanted to make all information accessible. It's a real shame that all of the old Usenet stuff is gone.

quokka commented on A toaster from 1949 is still smarter than any sold today   theverge.com/22801890/sun... · Posted by u/ourmandave
quokka · 4 years ago
Years ago I had one of these. It slowly stopped working and my wife got sick of it. Without any way to fix it I got rid of it, which I now regret. The toaster we have now browns unevenly and is wildly inconsistent from run to run.
quokka commented on Mozilla to put ads in Firefox address bar suggestions   support.mozilla.org/en-US... · Posted by u/mikro2nd
jarofgreen · 4 years ago
The blog seems pretty clear they will be asking for permission?

Tho not in the best way, I feel, but at least this is opt-in?

quokka · 4 years ago
I just checked, and it is on by default for me, too.
quokka commented on World's biggest wind turbine shows the disproportionate power of scale   newatlas.com/energy/world... · Posted by u/geox
Clewza313 · 4 years ago
> MingYang says the MySE 16.0-242 is just the start of its "new 15MW+ offshore product platform," and that it's capable of operating installed to the sea floor or on a floating base.

Am I reading that right? A tower 242 meters tall (read: a 70-floor skyscraper), with moving 118 meter blades, and they're proposing anchoring it to a floating base!?

quokka · 4 years ago
Apparently floating these monsters is now a solved problem. But doing maintenance on a 200 m tower bobbing in the waves is still a challenge.

I'm a subscriber so I don't know how soft the paywall is:

https://www.economist.com/science-and-technology/2021/07/21/...

u/quokka

KarmaCake day39November 21, 2013View Original