aalhour/C-Sharp-Algorithms

MaxHeap bad algorithm.

Open

#84 创建于 2018年12月28日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C# (5,736 star) (1,409 fork)batch import
buggood first issue

描述

steps to reproduce

Write a loop, from 1 to 80000, each time add a random int to the max heap.

In theory it takes very little time(NlogN, N=80000, <1sec ), but the program does take a long time.

I'v also tested the BinaryHeap in https://github.com/SolutionsDesign/Algorithmia, it performs well, so it is probably due to the bad algorithm.

贡献者指南

MaxHeap bad algorithm. · aalhour/C-Sharp-Algorithms#84 | Good First Issue