Swap space is one of those things that you’ve never heard of if you use WIndows or OS X, but that you’ll hear about the first time you try to install Linux. There are two approaches to swap space: simple and complicated. Read this article, All about Linux swap space, including the comments, if you want to know more about swap space, what it does, how it works, and what you should do about it.
Or just take the defaults when you install Linux and don’t worry about it. That’s what I do, mostly.