The Bühlmann decompression algorithm is a mathematical model (algorithm) of the way in which inert gases enter and leave the human body as the ambient pressure changes. It is used to create Bühlmann tables. These are decompression tables which allow divers to plan the depth and duration for dives and show decompression stops when necessary.