This document discusses dynamic resource allocation of heterogeneous workloads in cloud computing. It proposes a new approach called SAMR that aims to minimize resource allocation delay and reduce energy waste. SAMR uses a Markov chain model to predict workloads and determine the optimal number of active physical machines. It then allocates virtual machines to machines using its scheduling algorithm. The goal is to balance minimizing user delay through fast allocation while avoiding underutilization of resources that wastes energy. The existing approaches have drawbacks like high computational cost for algorithms like Viterbi used in hidden Markov models. SAMR aims to improve on this with its predictions of workloads and dynamic provisioning approach.