Market Research is the comparison of the existing market in which you wish to enter. What is known as a 'gap in the market' is market research. It is primary research about the existing products which are targeted to a similar audience as you wish to target. The idea is to research what is already out there, and find out what is missing or different from the existing products to fill the market a little more with your product. If their is 'a gap in the market', that means that is something particular missing that someone could fill. It is useful to find out what the audience's need's are to appeal to them more. Market research is done so that a product is fit to introduce to the public and appeal to them. This method is important to the media, as it allows them to create a new brand and it allows them to see what they're competitors are producing, then allowing them to make their product different with added features to make their product appear better than the competitions.
An example would be to imagine you are making a magazine. The idea would to be research what genre of magazines already exist, so your magazine doesn't fall under the same category and ends up blending into the background. Where if you completed market research, you could go in a different direction to the other leading magazines, appealing to a wider audience.
Another example would be Simon Cowell on the X-Factor UK. He said to Little Mix, a girl band, that there was a gap in the market for there kind of music at that time, meaning their weren't mainstream girl bands around at that time so they completed the music market a little more when they rose to fame.