Python A* – The Simple Guide to the A-Star Search Algorithm

This tutorial guides you into the fascinating A* (A-Star) using the Python programming language. First, feel free to watch the video guide—we’ll give a detailed textual explanation below. The slides can be found as a Gif here: Okay, so let’s dive into the algorithm motivation, explanation, and Python code next! What is the A* Search … Read more

Python Dijkstra Algorithm

You can download the PDF file of the presentation here. Also, watch the presentation as a Gif here: What is Dijkstra’s Algorithm? Dijkstra’s algorithm solves the single-source shortest path (SSSP) problem. Generally, it enables finding the shortest route between two vertices in a graph. Its author is dr. Edsger W. Dijkstra, a pioneering contributor to … Read more

Python Math Module – 5 Combinatorial Functions Ever Coder Ought to Know

This is the second article discussing the math module from the Python Standard Library. You can find the first about four basic numerical functions here. The articles are organized thematically; functions that are closely related to each other are discussed in the same article. In this article, we will explore two themes: combinatorics and elementary … Read more

Common Consensus Mechanisms in Blockchains

We know what a blockchain is and its wide applications. Blockchain is a distributed computing technology involving multiple nodes distributed across geographies. The problem is to ensure that each node gets the exact copy of the data. Hence, some protocol is needed to achieve this unison or consensus. This post tries to cover the need … Read more

Python Math floor(), ceil(), trunc(), and modf()

This article is the first of several articles discussing functions from the math module from the Python Standard Library. The articles are organized thematically; functions that are closely related to each other are discussed in the same article. In this article, we discuss four functions: math.floor, math.ceil, math.trunc, and math.modf. They are all related to … Read more

The Best-First Search Algorithm in Python

You can watch the slides as a GIF here: And download the slides as PDF here. What’s the Best-First Search Algorithm? After several articles on uninformed search algorithms, we continue our journey to informed search algorithms. The first one in the series is the Best-First search algorithm. In general, informed search algorithms use some kind … Read more

Find The Full Path of The Python Interpreter

[toc] Introduction Problem Statement: How to find the full path of the currently running Python interpreter? There are different ways to find the full path of Python interpreters. But first, let’s get the basics out of our way before we unearth the solution to our problem statement. So, what’s a Python Interpreter? This might be … Read more

Self-Employed Programmer? A Simple Heuristic

Python Freelancer

Should you become your own boss, being self-employed? This is a valid question given the massive opportunities these days. Freelancing is growing double-digits percentages every year: One of the largest freelancing platforms Fiverr recently reported an 89% (!) annual growth rate! ?Β This article and video will help you decide if this opportunity is for you! … Read more

The Quickselect Algorithm – A Simple Guide with Video

What is the Quickselect algorithm? The Quickselect algorithm is a computer algorithm designed to find the kth (e.g. smallest or largest) element from an unordered list. It is based on the idea behind the Quicksort algorithm, invented by the same author, Sir Charles Anthony Richard (Tony) Hoare. Here, k stands for the index of an … Read more