home.social

#datastructure — Public Fediverse posts

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

fetched live
  1. 🌳 Trie demo: memory-graph.com/#codeurl=http

    A trie is a tree-shaped data structure that can be implemented elegantly in Python using nested dictionaries (hash tables).

    Tries are often used for:
    - Autocomplete
    - Prefix search
    - Spell checking
    - Sequence matching

    Visualizing data structures with 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 makes them much easier to understand and debug, especially for students learning Python.

  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. 🎩✨ Behold the majestic skiplist: the data structure nobody asked for but everyone pretends to need! 🤡 This article bravely navigates a sea of #buzzwords and sales pitches, leaving readers wondering if the true purpose of skiplists is to skip the point entirely. 🚀
    antithesis.com/blog/2026/skipt #skiplist #datastructure #techhumor #programming #satire #HackerNews #ngated

  4. La matematica delle strutture dati racconta una verità semplice: non esiste un modo perfetto per archiviare informazioni.

    Ogni sistema è un compromesso tra velocità, memoria e ordine. A volte serve struttura, altre volte un po’ di disordine funziona meglio. Un equilibrio dinamico, in cui l’efficienza nasce proprio dalla varietà delle soluzioni.

    quantamagazine.org/why-theres-

    #computerscience #datastructure #data #algorithm #algoritmi #informatica

  5. Matching Algorithm with Recursively Implemented StorAge (MARISA) is a space-efficient, fairly fast, and static trie data structure. MARISA serves as a dictionary structure, and by definition, it supports exact match lookup, which is the basic operation of dictionary. In addition, MARISA supports reverse lookup, common prefix search, and predictive search.

    Thanks to @terrtia for the discovery.

    #datastructure #computerscience

    🔗 s-yata.jp/marisa-trie/docs/rea

  6. Grmbl.😩

    Implementing an object graph with with loops.

    After setup, it needs additional initialization.

    The fields getting set will not change again. Ideally would be final (Java, or readonly in TypeScript). And I don't want an "if (bla!=null)" where ever access I them.

    In my ideal solution this would be guarded by the type system where the nodes, once initialized, change type. I know roughly how it could be done, but its weird and cumbersome. 😕

    #Java #final #datastructure #strongTyping

  7. Hey Mastodon! 👋 I'm diving back into my DSA journey and want to move beyond just solving theoretical problems. I'm looking to build some real-world projects to apply what I'm learning.

    Any project ideas where you can genuinely use DSA concepts? Things like a simple recommendation engine, a social network graph, or a pathfinding visualizer. I'm curious about how you would implement these.

    #devcommunity #DSA #Projects #Programming #Tech #algorithm #datastructure

  8. Understanding and debugging Data Structures is easier when you can see the structure of your data using memory_graph: github.com/bterwijn/memory_gra

    Here we show values being added to a Linked List in Cursor AI. When adding the last value '5' we "Step Into" the code to show more of the details: raw.githubusercontent.com/bter

    🎥 See the Quick Intro video for the VS Code integration: youtu.be/23_bHcr7hqo

  9. Understanding and debugging Data Structures is easier when you can see the structure of your data using memory_graph: github.com/bterwijn/memory_gra

    In this example we show values being inserted in a Binary Tree. When inserting the last value '29' we "Step Into" the code to show the recursive implementation: shorturl.at/bx848

    🎥 See the Quick Intro video for the VS Code integration: youtu.be/23_bHcr7hqo

  10. Reflecting some more on the Sketchpad & ECS parts of this talk: SideFX Houdini organizes all geometry data in similar vertical silos of points, vertices, edges, faces, prims, each with component IDs, each with its own group of native and user-defined attribs, and with similar powerful "omniscient" visibility/access from anywhere. That structure makes VEX SOPs akin to "systems" in an ECS setup and the handling/scripting itself very fun & powerful. The GUI also provides spreadsheet views of the geometry (again similar to e.g. what FLECS provides for debugging). Considering the age of Houdini, I think this approach is notable...

    Blender's BMesh Radial Mesh implementation[1] is more traditional OOP structured, but the core idea of "discs" (aka bi-directional circular lists) of pointers to vertices & edges now seems somewhat relevant to some Sketchpad ideas too. Also a reminder that I really need to find/make time to update & release my own mesh implementation (from 2018) combining ideas from both Houdini & BMesh... It's already been a year (again) since I last talked about & touched it... 😱

    [1] developer.blender.org/docs/fea

    #Blender #Houdini #Mesh #Geometry #DataStructure #ECS #Sketchpad

  11. At first glance, bar charts might seem like a simple visualization type. But with a little creativity, they can be enhanced in countless ways to reveal deeper insights and make your data shine.

    The attached visual highlights a variety of bar chart styles to inspire your work.

    Take a look here for more details: statisticsglobe.com/online-cou

    #datastructure #data #tidyverse #rstats #package #datasciencetraining

  12. I recently made a very popular LinkedIn post about Simpson's Paradox, which resulted in an engaging conversation. Paul Julian made a great comment on the relationship between Mixed Effects Models and Simpson's Paradox that I wanted to share with you.

    In the plot below (generated from reproducible code – thanks, Paul!), you can see how different models compare:

    Original post: linkedin.com/posts/joachim-sch

    Further details: eepurl.com/gH6myT

    #datavisualization #database #datastructure #data

  13. Using dplyr and ggplot2 in R can significantly streamline your data analysis process, making it easier to work with complex data sets.

    I have created a video tutorial in collaboration with Albert Rapp, where I demonstrate how to do this in practice: youtube.com/watch?v=EKISB0gnue4

    #coding #datavisualization #rprogramming #dataviz #statisticalanalysis #package #datastructure #ggplot2 #bigdata #tidyverse

  14. 🟪 Harnessing the Power of Data Structure to Build Resilient Power Apps

    Too often, Power Apps makers jump into app building—without giving enough thought to data structure. In Ep. 55 of #PowerTalks, Griffin Lickfeldt from Citizen Developer explains why getting this step right from the start is critical for building scalable, secure, and AI-ready apps.

    💡 The Superpower of Dataverse
    🔍 Strategic Table Structuring
    ⚖️ Future-Proof Your Apps
    🔒 Security as a Cornerstone

    ▶︎ hubsite365.com/en-ww/citizen-d

    #DataStructure #PowerApps #CopilotStudio #CitizenDeveloper

  15. Mean imputation is a common method for handling missing values in numerical data. It replaces missing values with the mean of the observed values, ensuring the data set remains complete and easy to use.

    The image below illustrates the impact of mean imputation. The black line represents the original data distribution before imputation, while the red line shows the data distribution after imputation.

    Tutorial: statisticsglobe.com/mean-imput

    Newsletter: eepurl.com/gH6myT

    #datastructure

  16. Shoutout to my friend Daniel, who is not on mastodon. He created an uber efficient slice implementation for joining/modifying/copying lists at scale. The blogpost and github README describe the algorithm. It's an interesting technical read if you have 10-20 minutes of spare time.

    daniel.avery.io/writing/fork-j

    #code #algorithm #datastructure #random