Computer scientists often deal with abstract problems that are hard to comprehend, but an exciting new algorithm matters to anyone who owns books and at least one shelf. The algorithm addresses something called the library sorting problem (more formally, the “list labeling” problem). The challenge is to devise a strategy for organizing books in some kind of sorted order — alphabetically, for instance — that minimizes how long it takes to place a new book on the shelf.

  • promitheas@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    4 days ago

    Just a sidenote about ntfs & ext4.

    ntfs doesnt require defragmentation on SSDs, and it actually might lower the lifespan of your SSD because of the increase in unnecessary read/writes.

    ext4 IIRC works just fine as long as your drive is at most 90% full and you keep that last 10% free.

    Its been a while since i read up on that fact about ext4 so someone more experienced can correct me if im wrong

    • YourAvgMortal@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      4 days ago

      You are correct! And moreover, fragmentation was bad on HDDs because they are good at reading sequential data, so fragmentation limited performance by making reads more random. However, SSDs are the opposite and are more performant on random reads, so fragmentation actually benefits them! (some of the time)

    • shalafi@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 days ago

      Jacked up the first SSD I ever bought. Windows 7 (I think?), NTFS. Defragged it out of habit, even though I knew better. Yep, ran much slower, and it was obvious.