Neat data structure: "Ullman" set
onebadseed.com
onebadseed.com
You can only store integers and they must be in the range of [0, n>. The simple operations are O(1), because you can just map the positions of all integers based on their value in a second array of size n.