Please turn JavaScript on
header-image

Useful code

Receive updates from Useful code for free, starting right now.

We can deliver them by email, via your phone or you can read them from a personalised news page on follow.it.

This way you won't miss any new article from Useful code. Unsubscribe at any time.

Site title: Useful code – Programming with VBA, C# and Python

Is this your feed? Claim it!

Publisher:  Unclaimed!
Message frequency:  0.72 / week

Message History

The Minimax algorithm is a fundamental decision-making rule used in Artificial Intelligence (AI) for two-player, zero-sum games, such as Chess, Checkers, and, in our case, Tic-Tac-Toe. It works by exploring every possible future state of the game to find the…

Read full story

Haskell is a statically typed, purely functional programming language known for its concise syntax and mathematical precision. It utilizes lazy evaluation, meaning it only calculates values when they are strictly needed, allowing for the creation of infinite data structures. This…

href="https://www.vitoshacademy.com/haskell-solving-diophantine-equation/"...

Read full story

Sliding tile puzzle is something that is actually easy, if you are a fan of the Rubic Cube. And if you want to solve it with IDA* (iterative Deepening A*) and with Manhattan heuristic, this is the correct place. The…

Read full story

TL;DR: We solve the classic “frog leap” puzzle with Depth-First Search (DFS) by generating next boards around teh blank and trying jumps before steps. This trick finds the minimal soluton in exactly N^2+2N moves. The classic frog puzzle looks like…

Read full story

This is what we do with in the YouTube video below: take a tiny CSV and explore it with plain words we train a strong model, using the XGBoost python library (eXtreme Gradient Boosting) pick a practical decision treshold and…

Read full story