PC.net
HomeHome : Glossary : Definition
ShareShare

Heuristic

Heuristic Image

Generally speaking, a heuristic is a "rule of thumb," or a good guide to follow when making decisions. In computer science, a heuristic has a similar meaning, but refers specifically to algorithms.

When programming software, computer programmers aim to create the most efficient algorithms to accomplish various tasks. These may include simple processes like sorting numbers or complex functions such as processing images or video clips. Since these functions often accept a wide range of input, one algorithm may perform well in certain cases, while not very well in others.

For example, the GIF image compression algorithm performs well on small images with few colors, but not as well as JPEG compression on large images with many colors. If you knew you were only going to be dealing with small images that didn't have a wide range of colors, GIF compression would be all you need. You wouldn't have to worry about large, colorful images, so there would be no point in optimizing the algorithm for those images. Similarly, computer programmers often use algorithms that work well for most situations, even though they may perform inefficiently for uncommon situations.

Therefore, a heuristic process may include running tests and getting results by trial and error. As more sample data is tested, it becomes easier to create an efficient algorithm to process similar types of data. As stated previously, these algorithms are not always perfect, but work well most of the time. The goal of heuristics is to develop a simple process that generates accurate results in an acceptable amount of time.

Published: 2007

Definition from the PC Glossary
https://pc.net/glossary/heuristic
space