The document describes the five generations of computers from 1940 to present. The first generation used vacuum tubes and consumed a lot of electricity. The second generation introduced transistors which decreased the electricity used. Each generation brought improvements like increased storage, decreased costs, improved user interfaces, faster operating speeds and processing power, and smaller sizes. The latest fifth generation is based on artificial intelligence and can process data at femtosecond speeds and trillions of instructions per second.