Neat data structure: "Ullman" set
onebadseed.com
Neat data structure: "Ullman" set
1–9 of 9 posts
Re: Neat data structure: "Ullman" set
#2Re: Neat data structure: "Ullman" set
#3It seems to me the probability of a false positive membership test is non-zero.
Re: Neat data structure: "Ullman" set
#4Re: Neat data structure: "Ullman" set
#5It seems to me the probability of a false positive membership test is non-zero.
No, it's correct -- you can see that by induction on the add operation. If you're allowed to increase n without first ensuring the invariant on the first n members, then it can break, yes.
Re: Neat data structure: "Ullman" set
#6Re: Neat data structure: "Ullman" set
#7You 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.
Re: Neat data structure: "Ullman" set
#8This is a rather useless data structure: 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.
Re: Neat data structure: "Ullman" set
#9This is a rather useless data structure: 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.