This file contains codes and dataset for generating the results in our paper titled " Cluster Based Energy Efficient Lifetime Maximization and Resource Allocation for M2M Networks".