Cancer is the fast proliferation of unwanted cells in the body. Carcinogens are chemicals that can cause cancer. A carcinogen is a kind of chemical compound found in cigarette smoke. It has the ability to spread to many places in the body. Some of the signs and symptoms of this sickness include a lump, irregular bleeding, a chronic cough, weight gain or loss, and so on. Tobacco chewing is a major factor in this deadly disease. Obesity, a poor diet, laziness, and increased alcohol usage are all factors. Anticancer drugs are being utilized to treat this condition. In this work, we studied some anticancer medicines in terms of locating set, where locating set is a set to settle the entire atom set of a graph into a unique way to access each atom independently. By locating numbers, a particular resolving set is chosen and this resolving set or locating set creates the entire structure into a unique form this helps to study the chemical structure in more depth and detail. So, we can say that locating number helps to understand the chemical structure in more detail and depth. Locating number is a part of resolvability parameters and it also plays a role in developing a unique way to access each node/vertex of a network. When each of its vertices is easily accessible with a unique code, working on a network becomes easy. So this method makes structures of anticancer disease easily understandable and researchers can easily extend working on these structures in medical diagnostics.