install openGL libraries if you are using linux based os use "g++ filename.cpp -o gl -lGL -lGLU - lglut" to compile and ./a.out for running program The algorithm may informally be described as ...