An interesting data structure with search time O(sqrt n)
forum.dlang.org
An interesting data structure with search time O(sqrt n)
1–10 of 76 posts
Re: An interesting data structure with search time O(sqrt n)
#2Re: An interesting data structure with search time O(sqrt n)
#3> The short of it is, arrays are king. No two ways about it - following pointers is a losing strategy when there's an alternative.
Why is following pointers a losing strategy? If you have a contiguous array (a vector), then the pre-fetcher can do its magic and give you a psuedo-cache level. (I may be wrong about this assumption).
Re: An interesting data structure with search time O(sqrt n)
#4This is a very interesting discussion, but I'd like to ask a question about this in particular: > The short of it is, arrays are king. No two ways about it - following pointers is a losing strategy when there's an alternative. Why is following pointers a losing strategy? If you have a contiguous array (a vector), then the pre-fetcher can do its magic and give you a psuedo-cache level. (I may be wrong about this assum…
Re: An interesting data structure with search time O(sqrt n)
#5This is a very interesting discussion, but I'd like to ask a question about this in particular: > The short of it is, arrays are king. No two ways about it - following pointers is a losing strategy when there's an alternative. Why is following pointers a losing strategy? If you have a contiguous array (a vector), then the pre-fetcher can do its magic and give you a psuedo-cache level. (I may be wrong about this assum…
Re: An interesting data structure with search time O(sqrt n)
#6This is a very interesting discussion, but I'd like to ask a question about this in particular: > The short of it is, arrays are king. No two ways about it - following pointers is a losing strategy when there's an alternative. Why is following pointers a losing strategy? If you have a contiguous array (a vector), then the pre-fetcher can do its magic and give you a psuedo-cache level. (I may be wrong about this assum…
Of course things become more complicated when you start having larger amounts of data, and you want to skip over most of it, but still keep the cache happy.
Re: An interesting data structure with search time O(sqrt n)
#7This context includes not only the characteristics of the (typical) systems using the data layout, but also the typical use of that structure (read heavy, write heavy, some mix). The cost of memory is also an issue. For a typical end user program the bottleneck is almost always going to be the user. For larger scale programs or more performance intensive areas of a program (E.G. graphics languages or other large data operations) different tradeoffs should be evaluated.
Re: An interesting data structure with search time O(sqrt n)
#8Even just that question: "Why?" and the corresponding answer are worth a read.
Re: An interesting data structure with search time O(sqrt n)
#9 The Wizard of Oz
The Third Man
Citizen Kane
All About Eve
Das Cabinet des Dr. Caligari. (The Cabinet of Dr. Caligari)
Modern Times
A Hard Day's Night
The Godfather
E.T. The Extra-Terrestrial
Metropolis
It Happened One Night
Singin' in the Rain
Laura
The Adventures of Robin Hood
Inside Out
Repulsion
Boyhood
North by Northwest
King Kong
Snow White and the Seven Dwarfs
What would this data structure look like?Re: An interesting data structure with search time O(sqrt n)
#10I may have missed something, though :-|