1: \begin{abstract}
2: We obtain a characterization in terms of dynamical systems of
3: those $r$-discrete groupoids for which the groupoid C$^*$-algebra
4: is approximately finite-dimensional (AF). These ideas are then
5: used to compute the $K$-theory for AF algebras by utilizing the
6: actions of these partial homeomorphisms, and these $K$-theoretic
7: calculations are applied to some specific examples of AF algebras.
8: Finally, we show that, for a certain class of dimension groups, a
9: groupoid can be obtained directly from the dimension group's
10: structure whose associated C$^*$-algebra has $K_0$ group
11: isomorphic to the original dimension group.
12: \end{abstract}
13: