The Science of Generative AI: Algorithms, Training, and Application...