The Hosoya index and the Merrifield-Simmons index of a graph are defined as the total numbers of its matchings and its independent sets, respectively. In this paper, we characterize the unicyclic graphs with extremal Hosoya indices and Merrifield-...