sqroot and Panlidrom DFS Partition