 There is a wide range of choice.A decompression algorithm is used to calculate the decompression stops needed for a particular dive profile to reduce the risk of decompression sickness occurring after surfacing at the end of a dive.The algorithm can be used to generate decompression schedules for a particular dive profile, decompression tables for more general use, or be implemented in dive computer software.