Tag: algorithms
-
Area of a triangle
This is a bit specific but that is the way with some algorithms, or formulas in this case. Let’s say you want to calculate the area of a triangle. I’m not sure why. It could be something in a graphics shader for a fancy effect. Winging it It’s been a long time since high school…
-
Saving pennies
Imagine your shopping at a different supermarket from normal. You notice that baked beans are 3p per tin cheaper than you’re use to. The news had a story about supermarket price wars on basic goods recently. It’s a bit out of your way but if you switch supermarkets you could save money on beans each…
-
Image generation
I managed to avoid COVID until last week but it caught up with me. I’ve made a couple of attempts at writing something more complicated but it’s a bit much right now. My suggestion is to go off and watch this video on image generation by neural networks. It takes the idea of predicting just…
-
Algorithms are great, minimax
There are problems that are hard to solve. There are problems that are easy to solve if you don’t care about speed. At university the algorithms course was one of my favourites. Finding the right algorithm can mean being able to solve the problem much faster. Maybe you’ll have to discover it yourself but there…