The background of this research is how the application of the algorithm in traffic control systems, with the Greedy algorithm, the system will decide what action and what punishment will be given to traffic offenders on the highway, with the Greedy algorithm, the decisions taken will be based on data and facts. based on existing laws, so decisions made based on law and the human side cannot influence the decisions to be taken by the system based on the application of the Greedy algorithm. The research method used in this study uses literature reviews by reading many previous research journals, it will be able to add knowledge and deepen the research we are doing this time, with the literature review method, we will be able to find new problems and can be used as new research because The literature review is very helpful for our research this time. The system that is being used is using CCTV and can determine what decisions and punishments will be given to traffic offenders, through evidence based on images taken by cameras placed at red lights or corners of the capital's highway, the system this has been active effectively but with the implementation of the algorithm will increase. This research will produce a system proposal and be able to find out whether the application of the Greedy algorithm is correct and can help the current system by implementing the algorithm, so the existing system is more perfect. The main contribution of this research is that the use of the Greedy algorithm can help control the traffic system to enforce the law.