Combinatorics and Algorithms of Arrangements