Resource Discovery in a Dynamic Grid Environment