We present a new sublinear-size index structure for finding all occurr
ences of a given q-gram in a text. Such a q-gram index is needed in ma
ny approximate pattern matching algorithms. All earlier q-gram indexes
require at least O(n) space, where n is the length of the text. The n
ew Lempel-Ziv index needs only O(n/log n) space while being as fast as
previous methods. The new method takes advantage of repetitions in th
e text found by Lempel-Ziv parsing.