Let G be a group. A subset X of G is a set of pairwise noncommuting elements if xy≠yx for any two distinct elements x and y in X. If |X|≥|Y | for any other set of pairwise noncommuting elements Y in G, then X is said to be a maximal subset of pairwise noncommuting elements. In this paper we determine the cardinality of a maximal subset of pairwise noncommuting elements for some p-groups of maximal class. Specifically, we determine this cardinality for all 2 -groups and 3 -groups of maximal class.