Lurker News
Algs/DS were my first love in CS. Nowadays, all we hear about is AI/ML. There must be hardware/software improvements coming from or necessitating fundamental Algs/DS research.

Care to share any of the favorite recent results?
Are there big fields still making gains behind all this computing surge?

Comments (211) 45 threads

Earlier comments
shae2 replies#
I'd suggest looking up succinct data structures, cache oblivious data structures, and probabilistic data structures.
mamcx#
Anything specific that could cover what "NDArray-like" structures are? In concrete, to make row-oriented/column-oriented hybrids?

(I wish to found a way to encode the equivalent of `struct Data{col1:Vec<..>, ...>})

LukeEF#
Succinct data structures ftw.
bmitc3 replies#
I'm interested in knowing about graph layout algorithms that allow specific constraints. If anyone knows about these things please let me know. I do not, but I have a use case for them.

For example, the constraints may be:
1) The graph is read left to right. This informs the layout such that those spiral and circular graph layout algorithms that blow out the graph do not work.
2) Try to keep certain types of nodes vertical aligned, so that they lie on the same horizontal line.
3) Minimize edge crosses.
4) Have the edges be not lines but paths made up of horizontal and vertical lines. This probably requires some path finding as well.
5) Be able to live update in the sense that a new node or edge entry into the graph does not drastically re-layout the graph for reasonable inserts.

alejohausner3 replies#
Look at graphviz. Their "dot" program satisfies 1 through 4. Your fifth wish is hard to satisfy.
eru1 reply#
You could probably satisfy 5 with some kind of (mixed integer) linear optimization or so.
bmitc1 reply#
Would you mind elaborating? Thanks ahead of time.

Continue this thread — 1 reply

bmitc#
I have looked at Graphviz before, but wasn't aware of anything there that helped with these constraints Do you happen to have any specofic pointers?

And it may be the case that (5) is actually the most implrtant constraint. Haha.

graphviz#
Hi, Alejo Hausner!

We worked on this problem, too, and Gordon Woodhull created a working system for dynamic hierarchical layout. I think he also incorporated an improved node positioning and edge routing algorithm of Ulrik Brandes. The code is still available here, I think: https://www.dynagraph.org
It was great work. We meant well, but were overextended for the resources we had. Gordon is a brilliant programmer.

alpaca128#
Some time ago I found an interesting PDF about graph layout algorithms in general [0]. Nothing groundbreaking, but it also covers approaches for orthogonal layouts (aka only horizontal/vertical edge paths like in your fourth condition) and I liked how straightforward it is.

To meet all these criteria would indeed be amazing. For 5) you may get semi-reliable results by doing the layout deterministically and optimize for things like short edge length, so adding new nodes would just push around the rest a little bit. But good luck avoiding crossings at the same time.
[0] https://cs.brown.edu/people/rtamassi/papers/gd-tutorial/gd-c...

giogadi5 replies#
IMO the hip new thing in algorithms and data structures is to Just Use Arrays For Everything
bckr2 replies#
Got a source?
mejutoco#
I think OP is talking about ML and matrix (array) multiplication to learn the right weights in a neural network.
dymk#
Surely it’s the interesting things built on top of the arrays?
yamazakiwi1 reply#
Are you talking about Vector DB's?
masklinn#
Also ECS / columnar data?
eternalban1 reply#
When skirt lengths change and we observe no measurable change in human anatomy, that's fashion and to follow fashion is "hip".

When the computing platform changes and you have to start paying attention to L-level caches and counting your bytes (so you can do you big compute in memory), and use n cores, and then arrays are adopted, that is not fashion; so not "hip", rather modern.

kmstout1 reply#
Isn't everything since the Renaissance considered modern?
eternalban#
touche. Exactly so, just like how every political system going forward will be "democratic". /g
ygra#
Interesting and similar here is that there are a bunch of algorithms from days of yore that made sense with performance back then, but these days where the CPU absolutely doesn't care whether it's comparing a single byte or 32 bytes at once this can shift some algorithms towards much simpler ones. E.g. for substring searches this page is rather interesting: http://0x80.pl/articles/simd-strfind.html which posits that some of the older algorithms were built with the assumption that comparing parts of memory is more expensive than a table lookup, which is in many cases no longer true.

Load more comments