Algorithmically simpler method with permutations