Computers can be classified into five generations based on technological advancements and time periods, starting from vacuum tubes in the first generation (1945-1956) to parallel processing in the fifth generation (present and beyond). Each generation has its advantages and disadvantages, with significant improvements in size, speed, reliability, and functionality over time. Key characteristics of computers include accuracy, automation, reliability, and high memory capacity, allowing them to perform various tasks efficiently.