Why did king Solomon want to cut the child into two haives?

King Solomon didn't want to cut the child. He wanted to find out who the real parent was, and he knew that a real parent would never allow their child to be harmed, but would give up the child first.