photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

255
active users

#sorting

0 posts0 participants0 posts today

"Last year, in a study that was presented at the Foundations of Computer Science conference in Chicago, a team of seven researchers described a way to organize items that comes tantalizingly close to the theoretical ideal. The new approach combines a little knowledge of the bookshelf’s past contents with the surprising power of randomness."

quantamagazine.org/new-book-so

Quanta Magazine · New Book-Sorting Algorithm Almost Reaches PerfectionBy Steve Nadis

Y'know,

I really miss an algorithm for my feed.
People tend to go on barricades when they hear this. But I would wager they are burnt from "commercial" application of such.

I see too many posts I really don't car eabout, like knottin' a sweater. And the tech posts I never see as the current "algorithm" is "show all post by date, newest on top".

A self-hosted, under your control configured algorithm can be benevolent.

As Mastodon is right now, It is borderlining useless. Interessting (to me) posts need to happen in that moment I am on the site. An hour later (or less) and they are gone.

And I do not have time to keep reading continuously.

The new `compareLex()` comparator in thi.ng/compare is another useful addition included in recent #ThingUmbrella updates (last week). It's intended for short tag-like strings containing compounds of words and numbers (e.g. "2d" or "base36"). It splits strings at the first digit/non-digit boundary and if both inputs (in terms of comparison) happen to contain such a boundary, compares each of these chunks lexicographically (using numeric ordering if both sides are numeric).

The attached short code example shows the difference to the (almost pointless, in this case) JS native sort logic...

(Ps. You can also see it in action in the sorted tag list of the previously linked thi.ng tag browser...)

(Pps. Updated code snippet, earlier copy/paste error...)

New study, impressive result: "Here we show how #AI can go beyond the current state of the art [in #sorting efficiency] by discovering hitherto unknown routines…We formulated the task of finding a better sorting routine as a single-player game. We then trained a new deep reinforcement learning agent, AlphaDev, to play this game. AlphaDev discovered small sorting algorithms from scratch that outperformed previously known human benchmarks."
nature.com/articles/s41586-023

NatureFaster sorting algorithms discovered using deep reinforcement learning - Nature Artificial intelligence goes beyond the current state of the art by discovering unknown, faster sorting algorithms as a single-player game using a deep reinforcement learning agent. These algorithms are now used in the standard C++ sort library.

Do you sort your music by ARTIST, TITLE, or TRACK?

I used to make an MP3 Data CD for driving in my car. Custom made, maximum songs, usually enough for a season. Now I do it on my phone.

I don't like default 'ARTIST' list.
4 songs by Bing Crosby then Bob Marley?
I sort my MP3s by year; random songs chosen from each decade.

I start playing at whatever year I like.
I rename each track to appear as YEAR, SONG, Artist

I have a program that renames them
#MP3 #Music #Sorting #Playlist