Graphical real-time algorithm