The algorithm from the episode “The Friendship Algorithm” of the television show The Big Bang Theory
as a DRAKON diagram.
Based on a drawing I found on The Big Bang Theory Wiki bigbangtheory.wikia.com/wiki/T…
Created with DRAKON Editor drakon-editor.sourceforge.net/
That flow chart Sheldon scribbled is okay for design time, but a presentation of an algorithm should use the DRAKON visual language which is optimised for clarity and understandability.
To quote from the DRAKON Editor website:
DRAKON is a visual language for specifications from the Russian space program. DRAKON is used for capturing requirements and building software that controls spacecraft.
The rules of DRAKON are optimized to ensure easy understanding by human beings.
DRAKON is gaining popularity in other areas beyond software, such as medical textbooks. The purpose of DRAKON is to represent any knowledge that explains how to accomplish a goal.