• 2025-01-08[数据结构学习笔记9] 堆(Heaps)
    在日常生活中,我们常常有很多想法要去实现,但是时间有限,所以要把想法分优先级,哪个是最重要的,先做它。堆(heaps)是这样一个数据结构,它让你容易(O(1))的获取最高优先级的想法,并且提供了快速(O(logn))插入,移除想法操作。 堆分为最大堆和最小堆,最大堆就是说root是最大值,最小堆是说root是最
  • 2023-10-09Go - Creating Heaps
    Problem: Youwanttocreateaminheapdatastructure.Solution: Wrapastructaroundasliceofelementstorepresentaheap.Aftereachpushorpopontheheap,rearrangetheheapstructure. AHeapisaspecialTree-baseddatastructureinwhichthe
  • 2023-02-26WinDbg : An Introduction To Windows Heaps
    WinDbg:AnIntroductionToWindowsHeapsHeapsareusedbyapplicationswhichneedtoallocateandreleasememorydynamically.Eventhoughtheheapis the 
  • 2022-11-30黑龙江省第七届大学生程序设计竞赛-Heap
    描述Aheapisafullbinarytree;foreachnode,itskeyisgreaterthanitstwosub-node’skey.Twoheapsaredifferentiftherearetwonodeswhichhavedif
  • 2022-10-02CF955F Heaps
    \(\ttCF955F\),\(\tt^\ast2600\)。首先要知道:设\(deg_u\)为\(u\)的儿子个数,有\(\sumdeg_u=O(n)\)。我们考虑求出\(dp_k(u)\),然后一个一个加。但是这个不太好直接