Computer science is the study of computation, algorithms, and the design of computer systems and software. It encompasses various aspects including programming, data structures, artificial intelligence, and human-computer interaction, connecting closely with disciplines like cognitive science to better understand how humans process information and solve problems.