Parallelizing Complexity: Strategies For Accelerating Ai Algorithms And Scientific Simulations In Heterogeneous Computing Environments