Input:Q:a set consisting of spatio textual queries
k:the number of assigned group
Output:G:a set consisting of queries assigned to k groups.
qi.val?calculate z-order value for q;
G?sample k points which is uniformly based on z-order values queries;
while isMove do