The role of The Strategic Defense Initiative (SDI) in ending the Cold war

What role did the following play in the ending of the Cold War: The Strategic Defense Initiative (SDI); the policies of Glasnost and Perestroika; and the personal relationship between Ronald Reagan and Mikhail Gorbachev? Which do you think was the most important in bringing the conflict to an end?