Computational modeling is a method used in cognitive science to create computer-based simulations that mimic human thought processes and behaviors. This approach helps researchers understand and predict cognitive functions by providing a framework for testing hypotheses and exploring the complexities of mental processes through mathematical and algorithmic techniques.