Hi, I am working on a problem. I have a set of advertisements that I need to print on a paper. The ads may be half page, quarter or full page. The advertiser may specify the location (geographical area - out of finite set of areas), intensity (number of flyers per street), and duration (weeks). They may also say they cannot be in the same page as another company's ad.

I am working on a solution that will take advertisement requests as above and output print jobs for printing ads and ad campaign directions (like distribute so and so in so and so locations for so and so period). I want the algorithm to group together similar ad pages- so I can print them together to reduce cost.

I have no idea how to start... I need some tips on where to start. What logic to use. What class of problem this is. How I can simplify the system.

I am not asking for a working algorithm. I just need a kickstart.

Thanks in advance.