How would you use advanced data structures such as graphs, trees, heaps, and hash maps to reduce execution time?