home.social

#data-structures — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #data-structures, aggregated by home.social.

fetched live
  1. @alcinnz I've recently learned about the _Tournament Tree_ data structure, which is a form of min (max) heap:

    geeksforgeeks.org/dsa/tourname

    It can be used to find the median of sorted arrays or to sort more elements than can fit into memory: for this, multiple sorted arrays are stored at the leafs of the tree while being built bottom-up (k-way merge).

    1/2

    #DataStructures #DataStructure #Algorithm #Algorithms

  2. @alcinnz I've recently learned about the _Tournament Tree_ data structure, which is a form of min (max) heap:

    geeksforgeeks.org/dsa/tourname

    It can be used to find the median of sorted arrays or to sort more elements than can fit into memory: for this, multiple sorted arrays are stored at the leafs of the tree while being built bottom-up (k-way merge).

    1/2

    #DataStructures #DataStructure #Algorithm #Algorithms

  3. @alcinnz I've recently learned about the _Tournament Tree_ data structure, which is a form of min (max) heap:

    geeksforgeeks.org/dsa/tourname

    It can be used to find the median of sorted arrays or to sort more elements than can fit into memory: for this, multiple sorted arrays are stored at the leafs of the tree while being built bottom-up (k-way merge).

    1/2

    #DataStructures #DataStructure #Algorithm #Algorithms

  4. @alcinnz I've recently learned about the _Tournament Tree_ data structure, which is a form of min (max) heap:

    geeksforgeeks.org/dsa/tourname

    It can be used to find the median of sorted arrays or to sort more elements than can fit into memory: for this, multiple sorted arrays are stored at the leafs of the tree while being built bottom-up (k-way merge).

    1/2

    #DataStructures #DataStructure #Algorithm #Algorithms

  5. @alcinnz I've recently learned about the _Tournament Tree_ data structure, which is a form of min (max) heap:

    geeksforgeeks.org/dsa/tourname

    It can be used to find the median of sorted arrays or to sort more elements than can fit into memory: for this, multiple sorted arrays are stored at the leafs of the tree while being built bottom-up (k-way merge).

    1/2

    #DataStructures #DataStructure #Algorithm #Algorithms

  6. Continuing on my series on fractional indexing, I come to the conclusion that it is a bit of a scam. You have to be very careful with the usage patterns of the indexed list to be sure the index key length does not get out of hand. While a nice concept, it somewhat reminds me of "two digits for the year are enough" or "a 32bit signed integer" is enough to store a time stamp.

    More rant details in my blog: blog.miamao.de/blog/2026-08/15

    #fractionalIndexing #dataStructures #algorithm #cs

  7. Continuing on my series on fractional indexing, I come to the conclusion that it is a bit of a scam. You have to be very careful with the usage patterns of the indexed list to be sure the index key length does not get out of hand. While a nice concept, it somewhat reminds me of "two digits for the year are enough" or "a 32bit signed integer" is enough to store a time stamp.

    More rant details in my blog: blog.miamao.de/blog/2026-08/15

    #fractionalIndexing #dataStructures #algorithm #cs

  8. Meanwhile found the technical term: fractional indexing.

    Discussed here: observablehq.com/@dgreensp/imp

    My (luxury) problem: it is not elegant. It wriggles through a maze of (special) cases.

    With arbitrary precision numbers it would be nearly trivial:
    1. append to list: last key + 1
    2. prepend to list: first key -1
    3. insert between a and b: (aKey+bKey)/2

    Only problem: 3. generates more significant bits than needed.

    Hints and boosts appreciated.

    #fractionalIndexing #algorithm #dataStructures

  9. Meanwhile found the technical term: fractional indexing.

    Discussed here: observablehq.com/@dgreensp/imp

    My (luxury) problem: it is not elegant. It wriggles through a maze of (special) cases.

    With arbitrary precision numbers it would be nearly trivial:
    1. append to list: last key + 1
    2. prepend to list: first key -1
    3. insert between a and b: (aKey+bKey)/2

    Only problem: 3. generates more significant bits than needed.

    Hints and boosts appreciated.

    #fractionalIndexing #algorithm #dataStructures

  10. My #datastructures and #algorithms textbook intro chapter just dropped a bar on me. This textbook came out in 1994 (which is a million years ago) and rings true to today. I think it’s always important to remember that EVERYTHING by and from the computer is a humankind choice. Things are this way because someone made the decision to make that way. None of this is “natural” and we made it and we can change it. Funny thing is I’m reading this all for the sake of learning game dev lol.

  11. My #datastructures and #algorithms textbook intro chapter just dropped a bar on me. This textbook came out in 1994 (which is a million years ago) and rings true to today. I think it’s always important to remember that EVERYTHING by and from the computer is a humankind choice. Things are this way because someone made the decision to make that way. None of this is “natural” and we made it and we can change it. Funny thing is I’m reading this all for the sake of learning game dev lol.

  12. My #datastructures and #algorithms textbook intro chapter just dropped a bar on me. This textbook came out in 1994 (which is a million years ago) and rings true to today. I think it’s always important to remember that EVERYTHING by and from the computer is a humankind choice. Things are this way because someone made the decision to make that way. None of this is “natural” and we made it and we can change it. Funny thing is I’m reading this all for the sake of learning game dev lol.

  13. My #datastructures and #algorithms textbook intro chapter just dropped a bar on me. This textbook came out in 1994 (which is a million years ago) and rings true to today. I think it’s always important to remember that EVERYTHING by and from the computer is a humankind choice. Things are this way because someone made the decision to make that way. None of this is “natural” and we made it and we can change it. Funny thing is I’m reading this all for the sake of learning game dev lol.

  14. My #datastructures and #algorithms textbook intro chapter just dropped a bar on me. This textbook came out in 1994 (which is a million years ago) and rings true to today. I think it’s always important to remember that EVERYTHING by and from the computer is a humankind choice. Things are this way because someone made the decision to make that way. None of this is “natural” and we made it and we can change it. Funny thing is I’m reading this all for the sake of learning game dev lol.

  15. AI has made Python more important than ever.

    But AI doesn't replace algorithms and data structures; understanding them is now even more valuable.

    The developers who thrive won't just order up generated code. They'll know what to ask for and why.

    @jaywengrow
    covers benchmarking, caching, Bloom filters, B-trees, randomization, and more—all in practical Python.

    pragprog.com/titles/jwpython2/

    #Python #AI #Algorithms #DataStructures

  16. AI has made Python more important than ever.

    But AI doesn't replace algorithms and data structures; understanding them is now even more valuable.

    The developers who thrive won't just order up generated code. They'll know what to ask for and why.

    @jaywengrow
    covers benchmarking, caching, Bloom filters, B-trees, randomization, and more—all in practical Python.

    pragprog.com/titles/jwpython2/

    #Python #AI #Algorithms #DataStructures

  17. AI has made Python more important than ever.

    But AI doesn't replace algorithms and data structures; understanding them is now even more valuable.

    The developers who thrive won't just order up generated code. They'll know what to ask for and why.

    @jaywengrow
    covers benchmarking, caching, Bloom filters, B-trees, randomization, and more—all in practical Python.

    pragprog.com/titles/jwpython2/

    #Python #AI #Algorithms #DataStructures

  18. AI has made Python more important than ever.

    But AI doesn't replace algorithms and data structures; understanding them is now even more valuable.

    The developers who thrive won't just order up generated code. They'll know what to ask for and why.

    @jaywengrow
    covers benchmarking, caching, Bloom filters, B-trees, randomization, and more—all in practical Python.

    pragprog.com/titles/jwpython2/

    #Python #AI #Algorithms #DataStructures

  19. AI has made Python more important than ever.

    But AI doesn't replace algorithms and data structures; understanding them is now even more valuable.

    The developers who thrive won't just order up generated code. They'll know what to ask for and why.

    @jaywengrow
    covers benchmarking, caching, Bloom filters, B-trees, randomization, and more—all in practical Python.

    pragprog.com/titles/jwpython2/

  20. 🚀 Dive into the world of data structures with our latest video, 'Stacks With SplStack.' Perfect for PHP devs looking to up their game! Watch now: phparch.com/p/2024/01/stacks-w #PHP #DataStructures @scottkeckwarren

  21. 🚀 Dive into the world of data structures with our latest video, 'Stacks With SplStack.' Perfect for PHP devs looking to up their game! Watch now: phparch.com/p/2024/01/stacks-w #PHP #DataStructures @scottkeckwarren

  22. 🚀 Dive into the world of data structures with our latest video, 'Stacks With SplStack.' Perfect for PHP devs looking to up their game! Watch now: phparch.com/p/2024/01/stacks-w #PHP #DataStructures @scottkeckwarren

  23. 🚀 Dive into the world of data structures with our latest video, 'Stacks With SplStack.' Perfect for PHP devs looking to up their game! Watch now: phparch.com/p/2024/01/stacks-w #PHP #DataStructures @scottkeckwarren

  24. 🚀 Dive into the world of data structures with our latest video, 'Stacks With SplStack.' Perfect for PHP devs looking to up their game! Watch now: phparch.com/p/2024/01/stacks-w #PHP #DataStructures @scottkeckwarren

  25. Google IDX Product Manager Kirupa Chinnathambi writes a code-backed, step-by-step review of Dijkstra's famous graph algorithm, depth, and breadth first search, touching up on Bellman-Ford and A*.

    This reminded me of a uni assignment where we recommended shortest path routes to passengers based on geo data from London Tube stations, using A* to compute them.

    "Dijkstra's Shortest Path Algorithm"

    kirupa.com/data_structures_alg

    #algorithms #datastructures #graphs #dfs #bfs #dijkstra #astar #compsci

  26. Google IDX Product Manager Kirupa Chinnathambi writes a code-backed, step-by-step review of Dijkstra's famous graph algorithm, depth, and breadth first search, touching up on Bellman-Ford and A*.

    This reminded me of a uni assignment where we recommended shortest path routes to passengers based on geo data from London Tube stations, using A* to compute them.

    "Dijkstra's Shortest Path Algorithm"

    kirupa.com/data_structures_alg

    #algorithms #datastructures #graphs #dfs #bfs #dijkstra #astar #compsci

  27. Google IDX Product Manager Kirupa Chinnathambi writes a code-backed, step-by-step review of Dijkstra's famous graph algorithm, depth, and breadth first search, touching up on Bellman-Ford and A*.

    This reminded me of a uni assignment where we recommended shortest path routes to passengers based on geo data from London Tube stations, using A* to compute them.

    "Dijkstra's Shortest Path Algorithm"

    kirupa.com/data_structures_alg

    #algorithms #datastructures #graphs #dfs #bfs #dijkstra #astar #compsci

  28. Google IDX Product Manager Kirupa Chinnathambi writes a code-backed, step-by-step review of Dijkstra's famous graph algorithm, depth, and breadth first search, touching up on Bellman-Ford and A*.

    This reminded me of a uni assignment where we recommended shortest path routes to passengers based on geo data from London Tube stations, using A* to compute them.

    "Dijkstra's Shortest Path Algorithm"

    kirupa.com/data_structures_alg

    #algorithms #datastructures #graphs #dfs #bfs #dijkstra #astar #compsci

  29. Google IDX Product Manager Kirupa Chinnathambi writes a code-backed, step-by-step review of Dijkstra's famous graph algorithm, depth, and breadth first search, touching up on Bellman-Ford and A*.

    This reminded me of a uni assignment where we recommended shortest path routes to passengers based on geo data from London Tube stations, using A* to compute them.

    "Dijkstra's Shortest Path Algorithm"

    kirupa.com/data_structures_alg

    #algorithms #datastructures #graphs #dfs #bfs #dijkstra #astar #compsci

  30. I start my Data Structures and Algorithms course today. A summer course I failed out of when I first tried to get a computer science degree. I’m gonna rock this course 😤. I have been studying on my own and at the very least I’m familiar with all the different #datastructures and #algorithms one would see in this course. I just have to make sure I really get the fundamentals patterns and understanding of them correct this time around

  31. I start my Data Structures and Algorithms course today. A summer course I failed out of when I first tried to get a computer science degree. I’m gonna rock this course 😤. I have been studying on my own and at the very least I’m familiar with all the different #datastructures and #algorithms one would see in this course. I just have to make sure I really get the fundamentals patterns and understanding of them correct this time around

  32. I start my Data Structures and Algorithms course today. A summer course I failed out of when I first tried to get a computer science degree. I’m gonna rock this course 😤. I have been studying on my own and at the very least I’m familiar with all the different #datastructures and #algorithms one would see in this course. I just have to make sure I really get the fundamentals patterns and understanding of them correct this time around

  33. I start my Data Structures and Algorithms course today. A summer course I failed out of when I first tried to get a computer science degree. I’m gonna rock this course 😤. I have been studying on my own and at the very least I’m familiar with all the different #datastructures and #algorithms one would see in this course. I just have to make sure I really get the fundamentals patterns and understanding of them correct this time around

  34. I start my Data Structures and Algorithms course today. A summer course I failed out of when I first tried to get a computer science degree. I’m gonna rock this course 😤. I have been studying on my own and at the very least I’m familiar with all the different #datastructures and #algorithms one would see in this course. I just have to make sure I really get the fundamentals patterns and understanding of them correct this time around

  35. > Omg I showed that PR to our writer just last week ... . Even envisioned switching our ink_compiler to see what's what, but figured I'd wait a bit to see if it was merged in the main repo. I couldn't find an update to WritingWithInk but happy to be able to read more in that blogpost! Awesome work.

    Apparently my 'stacks in Ink' post has a fan! As an aside, if you've enjoyed or admired something you've read/used/remembered today and you know who created it: let them know! You'd be surprised how little positive feedback even the most 'popular' projects get, and seeing it is a massive mental health boost to whoever created the thing™ you like so much.

  36. > Omg I showed that PR to our writer just last week ... . Even envisioned switching our ink_compiler to see what's what, but figured I'd wait a bit to see if it was merged in the main repo. I couldn't find an update to WritingWithInk but happy to be able to read more in that blogpost! Awesome work.

    Apparently my 'stacks in Ink' post has a fan! As an aside, if you've enjoyed or admired something you've read/used/remembered today and you know who created it: let them know! You'd be surprised how little positive feedback even the most 'popular' projects get, and seeing it is a massive mental health boost to whoever created the thing™ you like so much.

  37. > Omg I showed that PR to our writer just last week ... . Even envisioned switching our ink_compiler to see what's what, but figured I'd wait a bit to see if it was merged in the main repo. I couldn't find an update to WritingWithInk but happy to be able to read more in that blogpost! Awesome work.

    Apparently my 'stacks in Ink' post has a fan! As an aside, if you've enjoyed or admired something you've read/used/remembered today and you know who created it: let them know! You'd be surprised how little positive feedback even the most 'popular' projects get, and seeing it is a massive mental health boost to whoever created the thing™ you like so much.

  38. > Omg I showed that PR to our writer just last week ... . Even envisioned switching our ink_compiler to see what's what, but figured I'd wait a bit to see if it was merged in the main repo. I couldn't find an update to WritingWithInk but happy to be able to read more in that blogpost! Awesome work.

    Apparently my 'stacks in Ink' post has a fan! As an aside, if you've enjoyed or admired something you've read/used/remembered today and you know who created it: let them know! You'd be surprised how little positive feedback even the most 'popular' projects get, and seeing it is a massive mental health boost to whoever created the thing™ you like so much.

  39. > Omg I showed that PR to our writer just last week ... . Even envisioned switching our ink_compiler to see what's what, but figured I'd wait a bit to see if it was merged in the main repo. I couldn't find an update to WritingWithInk but happy to be able to read more in that blogpost! Awesome work.

    Apparently my 'stacks in Ink' post has a fan! As an aside, if you've enjoyed or admired something you've read/used/remembered today and you know who created it: let them know! You'd be surprised how little positive feedback even the most 'popular' projects get, and seeing it is a massive mental health boost to whoever created the thing™ you like so much.

  40. How GPS actually finds your fastest route. 📍✨

    This is Dijkstra’s algorithm in action. It’s the foundational math behind Google Maps, network routing, and gaming AI.

    Watch how it uses a priority queue to constantly "relax" the edges, updating the shortest known distance to every node until it locks in the absolute most efficient path to the target.

    Pure elegance in 11 lines of code. 💻👇

    #dijkstra #computerscience #algorithms #codinglife #datastructures #python

  41. How GPS actually finds your fastest route. 📍✨

    This is Dijkstra’s algorithm in action. It’s the foundational math behind Google Maps, network routing, and gaming AI.

    Watch how it uses a priority queue to constantly "relax" the edges, updating the shortest known distance to every node until it locks in the absolute most efficient path to the target.

    Pure elegance in 11 lines of code. 💻👇

    #dijkstra #computerscience #algorithms #codinglife #datastructures #python

  42. How GPS actually finds your fastest route. 📍✨

    This is Dijkstra’s algorithm in action. It’s the foundational math behind Google Maps, network routing, and gaming AI.

    Watch how it uses a priority queue to constantly "relax" the edges, updating the shortest known distance to every node until it locks in the absolute most efficient path to the target.

    Pure elegance in 11 lines of code. 💻👇

    #dijkstra #computerscience #algorithms #codinglife #datastructures #python

  43. How GPS actually finds your fastest route. 📍✨

    This is Dijkstra’s algorithm in action. It’s the foundational math behind Google Maps, network routing, and gaming AI.

    Watch how it uses a priority queue to constantly "relax" the edges, updating the shortest known distance to every node until it locks in the absolute most efficient path to the target.

    Pure elegance in 11 lines of code. 💻👇

    #dijkstra #computerscience #algorithms #codinglife #datastructures #python

  44. How GPS actually finds your fastest route. 📍✨

    This is Dijkstra’s algorithm in action. It’s the foundational math behind Google Maps, network routing, and gaming AI.

    Watch how it uses a priority queue to constantly "relax" the edges, updating the shortest known distance to every node until it locks in the absolute most efficient path to the target.

    Pure elegance in 11 lines of code. 💻👇

    #dijkstra #computerscience #algorithms #codinglife #datastructures #python

  45. 🚀 #Redis #8.8 is here, promising new data structures that nobody asked for and performance improvements that everyone will struggle to notice. 🤷‍♂️ Because clearly, what the world needed was a revolutionary array data structure, not an actual solution to our contextually confused agents. 🙄
    redis.io/blog/announcing-redis #Release #NewFeatures #PerformanceImprovements #DataStructures #TechNews #HackerNews #ngated

  46. 🚀 #Redis #8.8 is here, promising new data structures that nobody asked for and performance improvements that everyone will struggle to notice. 🤷‍♂️ Because clearly, what the world needed was a revolutionary array data structure, not an actual solution to our contextually confused agents. 🙄
    redis.io/blog/announcing-redis #Release #NewFeatures #PerformanceImprovements #DataStructures #TechNews #HackerNews #ngated

  47. 🚀 #Redis #8.8 is here, promising new data structures that nobody asked for and performance improvements that everyone will struggle to notice. 🤷‍♂️ Because clearly, what the world needed was a revolutionary array data structure, not an actual solution to our contextually confused agents. 🙄
    redis.io/blog/announcing-redis #Release #NewFeatures #PerformanceImprovements #DataStructures #TechNews #HackerNews #ngated

  48. 🚀 #Redis #8.8 is here, promising new data structures that nobody asked for and performance improvements that everyone will struggle to notice. 🤷‍♂️ Because clearly, what the world needed was a revolutionary array data structure, not an actual solution to our contextually confused agents. 🙄
    redis.io/blog/announcing-redis #Release #NewFeatures #PerformanceImprovements #DataStructures #TechNews #HackerNews #ngated

  49. 🚀 #Redis #8.8 is here, promising new data structures that nobody asked for and performance improvements that everyone will struggle to notice. 🤷‍♂️ Because clearly, what the world needed was a revolutionary array data structure, not an actual solution to our contextually confused agents. 🙄
    redis.io/blog/announcing-redis #Release #NewFeatures #PerformanceImprovements #DataStructures #TechNews #HackerNews #ngated

  50. MICROSOFT LISTS VS. PYTHON LISTS: A FRAGMENTED LANDSCAPE

    Learn the difference between Microsoft Lists for organizing and Python lists for data. See who it affects and why.

    #MicrosoftLists, #PythonLists, #DataStructures, #TechExplained, #AppVsCode

    newsletter.tf/microsoft-lists-