• ChrysanthemumIndica@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    41
    ·
    3 months ago

    Oh gosh, that’s giving me flashbacks to one of my third semester computer science classes at college (Intro to C and Compiler Design).

    One of the very early assignments was creating a red-black tree. Thankfully I was already pretty familiar with C, but I don’t think that was true for anyone else in class… totally super didn’t scar me or anyone else.

    … and I literally only just now got the joke, oops 😅 if only we could all be left-leaning red-black trees

    • BB84@mander.xyz
      link
      fedilink
      English
      arrow-up
      23
      ·
      3 months ago

      Interesting that this article title has a dash for left-leaning and a minus sign for red–black

      • QuantumTickle@lemmy.zip
        link
        fedilink
        English
        arrow-up
        12
        ·
        3 months ago

        I know there’s rules for when to use which. I’m not surprised that Wikipedia would care. I can’t keep them straight though.

        • BB84@mander.xyz
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 months ago

          am now thinking maybe the minus sign should be interpreted literally. like maybe there is some invariant involving the number of red nodes minus the number of black nodes along some path or within some group of nodes. not sure what that invariant would be though

  • Saganaki@lemmy.zip
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 months ago

    Looked at Sedgewick’s history.

    His dissertation was… “Quicksort”

    Holy hell.