Human-made Content Premium, Human-generated Content
Trilobite

Trilobite

Bruce Ediger

Trilobite: Eyewitness to Evolution

Richard Fortey, 2001, ISBN 978-0375706219

Mergesort Investigation Summary

Mergesort Investigation Summary

Bruce Ediger
Mergesort Investigation 14 - count of comparisons

Mergesort Investigation 14 - count of comparisons

Bruce Ediger

My recursive mergesort algorithm, and the wikipedia bottom-up) algorithm read and write the same list nodes in the same order, for list lengths that are powers of two. Something other than mere data reading and pointer writing causes abrupt performance drops at linked list lengths of 2N+1 nodes.

I decided to count the number of comparisons used in merging already sorted lists.

Wordle Wrap Up

Wordle Wrap Up

Bruce Ediger

There’s a last time for everything. My last Wordle was number 1234.

I decided I can no longer give anything, not views, not ad views, not clicks, to the pro-Trump New York Times. I am rage quitting Wordle.

Here’s my Wordle wrap up stats.

Mergesort Investigation 12 - simulate recursive algorithm with explicit call stack

Mergesort Investigation 12 - simulate recursive algorithm with explicit call stack

Bruce Ediger

I wrote variants of recursive mergesort that simulate function call recurision by iteration with an explicit stack of activation records. This is an effort to try to understand the abrupt performance drops that the wikipedia bottom up algorithm exhibits at some linked list lengths.

Incidentally, these two algorithms both satisfy the Daily Coding Problem problem statement. Their simulated call stack could potentially overflow for extremely long lists, but those stacks wouldn’t have to be much bigger to accomodate those long lists.