Mean field theory of dilute spin-glasses with power-law interactions