Vaccum tubes were used in first generation computers. Hence the size of computer was a size of full room. Instead of vaccum tubes transistors were used in the 2nd generation hence size became smaller. In 3rd generation, Integgted circuits (IC’s) were used. It reduced the size again in 4th generation, microprocessors are used. It reduces the size again and again.