Minimax theory and its applications