Pancake sorting…

Pancake sorting is the mathematical problem of sorting a disordered stack of pancakes in order of size when a spatula can be inserted at any point in the stack and used to flip all pancakes above it. A pancake number is the minimum number of flips required for a given number of pancakes. Unlike traditional…

Continua a leggere →

…un po’ masochista.

Mi sono chiesto come mai mi piacciano i libri che mi fanno star male, “Non sarò un po’ masochista?”, mi son chiesto, e mi sono risposto con una cosa che mi è successa mentre scrivevo questo romanzo, nel gennaio del 2020. Ho partecipato alla riunione di una rivista che si chiama “Qualcosa”. L’argomento del numero…

Continua a leggere →

Visualization with Matplotlib

Histogram Histograms are one of the heavily used plots across functions as it gives a very good view of the distribution of data. Line Single line: Several Lines How do we add multiple lines in the same chart? Let us take it a bit further to plot multiple lines in the same chart. Bar Plot…

Continua a leggere →