Optimizing Resource Management: The Transformative Impact of Generative AI