当前位置:首页 > 搜索 "程序填空题"
程序填空题:DecreaseKey in a minheap
ThefunctionistolowerthevalueoftheintegerkeyatpositionPbyapositiveamountDinaminheapH.```c++voidDec......
程序填空题:BinQueue_Merge [3]
Thefunction`BinQueue_Merge`istomergetwobinomialqueues`H1`and`H2`,andreturn`H1`astheresultingqueue.``......
程序填空题:BinQueue_Merge [2]
Thefunction`BinQueue_Merge`istomergetwobinomialqueues`H1`and`H2`,andreturn`H1`astheresultingqueue.``......
程序填空题:IncreaseKey in a max-heap
ThefunctionistoincreasethevalueoftheintegerkeyatpositionPbyapositiveamountDinamax-heapH.```c++void......
程序填空题:Merge two equal-sized binomial trees
Thefunctionistomergetwoequal-sizedbinomialtreesT1andT2.```c++BinTreeCombineTrees(BinTreeT1,BinTreeT2){......
程序填空题:Inserts X into a max-heap H
PleasefillintheblanksintheprogramwhichinsertsXintoamax-heapH.```c++/*H-˃Element[0]isasentinel*/voi......
程序填空题:Delete a node with minimal key from a min-heap
Thefunctionistodeletethenodewithminimalkeyfromamin-heapH.```c++ElementTypeDeleteMin(PriorityQueueH){......
程序填空题:Percolates down a max-heap
Pleasefillintheblanksintheprogramwhichpercolatesdownamax-heap.```c++voidPercolateDown(intp,PriorityQueue......
程序填空题:Insert X into a binomial queue H
ThefunctionistoinsertXintoabinomialqueueH.```c++BinQueueInsert(ElementTypeX,BinQueueH){BinTreeCa......
程序填空题:Lower the key in a min-heap
ThefunctionistolowerthevalueoftheintegerkeyatpositionPbyapositiveamountDinamin-heapH.```c++voidDe......
程序填空题:Find the Kth largest integer from a list
ThefunctionistofindtheKthlargestintegerfromalistAofN(˃K)integers.ThefunctionBuildMinHeap(H,K)isto......
程序填空题:Deletes a given element at position p from a max-heap H
Pleasefillintheblanksintheprogramwhichdeletesagivenelementatpositionpfromamax-heapH.```c++Deletion(......
程序填空题:Find X in a binomial queue H
ThefunctionistofindXinabinomialqueueH.```c++BinTreeFind(BinQueueH,ElementTypeX)/*TofindwhetherXi......
程序填空题:Merge two leftist heaps
ThefunctionistomergetwoleftistheapsH1andH2.```c++PriorityQueueMerge(PriorityQueueH1,PriorityQueueH2){......
程序填空题:Insert an element X into a min heap
ThefunctionistoinsertanelementXintoaminheap.```c++/*H-˃Element[0]isasentinel*/voidInsert(ElementTyp......
程序填空题:Merge two binomial queues H1 and H2
ThefunctionistomergetwobinomialqueuesH1andH2.```c++BinQueueMerge(BinQueueH1,BinQueueH2){BinTreeT1,T......
程序填空题:Insert an item into the hash table ht[]
Thefunctionistoinsertanitemintothehashtableht[]withthehashfunctionhash.Herealistnodecontainsitem......
程序填空题:分段函数
计算分段函数,测试数据分别是-2、3、7。```c++#include@@[#include](3)intmain(){floatx,f;inti;for(i=0;i˂3;i++){......
程序填空题:猴子吃桃
猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾又多吃了一个。第二天早上有将剩下的挑子吃掉一半,又多吃了一个。后每天早上都吃了前一天剩下的一半零一个。到第day(通过键盘输入)天早上想再吃时,只剩下一个挑子了。求第一天共摘了多少桃子。输入1...
程序填空题:计算部分质数之和
计算0到200之间所有个位数字是3或7的质数之和,将答案填在空里:@@[2200](8)。注意:仅填写结果数值,不要填写多余文字或者空格之类字符。提示:可以手算,也可以编写一段C程序运行求解。答案:第1空:2200......