Algorithm as a term simply describes an equation: any formula or set of rules that produces a desired result. The earliest examples come from ancient Babylon, in the region that is now Iraq. Cuneiform tablets, dating back to 1800–1600 BCE, record algorithms for purposes like calculating the length and width of a cistern using its depth and the volume of earth excavated for it.