A new method to probe the mass density and the cosmological constant using configuration entropy