Well, a restart accomplishes the same thing as shutting down, as far as RAM is concerned. Once the PC reboots, it resets the RAM to its default state. Shutting down has the added benefit of conserving power, though, so it's a good thing to shut off when not needed or set up Sleep mode when not in use.