Talk:Treap
From Wikipedia, the free encyclopedia
[edit] treap
I'm not sure the priority has to be random, even though a random priority can be used to help avoid worst-case insertions into a binary search tree. I believe that a treap resolves to a priority queue if non-random priorities are used.
[edit] Min heap versus max heap
In the original Aragon and Seidel paper, the illustrations showed a max heap ordering. Since the priority of a node is randomly generated, their is a small chance that a child and a parent could have the same priority. MegaHasher 00:20, 6 August 2007 (UTC)
[edit] Plagiarized material in the Article
A majority of the Definition section looked like it was plagiarized wholesale from a webpage (apparently from 2003) at Cornell, and no attribution was given. I removed the material and added an external link. 71.182.188.252 19:47, 4 December 2007 (UTC)
My change was reverted as vandalism. Here is the webpage that I think the material was taken from: http://www.cs.cornell.edu/Courses/cs312/2003sp/lectures/lec26.html. Kstauffer 19:54, 4 December 2007 (UTC)
- I removed it again. We'll see whether it sticks this time. It would probably have helped to use a more detailed edit summary — a large removal of material by an anonymous user with no explanation looks at first glance a lot like vandalism, so it's easy to understand why it was reverted. —David Eppstein 20:55, 4 December 2007 (UTC)

