Vis enkel innførsel

dc.contributor.authorBerg, Marie Natland
dc.date.accessioned2023-06-27T23:51:39Z
dc.date.available2023-06-27T23:51:39Z
dc.date.issued2023-06-01
dc.date.submitted2023-06-27T22:00:50Z
dc.identifier.urihttps://hdl.handle.net/11250/3073841
dc.description.abstractIn this thesis, we present an algorithm for k-insertion into a binary heap running in worst-case time O(k+log(k)·log(n+k)), improving the standard k-insertion algorithm for binary heaps in terms of worst-case running time. The algorithm combines two routines called Heapify and Walk down. We assess the performance of the algorithm in theory and practice and compare it to some well-known k-insertion methods. We do this by implementing the algorithms and measuring and comparing their running times on different datasets. Through practical tests, we conclude that the algorithm performs better than the standard k-insertion algorithm on worst-case input while being slightly slower on randomized input. We, therefore, conclude that it can be better in real-world applications.
dc.language.isoeng
dc.publisherThe University of Bergen
dc.rightsCopyright the Author. All rights reserved
dc.subjectBinary heaps
dc.subjectgraph theory
dc.subjectk-insertion
dc.titleAn Algorithm for k-insertion into a Binary Heap
dc.typeMaster thesis
dc.date.updated2023-06-27T22:00:50Z
dc.rights.holderCopyright the Author. All rights reserved
dc.description.degreeMasteroppgave i informatikk
dc.description.localcodeINF399
dc.description.localcodeMAMN-PROG
dc.description.localcodeMAMN-INF
dc.subject.nus754199
fs.subjectcodeINF399
fs.unitcode12-12-0


Tilhørende fil(er)

Thumbnail

Denne innførselen finnes i følgende samling(er)

Vis enkel innførsel