The purpose of this analysis is to predict the survivors. So, the outcome will be survived or not, which is a binary classification problem; in it, you have only two possible classes.
There are lots of learning algorithms that we can use for binary classification problems. Logistic regression is one of them. As explained by Wikipedia: