This is an implementation of Adwords Algorithm. In this project I have implemented Greedy Algorithm, Balance Algorithm and Generalized Balance Algorithm using First Price and Second Price Auction.
You will find the logic written in adwords.sql. There is a java file adwords.java which I have used for taking inputs and writing outputs.