The Building Industry (BI) has developed rapidly. Today, to satisfy the needs of current social development, the BI has begun to rise a wave of green buildings. However, at this stage, the building form of green building has not been widely popularized. The reason is that the construction cost has been high to a large extent, which is also the biggest obstacle to the development of the Green Building Industry (GBI). Therefore, how to adopt effective methods to reduce the construction cost of green buildings and promote the vigorous development of the GBI has become the most important problem facing the development of the GBI. Based on the problem of high construction cost encountered by the GBI at this stage, the ant colony algorithm and distributed clustering algorithm were adopted to reduce the construction cost to the maximum extent and promote the healthy development of the GBI under the premise of ensuring the construction quality from multiple perspectives by building a digital model. By comparing the data obtained from the traditional construction method and the construction method using the ant colony algorithm and the distributed clustering algorithm, it can be seen that the material cost of the same type of building was reduced by 9.7% and the energy use was saved by 30.3% after using the ant colony algorithm and the distributed clustering algorithm. Compared with traditional building forms, green buildings had a better user experience. The cost of garbage recovery of green buildings using ant colony algorithm has been reduced by 27.3%. Compared with traditional buildings, green buildings had absolute advantages in terms of energy conservation, environmental protection and user experience. Therefore, how to better apply the two algorithms to the BI and promote the transformation of the BI to the green BI has important guiding significance.