This document presents a method for generating optimal straight line trajectories in 3D space using an algorithm called the Bounded Deviation Algorithm (BDA). BDA approximates a straight line trajectory between two points by iteratively inserting knot points to minimize the deviation between the actual trajectory and the joint space trajectory. The document provides the mathematical formulation and simulation results of applying BDA to generate a straight line trajectory for a 5-axis articulated robot between two specified points.