recording law - race, notice and race-notice

Can someone explain how these laws work? I understand race completely. Whoever records the deed first wins. But what about notice and race-notice? How do those work?