Applying the Tremolo to a melody
First, the melody in it's essential form (just the first few bars):
Now let's energise the melody by repetition:
The practical version for guitar. At moderate tempos the missing note in each group is not perceived by the listener.
The right hand fingering.
This page illustrates an excerpt from "Guitar Playing and how it Works"