Questions tagged [soft-heap]

A soft heap is a data structure that acts like a priority queue, but which can corrupt some of the priorities.

Soft heaps were introduced by Chazelle as a building block in a fast MST algorithm. They work like regular priority queues except that they can corrupt the priorities. Specifically, for some constant ε, the soft heap ensures that at most εn of the elements in the soft heap will have their priorities corrupted by increasing them some amount.

Soft heaps have also been used to give an alternative O(n)-time selection algorithm.

5 questions
16
votes
3 answers

Purely functional soft heap

Are there any implementations of a purely functional soft heap data structure in any language?
J D
  • 48,105
  • 13
  • 171
  • 274
12
votes
2 answers

Soft heaps: what is corruption and why is it useful?

I recently read Bernard Chazelle's paper "The Soft Heap, An Approximate Priority Queue with Optimal Error Rate by Bernard Chazelle" (http://www.link.cs.cmu.edu/15859-f07/papers/chazelle-soft-heap.pdf) The paper talks a lot about "corruption." What…
kalibra
  • 139
  • 1
  • 5
7
votes
2 answers

Heapsort: why not use "Soft Heap" to boost the performance?

From the Soft Heap wikipedia page, it seems that the min extraction only takes constant time, thus using a soft heap to perform heapsort should lead to an amortized O(n). Even if the constant is large, for very large n this algorithm should be very…
xuhdev
  • 8,018
  • 2
  • 41
  • 69
2
votes
1 answer

Soft heap: where and why is it useful?

From the paper that I was reading By Bernard chazelle https://www.cs.princeton.edu/courses/archive/fall05/cos528/handouts/The%20Soft%20Heap.pdf I failed to find Soft heap being used much in practical scenario. So, It would be helpful if someone…
Somit
  • 51
  • 3
1
vote
0 answers

The soft heap contains at most n/2 power r-3 corrupted items at any given time. How is that so?

In this paper published by Bernard Chazelle, one of the lemmas (Lemma 5.2) states that "the soft heap contains at most n / 2^(r-3) corrupted items at any given time." I am struggling to understand it. It would be helpful if anyone can explain how it…
Somit
  • 51
  • 3