No! This is not a post about file compression algorithm called zip. Yes! this is about solving another LinkedIn puzzle called Zip. What is Zip Puzzle? It is a nice puzzle. You are given a board, usually 6×6. Certain cells on the board are numbered. You need to trace a path on the board. The…
Category: Python
Mini-Sudoko
We Tango in this post. Now it’s time to continue having fun with optimization and solve some mini-sudoku. What is mini-sudoku? Well, it is Sudoku; but, emm, well, mini. Instead of having 3×3 blocks of 3×3, it has 3×2 blocks of 2×3. Now instead of assigning an integer from 1 to 9, you are assigning…
Let’s Tango!
I know it’s a cheesy title for a nerdy stuff. Anyway, I am not sure how long is LinkedIn doing it, but I started to get some messages on LinkedIn challenging me to solve some puzzles. I have to admit, I love them. In this post we are going to focus on one of the…
Are you “Failing Fast” properly?
What is “Failing Fast”? You may have heard about “Failing Fast” before! Well, it simply means exactly what you are reading. If you have to fail in something, you better fail fast, so you can correct your path. In different fields, “Failing Fast” will take a different cosmetic form; but, the concepts stays the same….
Migrating To Python From Java
I have always said that: if you know how to program, you can code in any language. Well, while I still stay by the above statement, I want to add something to it though. Yes, you can absolutely code in any language, but make sure that you learn about the peculiarity of each coding language….
Piecewise-Linear Functions: Part II
In Part I (here), we discussed what are Piecewise-Linear Functions (PLFs). In Part II, this document, we are going to discuss how to estimate the coefficients. As it was mentioned in Part I, if we do not need to guarantee the continuity, all you need to do is to just fit a line to each…
Piecewise-Linear Functions: Part I
We are going to divide this document in two parts. The first part, this document, we are going to discuss piecewise linear functions (PLFs) and how to implement one in Python. The second part, Part II, we will discuss how to fit the coefficients, detect the break-points locations, and even optimize the number of the…