binary-heap
Is there a better way to calculate the frequency of all symbols in a file?
Okay, so, say I have a text file (not necessarily containing every possible symbol) and I\'d like to calculate the frequency of each symbol and, after calculating the frequency, I then need to access[详细]
2023-04-11 06:05 分类:问答Writing a program that can handle a Heap that has K amount of children [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic[详细]
2023-04-07 10:05 分类:问答How to preserve the order of elements of the same priority in a priority queue implemented as binary heap?
I have created a binary heap, which represents a priority queue. It\'s just classical well known algorithm. This heap schedulesa chronological sequence of different events ( the sort key is time ).[详细]
2023-03-25 18:55 分类:问答What is the difference between binary heaps and binomial heaps?
I need to know the main difference between binary and binomia开发者_C百科l heaps regardless of the their structure difference that binary heaps can have only two child (tree representation) and binomi[详细]
2023-03-10 03:58 分类:问答how to determine if the kth largest element of the heap is greater than x
Consider a binary heap containing n numbers (the root stores the greatest number). You are given a positive integer k < n and a number x. You have to determine whether[详细]
2023-02-09 15:32 分类:问答Real world applications of Binary heaps and Fibonacci Heaps [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the ques开发者_运维技巧tion so it focuses on one problem only b[详细]
2023-01-17 07:02 分类:问答Re-adjusting a binary heap after removing the minimum element
After removing the minimum element in a binary heap, i.e. after removing the root, I understand that the heap must be adjusted in order to maintain the heap property.[详细]
2022-12-31 21:21 分类:问答Heap data structure
Trying to think of a lower bound to the position of say, the nth largest key in a max-heap. Assuming t开发者_JS百科he heap\'s laid out in array. The upper bound\'s min(2^n-2, array size -1) i think, b[详细]
2022-12-24 18:46 分类:问答Min Binary Heap issue
i need help with this minheap code: #include < vector> using namespace std; class heap { vector <int> v;[详细]
2022-12-21 09:24 分类:问答