[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What's your favorite data structure and why? inb4 >Depends

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 35
Thread images: 2

File: Hash_table_5_0_1_1_1_1_0_SP.svg.png (91KB, 1179x1024px) Image search: [Google]
Hash_table_5_0_1_1_1_1_0_SP.svg.png
91KB, 1179x1024px
What's your favorite data structure and why?

inb4
>Depends on what I'm doing

I know, situation matters, but in general which do you like best?
>>
>>62244381
Vector of structs
>>
Hashtables/dictionaries
>>
>>62244381
rbtree
>>
>>62244416
Why do you like red/black trees?

quadtrees are pretty neat imo
>>
>>62244381
Any persistent balanced binary tree, treap is simple and fast, they are the fucking best
>>
>>62244545
This
>>
>>62244381

B+ trees because database fag.
>>
skip list
>>
An enum with a string and an integer
>>
>>62244411
this++
>>
>>62244381

Hashed Map/Set always feels nice to use even though I use them too much.
>>
>>62244381
All kinds of trees but I'm into acceleration structures for path tracing so I'd say Bounding Volume Hierarchies
>>
vEB tree
>>
>>62245805

this#
>>
>>62245891
You are an idiot
>>
>>62244381
double ended queues, they solve so many problems with multithreading
>>
Multimap. Comfy af
>>
>>62244381
Merkle DAGs
>>
Dictionaries with dictionaries with dictionaries
Fight me
>>
>>62244381

ring buffer
>>
relational database
>>
xor list
also this >>62246374
>>
Just simple arrays
>>
map
>>
pojos
>>
Intel™ ringbus® :^)
>>
Kademlia routed DHT
>>
quadtree
>>
>>62244381
Hash array mapped trie
>>
File: mods-are-gay.png (52KB, 613x410px) Image search: [Google]
mods-are-gay.png
52KB, 613x410px
>>62244381
This thread is going to get deleted fast. Pic related.

>>62244488
>Why do you like red/black trees?
Can implement dictionaries / hashmaps with them with reasonable memory usage to CPU usage trade-off.
>>
>>62246441
xorlists are neat
>>
Doubly linked list, especially on devices with no MMU :^)
>>
Depends on what I'm doing.
>>
>>62247695
>no MMU
Wouldn't that imply a flat address space (aka direct physical memory access)?

Wouldn't that also imply that you can just reserve part of your RAM to your data structure and just calculate offsets, rather than having to dereference a list pointer every time?
Thread posts: 35
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.