

I’d say upgrade GPU. Buying a GPU is awful but it’s by far the most directly responsible for gaming performance. I’d probably look for an RX 7600 or RTX 4060. Both of them should be around 300 dollars. Also be aware that games are starting to use more VRAM. Both of my recommendations above have 8 GB of VRAM, and that’s already not enough for some games. If you have the extra money, it’ll certainly be a good idea to spend a bit more to get a 16 GB card (or at minimum, a 12 GB card). Your best options there would probably be RX 7600XT or RTX 4060 Ti 16 GB. Both of those cards should be around the 400 dollar range.
Second priority would be upgrading your storage drives to SSD. Upgrading to SSD’s should help with general snappiness, and plus they shouldn’t be that expensive at this time. That should be around 100 dollars for 1 TB of SSD, or 50 dollars for 500 GB.
3rd priority is CPU. It’s fine, but you might gett CPU bottlenecked in certain scenarios (especially after getting a GPU upgrade). An R5 5600 would be a slot-in upgrade, so you can keep using your other parts. Last I checked (which admittedly was a while back), they’re a pretty good deal, at around 120 dollars.
4th priority is RAM. I’d actually say 16 GB RAM is fine for now, but RAM (and especially DDR4 RAM) is super cheap so you might as well upgrade your RAM if you’ve got the money.
You may be misunderstanding what an algorithm is, because I don’t see how your post relates to algorithms.
Am algorithm is just a defined series of steps to do something. Doing long division would be an algorithm.
Social media sites need to rank the posts that it shows to users, and it uses algorithms for that. People talk about social media algorothms because social media sites often select an algorithm that is specifically designed to prioritize the posts that keep users engaged. Lemmy has an algorithm. If you’re sorting by Hot or Scaled, that’s an algorithm. The main difference is that this algorithm is available for people to see and has been selected to actually do what it says it does