Algorithmic Problems Arising in Posets and Permutations